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);
111 $fromString = $toString = '';
114 $fromString .= $goodChar;
118 testValidString($fromString, $toString, $fromEncoding, $toEncoding, $bothWays);
131 $fromString = array_pop($badChars) . $goodChar;
134 testInvalidString($fromString, $toString, $fromEncoding, $toEncoding);
147 $fromString = array_pop($badChars) . $goodChar;
150 convertInvalidString($fromString, $toString, $fromEncoding, $toEncoding);