Translated using Weblate (Catalan)
[phpmyadmin.git] / libraries / StringType.int.php
blob38c17342da3fee81e3dbddaf98174f28d1b88a91
1 <?php
2 /**
3 * Defines a set of specialized string functions.
5 * @package PhpMyAdmin-String
6 */
7 interface PMA_StringType
9 /**
10 * Checks if a character is an alphanumeric one
12 * @param string $c character to check for
14 * @return boolean whether the character is an alphanumeric one or not
16 public function isAlnum($c);
18 /**
19 * Checks if a character is an alphabetic one
21 * @param string $c character to check for
23 * @return boolean whether the character is an alphabetic one or not
25 public function isAlpha($c);
27 /**
28 * Checks if a character is a digit
30 * @param string $c character to check for
32 * @return boolean whether the character is a digit or not
34 public function isDigit($c);
36 /**
37 * Checks if a character is an upper alphabetic one
39 * @param string $c character to check for
41 * @return boolean whether the character is an upper alphabetic one or not
43 public function isUpper($c);
46 /**
47 * Checks if a character is a lower alphabetic one
49 * @param string $c character to check for
51 * @return boolean whether the character is a lower alphabetic one or not
53 public function isLower($c);
55 /**
56 * Checks if a character is a space one
58 * @param string $c character to check for
60 * @return boolean whether the character is a space one or not
62 public function isSpace($c);
64 /**
65 * Checks if a character is an hexadecimal digit
67 * @param string $c character to check for
69 * @return boolean whether the character is an hexadecimal digit or not
71 public function isHexDigit($c);
73 /**
74 * Checks if a number is in a range
76 * @param integer $num number to check for
77 * @param integer $lower lower bound
78 * @param integer $upper upper bound
80 * @return boolean whether the number is in the range or not
82 public function numberInRangeInclusive($num, $lower, $upper);