Lines Matching refs:mb_ucfirst
2 mb_ucfirst(), mb_lcfirst functions tests
12 if (mb_ucfirst(chr($i)) !== chr($i - (97 - 65))) {
13 echo "mb_ucfirst compare failed: " . chr($i) . "\n";
16 if (mb_ucfirst(chr($i)) !== chr($i)) {
17 echo "mb_ucfirst compare failed: " . chr($i) . "\n";
21 echo "Done mb_ucfirst\n";
42 var_dump(mb_ucfirst(""));
47 echo "== mb_ucfirst ==\n";
48 var_dump(mb_ucfirst("ab"));
49 var_dump(mb_ucfirst("ABS"));
50 var_dump(mb_ucfirst("đắt quá!"));
51 var_dump(mb_ucfirst("აბგ"));
52 var_dump(mb_ucfirst("lj"));
58 var_dump(bin2hex(mb_ucfirst(mb_convert_encoding("ebi", "SJIS", "UTF-8"), "SJIS")));
60 var_dump(bin2hex(mb_ucfirst(hex2bin("8471"), "SJIS"))); /* б */
62 var_dump(bin2hex(mb_ucfirst(hex2bin("83bf"), "SJIS"))); /* α */
65 var_dump(bin2hex(mb_ucfirst(hex2bin("83bf8471"), "SJIS")));
68 var_dump(bin2hex(mb_ucfirst(hex2bin("a6d8"), "EUC-JP"))); /* Ω */
70 var_dump(bin2hex(mb_ucfirst(hex2bin("a4a2a4a2"), "EUC-JP"))); /* あ */
72 var_dump(mb_ucfirst("э" . str_repeat("A", 65536)) === "Э" . str_repeat("A", 65536));
80 Done mb_ucfirst
82 == mb_ucfirst ==