Lines Matching refs:fromEncoding

68 function testConversion($fromString, $toString, $fromEncoding, $toEncoding) {
69 $result = mb_convert_encoding($fromString, $toEncoding, $fromEncoding);
71 …die("mb_convert_encoding not working on $fromEncoding input: " . dbgPrint($fromString) . "\nExpect…
74 function testValidConversion($fromString, $toString, $fromEncoding, $toEncoding) {
76 testConversion($fromString, $toString, $fromEncoding, $toEncoding);
78 …die("mb_convert_encoding incremented illegal_chars on valid $fromEncoding string: " . dbgPrint($fr…
81 function convertValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays = true) {
82 testValidConversion($fromString, $toString, $fromEncoding, $toEncoding);
84 testValidConversion($toString, $fromString, $toEncoding, $fromEncoding);
87 function convertInvalidString($fromString, $toString, $fromEncoding, $toEncoding) {
89 testConversion($fromString, $toString, $fromEncoding, $toEncoding);
91 …die("mb_convert_encoding did not increment illegal_chars on invalid $fromEncoding string: " . dbgP…
94 function testValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays = true) {
95 identifyValidString($fromString, $fromEncoding);
96 convertValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays);
99 function testInvalidString($fromString, $toString, $fromEncoding, $toEncoding) {
100 identifyInvalidString($fromString, $fromEncoding);
101 convertInvalidString($fromString, $toString, $fromEncoding, $toEncoding);
106 function testAllValidChars($charMap, $fromEncoding, $toEncoding, $bothWays = true) {
115 testValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays);
126 testValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays);
130 function testAllInvalidChars($badChars, $charMap, $fromEncoding, $toEncoding, $replacement) {
142 testInvalidString($fromString, $toString, $fromEncoding, $toEncoding);
146 function convertAllInvalidChars($badChars, $charMap, $fromEncoding, $toEncoding, $replacement) {
158 convertInvalidString($fromString, $toString, $fromEncoding, $toEncoding);
162 function testTruncatedChars($truncated, $fromEncoding, $toEncoding, $replacement) {
165 testInvalidString($truncatedChar, $replacement, $fromEncoding, $toEncoding);