34 function subStr($a_str, $a_start, $a_length = NULL)
36 if (function_exists(
"mb_substr"))
38 return mb_substr($a_str, $a_start, $a_length,
"UTF-8");
42 return substr($a_str, $a_start, $a_length);
46 function strPos($a_haystack, $a_needle, $a_offset = NULL)
48 if (function_exists(
"mb_strpos"))
50 return mb_strpos($a_haystack, $a_needle, $a_offset,
"UTF-8");
54 return strpos($a_haystack, $a_needle, $a_offset);
60 if (function_exists(
"mb_strlen"))
62 return mb_strlen($a_string,
"UTF-8");
66 return strlen($a_string);
72 if (function_exists(
"mb_strtolower"))
74 return mb_strtolower($a_string,
"UTF-8");
78 return strtolower($a_string);
84 if (function_exists(
"mb_strtoupper"))
86 return mb_strtoupper($a_string,
"UTF-8");
90 return strtoupper($a_string);