Translated using Weblate (Danish)
[phpmyadmin.git] / libraries / StringType.int.php
blobdfcb7de8ec7e0e875178a9f42a96f8843faaf087
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_StringType
10 /**
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);
19 /**
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);
28 /**
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);
37 /**
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);
47 /**
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);
56 /**
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);
65 /**
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);
74 /**
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);