Lines Matching refs:fromString
90 function testConversion($fromString, $toString, $fromEncoding, $toEncoding) {
91 $result = mb_convert_encoding($fromString, $toEncoding, $fromEncoding);
93 …echo "mb_convert_encoding not working on $fromEncoding input: " . dbgPrint($fromString) . "\nExpec…
98 function testValidConversion($fromString, $toString, $fromEncoding, $toEncoding) {
100 testConversion($fromString, $toString, $fromEncoding, $toEncoding);
102 …incremented illegal_chars on valid $fromEncoding string: " . dbgPrint($fromString) . " when conver…
107 function convertValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays = true) {
108 testValidConversion($fromString, $toString, $fromEncoding, $toEncoding);
110 testValidConversion($toString, $fromString, $toEncoding, $fromEncoding);
113 function convertInvalidString($fromString, $toString, $fromEncoding, $toEncoding) {
115 testConversion($fromString, $toString, $fromEncoding, $toEncoding);
117 …increment illegal_chars on invalid $fromEncoding string: " . dbgPrint($fromString) . " when conver…
122 function testValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays = true) {
123 identifyValidString($fromString, $fromEncoding);
124 convertValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays);
127 function testInvalidString($fromString, $toString, $fromEncoding, $toEncoding) {
128 identifyInvalidString($fromString, $fromEncoding);
129 convertInvalidString($fromString, $toString, $fromEncoding, $toEncoding);
138 $fromString = $toString = '';
140 $fromString .= $goodChar;
143 testValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays);
147 $fromString = $toString = '';
150 $fromString .= $goodChar;
154 testValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays);
156 $strLen = mb_strlen($fromString, $fromEncoding);
158 …echo "Length of $fromEncoding string '" . bin2hex($fromString) . "' was different than expected; m…
173 $fromString = array_pop($badChars) . $goodChar;
176 testInvalidString($fromString, $toString, $fromEncoding, $toEncoding);
189 $fromString = array_pop($badChars) . $goodChar;
192 convertInvalidString($fromString, $toString, $fromEncoding, $toEncoding);