Lines Matching refs:UTF7
19 testValidString($from, $to, 'UTF7-IMAP', 'UTF-8', $bothWays);
22 testInvalidString($from, $to, 'UTF7-IMAP', 'UTF-8');
30 testValidString("\x00", "&AAA-", 'UTF-8', 'UTF7-IMAP');
53 identifyInvalidString("&", 'UTF7-IMAP');
54 identifyInvalidString("abc&", 'UTF7-IMAP');
55 identifyInvalidString("&" . mBase64(utf16BE("ハムサンドイッチ")), 'UTF7-IMAP');
66 identifyInvalidString("&" . mBase64(utf16BE("肉包子")) . "-&" . mBase64(utf16BE("冰淇淋")) . "-", 'UTF7-I…
103 identifyInvalidString("&" . substr($testString, 0, 11) . chr($i) . "-", 'UTF7-IMAP');
115 identifyInvalidString("&" . mBase64($testString) . "-", 'UTF7-IMAP');
118 identifyInvalidString("&" . mBase64($testString2) . "-", 'UTF7-IMAP');
125 identifyInvalidString("&" . mBase64($singleChar . $testString) . "-", 'UTF7-IMAP');
126 identifyInvalidString("&" . mBase64($singleChar . $singleChar . $testString) . "-", 'UTF7-IMAP');
127 …lidString("&" . mBase64($singleChar . $singleChar . $singleChar . $testString) . "-", 'UTF7-IMAP');
128 identifyInvalidString("&" . mBase64($singleChar . $testString2) . "-", 'UTF7-IMAP');
129 identifyInvalidString("&" . mBase64($singleChar . $singleChar . $testString2) . "-", 'UTF7-IMAP');
130 …idString("&" . mBase64($singleChar . $singleChar . $singleChar . $testString2) . "-", 'UTF7-IMAP');
131 identifyInvalidString("&" . mBase64($doubleChar . $testString) . "-", 'UTF7-IMAP');
132 identifyInvalidString("&" . mBase64($singleChar . $doubleChar . $testString) . "-", 'UTF7-IMAP');
133 …lidString("&" . mBase64($singleChar . $singleChar . $doubleChar . $testString) . "-", 'UTF7-IMAP');
134 identifyInvalidString("&" . mBase64($doubleChar . $testString2) . "-", 'UTF7-IMAP');
135 identifyInvalidString("&" . mBase64($singleChar . $doubleChar . $testString2) . "-", 'UTF7-IMAP');
136 …idString("&" . mBase64($singleChar . $singleChar . $doubleChar . $testString2) . "-", 'UTF7-IMAP');
141 identifyInvalidString("&" . mBase64($testString) . "-", 'UTF7-IMAP');
144 identifyInvalidString("&" . mBase64($singleChar . $testString) . "-", 'UTF7-IMAP');
145 identifyInvalidString("&" . mBase64($singleChar . $singleChar . $testString) . "-", 'UTF7-IMAP');
146 identifyInvalidString("&" . mBase64($doubleChar . $testString) . "-", 'UTF7-IMAP');
150 identifyInvalidString("&" . mBase64(substr($testString, 0, 2)) . "-", 'UTF7-IMAP');
151 identifyInvalidString("&" . mBase64($singleChar . substr($testString, 0, 2)) . "-", 'UTF7-IMAP');
152 …lidString("&" . mBase64($singleChar . $singleChar . substr($testString, 0, 2)) . "-", 'UTF7-IMAP');
157 identifyInvalidString("&" . mBase64($testString) . "-", 'UTF7-IMAP');
170 identifyInvalidString("&" . substr($encoded, 0, strlen($encoded) - 1) . ",-", 'UTF7-IMAP');
208 testValidString("☺&", "&Jjo-&-", "UTF-8", "UTF7-IMAP", false);
209 testValidString("西瓜&", "&iX903A-&-", "UTF-8", "UTF7-IMAP", false);
210 testValidString("西红柿&", "&iX9+omf,-&-", "UTF-8", "UTF7-IMAP", false);
215 convertInvalidString("\x00\x20\x00\x00", "%", "UCS-4BE", "UTF7-IMAP");
219 convertInvalidString("\x10", "%", "UTF7-IMAP", "UTF-8");
220 convertInvalidString("\x80", "%", "UTF7-IMAP", "UTF-8");
221 convertInvalidString("abc&", "abc%", "UTF7-IMAP", "UTF-8"); // The & starts a Base-64 coded section…
222 convertInvalidString("&**-", "%*-", "UTF7-IMAP", "UTF-8"); // When we hit the first bad byte in a B…
225 convertInvalidString('&RR8I', "\xE4\x94\x9F%", 'UTF7-IMAP', 'UTF-8');
226 convertInvalidString('&RR8IAAA', "\xE4\x94\x9F\xE0\xA0\x80%", 'UTF7-IMAP', 'UTF-8');
230 convertInvalidString("&A", "\x00\x00\x00%", 'UTF7-IMAP', 'UTF-32BE');