Lines Matching refs:mb_strlen
2 mb_strlen()
20 print mb_strlen($ascii,'ASCII') . "\n";
24 print mb_strlen($euc_jp,'EUC-JP') . "\n";
30 print mb_strlen($sjis,'SJIS') . "\n";
34 // mb_strlen used to wrongly treat 0x80 as the starting byte of a 2-byte SJIS character
35 print mb_strlen("\x80\xA1", 'SJIS') . "\n";
36 print mb_strlen("abc\xFD\xFE\xFF", 'SJIS') . "\n";
39 print mb_strlen("\x80\xA1", "CP932") . "\n";
41 print mb_strlen("abc\xFD\xFE\xFF", 'CP932') . "\n";
44 print mb_strlen("\x80\xA1", 'MacJapanese') . "\n";
45 print mb_strlen("abc\xFD\xFE\xFF", 'MacJapanese') . "\n";
48 print mb_strlen("\x80\xA1", 'SJIS-2004') . "\n";
49 print mb_strlen("abc\xFD\xFE\xFF", 'SJIS-2004') . "\n";
52 print mb_strlen("\x80\xA1", 'SJIS-Mobile#DOCOMO') . "\n";
53 print mb_strlen("abc\xFD\xFE\xFF", 'SJIS-Mobile#DOCOMO') . "\n";
56 print mb_strlen("\x80\xA1", 'SJIS-Mobile#KDDI') . "\n";
57 print mb_strlen("abc\xFD\xFE\xFF", 'SJIS-Mobile#KDDI') . "\n";
60 print mb_strlen("\x80\xA1", 'SJIS-Mobile#SoftBank') . "\n";
61 print mb_strlen("abc\xFD\xFE\xFF", 'SJIS-Mobile#SoftBank') . "\n";
65 print mb_strlen($jis,'JIS') . "\n";
71 print mb_strlen($utf8,'UTF-8') . "\n";
80 var_dump( mb_strlen($euc_jp, 'BAD_NAME') );
124 mb_strlen(): Argument #2 ($encoding) must be a valid encoding, "BAD_NAME" given