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) {
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);