Lines Matching refs:toEncoding

68 function testConversion($fromString, $toString, $fromEncoding, $toEncoding) {
69 $result = mb_convert_encoding($fromString, $toEncoding, $fromEncoding);
71 …rking on $fromEncoding input: " . dbgPrint($fromString) . "\nExpected $toEncoding: " . dbgPrint($t…
74 function testValidConversion($fromString, $toString, $fromEncoding, $toEncoding) {
76 testConversion($fromString, $toString, $fromEncoding, $toEncoding);
78 …hars on valid $fromEncoding string: " . dbgPrint($fromString) . " when converting to $toEncoding");
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 …rs on invalid $fromEncoding string: " . dbgPrint($fromString) . " when converting to $toEncoding");
94 function testValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays = true) {
96 convertValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays);
99 function testInvalidString($fromString, $toString, $fromEncoding, $toEncoding) {
101 convertInvalidString($fromString, $toString, $fromEncoding, $toEncoding);
106 function testAllValidChars($charMap, $fromEncoding, $toEncoding, $bothWays = true) {
118 testValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays);
122 function testAllInvalidChars($badChars, $charMap, $fromEncoding, $toEncoding, $replacement) {
134 testInvalidString($fromString, $toString, $fromEncoding, $toEncoding);
138 function convertAllInvalidChars($badChars, $charMap, $fromEncoding, $toEncoding, $replacement) {
150 convertInvalidString($fromString, $toString, $fromEncoding, $toEncoding);
154 function testTruncatedChars($truncated, $fromEncoding, $toEncoding, $replacement) {
157 testInvalidString($truncatedChar, $replacement, $fromEncoding, $toEncoding);