Lines Matching refs:fromString
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 …incremented illegal_chars on valid $fromEncoding string: " . dbgPrint($fromString) . " when conver…
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 …increment illegal_chars on invalid $fromEncoding string: " . dbgPrint($fromString) . " when conver…
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);
110 $fromString = $toString = '';
112 $fromString .= $goodChar;
115 testValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays);
119 $fromString = $toString = '';
122 $fromString .= $goodChar;
126 testValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays);
139 $fromString = array_pop($badChars) . $goodChar;
142 testInvalidString($fromString, $toString, $fromEncoding, $toEncoding);
155 $fromString = array_pop($badChars) . $goodChar;
158 convertInvalidString($fromString, $toString, $fromEncoding, $toEncoding);