added japanese language
[openemr.git] / phpmyadmin / libraries / StringByte.int.php
blob99e15a37f78abeb7092f0cfd1b4f5e4f5e7ab8a3
1 <?php
2 /**
3 * Defines a set of specialized string functions.
5 * @package PhpMyAdmin-String
6 * @todo May be move this into file of its own
7 */
8 interface PMA_StringByte
10 /**
11 * Returns length of string depending on current charset.
13 * @param string $string string to count
15 * @return int string length
18 public function strlen($string);
20 /**
21 * Returns substring from string, works depending on current charset.
23 * @param string $string string to count
24 * @param int $start start of substring
25 * @param int $length length of substring
27 * @return string the sub string
29 public function substr($string, $start, $length = 2147483647);
31 /**
32 * Returns postion of $needle in $haystack or false if not found
34 * @param string $haystack the string being checked
35 * @param string $needle the string to find in haystack
36 * @param int $offset the search offset
38 * @return integer position of $needle in $haystack or false
40 public function strpos($haystack, $needle, $offset = 0);
42 /**
43 * Make a string lowercase
45 * @param string $string the string being lowercased
47 * @return string the lower case string
49 public function strtolower($string);
51 /**
52 * Get the ordinal value of a string
54 * @param string $string the string for which ord is required
56 * @return string the ord value
58 public function ord($string);