3 * Defines a set of specialized string functions.
5 * @package PhpMyAdmin-String
6 * @todo May be move this into file of its own
8 interface PMA_StringType
11 * Checks if a character is an alphanumeric one
13 * @param string $c character to check for
15 * @return boolean whether the character is an alphanumeric one or not
17 public function isAlnum($c);
20 * Checks if a character is an alphabetic one
22 * @param string $c character to check for
24 * @return boolean whether the character is an alphabetic one or not
26 public function isAlpha($c);
29 * Checks if a character is a digit
31 * @param string $c character to check for
33 * @return boolean whether the character is a digit or not
35 public function isDigit($c);
38 * Checks if a character is an upper alphabetic one
40 * @param string $c character to check for
42 * @return boolean whether the character is an upper alphabetic one or not
44 public function isUpper($c);
48 * Checks if a character is a lower alphabetic one
50 * @param string $c character to check for
52 * @return boolean whether the character is a lower alphabetic one or not
54 public function isLower($c);
57 * Checks if a character is a space one
59 * @param string $c character to check for
61 * @return boolean whether the character is a space one or not
63 public function isSpace($c);
66 * Checks if a character is an hexadecimal digit
68 * @param string $c character to check for
70 * @return boolean whether the character is an hexadecimal digit or not
72 public function isHexDigit($c);
75 * Checks if a number is in a range
77 * @param integer $num number to check for
78 * @param integer $lower lower bound
79 * @param integer $upper upper bound
81 * @return boolean whether the number is in the range or not
83 public function numberInRangeInclusive($num, $lower, $upper);