/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | UtilityTest.java | 29 import com.ibm.icu.impl.Utility; 48 String result = Utility.unescape(input); in TestUnescape() 70 + Utility.LINE_SEPARATOR + " \"t?\"" in TestFormat() 81 result[i], Utility.formatForSource(data[i])); in TestFormat() 85 result1[i], Utility.format1ForSource(data[i])); in TestFormat() 95 if (Utility.highBit(data[i]) != result[i]) { in TestHighBit() 110 if (Utility.compareUnsigned(data[i], data[j]) in TestCompareUnsigned() 267 assertTrue(message, Utility.charSequenceEquals(a, a)); in TestCharSequenceEqualsAndHashCode() 268 assertFalse(message, Utility.charSequenceEquals(a, c)); in TestCharSequenceEqualsAndHashCode() 269 assertTrue(message, Utility.charSequenceEquals(b, b)); in TestCharSequenceEqualsAndHashCode() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
D | UtilityTest.java | 29 import ohos.global.icu.impl.Utility; 50 String result = Utility.unescape(input); in TestUnescape() 72 + Utility.LINE_SEPARATOR + " \"t?\"" in TestFormat() 83 result[i], Utility.formatForSource(data[i])); in TestFormat() 87 result1[i], Utility.format1ForSource(data[i])); in TestFormat() 97 if (Utility.highBit(data[i]) != result[i]) { in TestHighBit() 112 if (Utility.compareUnsigned(data[i], data[j]) in TestCompareUnsigned() 269 assertTrue(message, Utility.charSequenceEquals(a, a)); in TestCharSequenceEqualsAndHashCode() 270 assertFalse(message, Utility.charSequenceEquals(a, c)); in TestCharSequenceEqualsAndHashCode() 271 assertTrue(message, Utility.charSequenceEquals(b, b)); in TestCharSequenceEqualsAndHashCode() [all …]
|
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
D | gl3cClipDistance.cpp | 243 …gl3cts::ClipDistance::Utility::Program program(gl, vertex_shader, fragment_shader, transform_feedb… in MaxClipDistancesValueInVertexShaderTest() 260 gl3cts::ClipDistance::Utility::VertexArrayObject vertex_array_object(gl, GL_POINTS); in MaxClipDistancesValueInVertexShaderTest() 263 …gl3cts::ClipDistance::Utility::VertexBufferObject<glw::GLint> vertex_buffer_object(gl, GL_TRANSFOR… in MaxClipDistancesValueInVertexShaderTest() 310 gl3cts::ClipDistance::Utility::Framebuffer framebuffer(gl, 1, 1); in MaxClipDistancesValueInFragmentShaderTest() 326 gl3cts::ClipDistance::Utility::Program program(gl, vertex_shader, fragment_shader); in MaxClipDistancesValueInFragmentShaderTest() 343 gl3cts::ClipDistance::Utility::VertexArrayObject vertex_array_object(gl, GL_POINTS); in MaxClipDistancesValueInFragmentShaderTest() 398 gl3cts::ClipDistance::Utility::Framebuffer framebuffer(gl, 1, 1); in ClipDistancesValuePassing() 414 gl3cts::ClipDistance::Utility::Program program(gl, vertex_shader, fragment_shader); in ClipDistancesValuePassing() 431 gl3cts::ClipDistance::Utility::VertexArrayObject vertex_array_object(gl, GL_POINTS); in ClipDistancesValuePassing() 590 gl3cts::ClipDistance::Utility::Framebuffer framebuffer(gl, framebuffer_size, in iterate() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/ |
D | CollationTest.java | 28 import ohos.global.icu.impl.Utility; 144 + Utility.hex(orders[index]) + " vs 0x" + Utility.hex(o)); in backAndForth() 162 String hexString = "0x" + Utility.hex(o) + " "; in backAndForth() 168 String hexString = "0x" + Utility.hex(o) + " "; in backAndForth() 225 TestFmwk.errln("Comparing \"" + Utility.hex(source) + "\" with \"" in doTestVariant() 226 + Utility.hex(target) + "\" expected " + result in doTestVariant() 233 TestFmwk.errln("Comparing CollationKeys of \"" + Utility.hex(source) in doTestVariant() 234 + "\" with \"" + Utility.hex(target) in doTestVariant() 245 + Utility.hex(source) in doTestVariant() 246 + "\" with \"" + Utility.hex(target) in doTestVariant() [all …]
|
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationTest.java | 27 import com.ibm.icu.impl.Utility; 141 + Utility.hex(orders[index]) + " vs 0x" + Utility.hex(o)); in backAndForth() 159 String hexString = "0x" + Utility.hex(o) + " "; in backAndForth() 165 String hexString = "0x" + Utility.hex(o) + " "; in backAndForth() 222 TestFmwk.errln("Comparing \"" + Utility.hex(source) + "\" with \"" in doTestVariant() 223 + Utility.hex(target) + "\" expected " + result in doTestVariant() 230 TestFmwk.errln("Comparing CollationKeys of \"" + Utility.hex(source) in doTestVariant() 231 + "\" with \"" + Utility.hex(target) in doTestVariant() 242 + Utility.hex(source) in doTestVariant() 243 + "\" with \"" + Utility.hex(target) in doTestVariant() [all …]
|
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/translit/ |
D | WriteIndicCharts.java | 15 import com.ibm.icu.impl.Utility; 152 …dth=9% bgcolor=#BBBBFF align=center title=\""+name+"\">"+" <br><tt>"+Utility.hex(str)+"</tt>"+… in writeIICharts() 154 …dth=9% bgcolor=#BBBBFF align=center title=\""+name+"\">"+ str+"<br><tt>"+Utility.hex(str)+"</tt>"+… in writeIICharts() 157 … <td bgcolor=#FF9999 align=center title=\""+name+"\">"+" <br><tt>"+Utility.hex(str)+"</tt>"+… in writeIICharts() 160 …dth=9% bgcolor=#00FFFF align=center title=\""+name+"\">"+" <br><tt>"+Utility.hex(str)+"</tt>"+… in writeIICharts() 162 …dth=9% bgcolor=#00FFFF align=center title=\""+name+"\">"+ str+"<br><tt>"+Utility.hex(str)+"</tt>"+… in writeIICharts() 166 …dth=9% bgcolor=#FFFF55 align=center title=\""+name+"\">"+" <br><tt>"+Utility.hex(str)+"</tt>"+… in writeIICharts() 168 …width=9% bgcolor=#FFFF55 align=center title=\""+""+"\">"+" <br><tt>"+Utility.hex(str)+"</tt>"+… in writeIICharts() 172 …th=9% bgcolor=#FFBBBB align=center title=\""+name+"\">"+" <br><tt>"+Utility.hex(str)+"</tt>"+… in writeIICharts() 179 … <td width=9% align=center title=\""+name+"\">"+ str+"<br><tt>"+Utility.hex(str)+"</tt>"+… in writeIICharts() [all …]
|
D | UnicodeSetCloseOver.java | 28 import com.ibm.icu.impl.Utility; 207 out.println(Utility.formatForSource(pairs.toString()) + ";"); in generateCaseData() 216 out.print(Utility.format1ForSource(a[k])); in generateCaseData() 273 out.print("0x" + Utility.hex(s.charAt(0)) + ",0x" + in generateCaseData() 274 Utility.hex(s.charAt(1)) + ","); in generateCaseData() 303 out.print("0x"+Utility.hex(a[k].charAt(0)) + ","); in generateCaseData() 313 out.print("0x"+Utility.hex(a[k].charAt(m)) + ","); in generateCaseData() 448 out.print("0x" + Utility.hex(buf.charAt(i), 4) + ','); in emitUCharRangesArray() 472 out.println(Utility.formatForSource(buf.toString()) + ";"); in emitRangesString()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | StringReplacer.java | 15 import ohos.global.icu.impl.Utility; 279 Utility.appendToRule(rule, '@', true, escapeUnprintable, quoteBuf); in toReplacerPattern() 286 Utility.appendToRule(rule, '|', true, escapeUnprintable, quoteBuf); in toReplacerPattern() 292 Utility.appendToRule(rule, c, false, escapeUnprintable, quoteBuf); in toReplacerPattern() 297 Utility.appendToRule(rule, buf.toString(), in toReplacerPattern() 308 Utility.appendToRule(rule, '@', true, escapeUnprintable, quoteBuf); in toReplacerPattern() 310 Utility.appendToRule(rule, '|', true, escapeUnprintable, quoteBuf); in toReplacerPattern() 313 Utility.appendToRule(rule, -1, in toReplacerPattern()
|
D | DateFormatSymbols.java | 33 import ohos.global.icu.impl.Utility; 1435 return (Utility.arrayEquals(eras, that.eras) in equals() 1436 && Utility.arrayEquals(eraNames, that.eraNames) in equals() 1437 && Utility.arrayEquals(narrowEras, that.narrowEras) in equals() 1438 && Utility.arrayEquals(months, that.months) in equals() 1439 && Utility.arrayEquals(shortMonths, that.shortMonths) in equals() 1440 && Utility.arrayEquals(narrowMonths, that.narrowMonths) in equals() 1441 && Utility.arrayEquals(standaloneMonths, that.standaloneMonths) in equals() 1442 && Utility.arrayEquals(standaloneShortMonths, that.standaloneShortMonths) in equals() 1443 && Utility.arrayEquals(standaloneNarrowMonths, that.standaloneNarrowMonths) in equals() [all …]
|
D | TransliterationRule.java | 12 import ohos.global.icu.impl.Utility; 511 Utility.appendToRule(rule, anteContext, escapeUnprintable, quoteBuf); in toRule() 514 Utility.appendToRule(rule, '{', true, escapeUnprintable, quoteBuf); in toRule() 517 Utility.appendToRule(rule, key, escapeUnprintable, quoteBuf); in toRule() 520 Utility.appendToRule(rule, '}', true, escapeUnprintable, quoteBuf); in toRule() 523 Utility.appendToRule(rule, postContext, escapeUnprintable, quoteBuf); in toRule() 530 Utility.appendToRule(rule, " > ", true, escapeUnprintable, quoteBuf); in toRule() 534 Utility.appendToRule(rule, output.toReplacerPattern(escapeUnprintable), in toRule() 537 Utility.appendToRule(rule, ';', true, escapeUnprintable, quoteBuf); in toRule()
|
D | CanonicalIterator.java | 20 import ohos.global.icu.impl.Utility; 269 … if (PROGRESS) System.out.println("Adding Permutation: " + Utility.hex(possible)); in getEquivalents() 273 … if (PROGRESS) System.out.println("-Skipping Permutation: " + Utility.hex(possible)); in getEquivalents() 289 if (PROGRESS) System.out.println("Adding: " + Utility.hex(segment)); in getEquivalents2() 365 if (PROGRESS) System.out.println(" extract: " + Utility.hex(UTF16.valueOf(comp)) in extract() 366 + ", " + Utility.hex(segment.substring(segmentPos))); in extract() 385 if (PROGRESS) System.out.println(" matches: " + Utility.hex(UTF16.valueOf(cp))); in extract() 395 if (PROGRESS) System.out.println(" buffer: " + Utility.hex(UTF16.valueOf(cp))); in extract()
|
D | TransliteratorIDParser.java | 24 import ohos.global.icu.impl.Utility; 198 if (Utility.parseChar(id, pos, OPEN_REV)) { in parseSingleID() 200 if (!Utility.parseChar(id, pos, CLOSE_REV)) { in parseSingleID() 203 if (specsB == null || !Utility.parseChar(id, pos, CLOSE_REV)) { in parseSingleID() 275 withParens[0] = Utility.parseChar(id, pos, OPEN_REV) ? 1 : 0; in parseGlobalFilter() 277 if (!Utility.parseChar(id, pos, OPEN_REV)) { in parseGlobalFilter() 297 if (withParens[0] == 1 && !Utility.parseChar(id, pos, CLOSE_REV)) { in parseGlobalFilter() 360 if (!Utility.parseChar(id, pos, ID_DELIM)) { in parseCompoundID() 381 if (!Utility.parseChar(id, pos, ID_DELIM)) { in parseCompoundID() 407 Utility.parseChar(id, pos, ID_DELIM); in parseCompoundID() [all …]
|
D | StringMatcher.java | 11 import ohos.global.icu.impl.Utility; 190 Utility.appendToRule(result, keyChar, false, escapeUnprintable, quoteBuf); in toPattern() 192 Utility.appendToRule(result, m.toPattern(escapeUnprintable), in toPattern() 200 Utility.appendToRule(result, -1, in toPattern() 272 Utility.appendNumber(rule, segmentNumber, 10, 1); in toReplacerPattern()
|
/third_party/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
D | StringReplacer.java | 14 import com.ibm.icu.impl.Utility; 278 Utility.appendToRule(rule, '@', true, escapeUnprintable, quoteBuf); in toReplacerPattern() 285 Utility.appendToRule(rule, '|', true, escapeUnprintable, quoteBuf); in toReplacerPattern() 291 Utility.appendToRule(rule, c, false, escapeUnprintable, quoteBuf); in toReplacerPattern() 296 Utility.appendToRule(rule, buf.toString(), in toReplacerPattern() 307 Utility.appendToRule(rule, '@', true, escapeUnprintable, quoteBuf); in toReplacerPattern() 309 Utility.appendToRule(rule, '|', true, escapeUnprintable, quoteBuf); in toReplacerPattern() 312 Utility.appendToRule(rule, -1, in toReplacerPattern()
|
D | TransliterationRule.java | 11 import com.ibm.icu.impl.Utility; 510 Utility.appendToRule(rule, anteContext, escapeUnprintable, quoteBuf); in toRule() 513 Utility.appendToRule(rule, '{', true, escapeUnprintable, quoteBuf); in toRule() 516 Utility.appendToRule(rule, key, escapeUnprintable, quoteBuf); in toRule() 519 Utility.appendToRule(rule, '}', true, escapeUnprintable, quoteBuf); in toRule() 522 Utility.appendToRule(rule, postContext, escapeUnprintable, quoteBuf); in toRule() 529 Utility.appendToRule(rule, " > ", true, escapeUnprintable, quoteBuf); in toRule() 533 Utility.appendToRule(rule, output.toReplacerPattern(escapeUnprintable), in toRule() 536 Utility.appendToRule(rule, ';', true, escapeUnprintable, quoteBuf); in toRule()
|
D | TransliteratorIDParser.java | 23 import com.ibm.icu.impl.Utility; 197 if (Utility.parseChar(id, pos, OPEN_REV)) { in parseSingleID() 199 if (!Utility.parseChar(id, pos, CLOSE_REV)) { in parseSingleID() 202 if (specsB == null || !Utility.parseChar(id, pos, CLOSE_REV)) { in parseSingleID() 274 withParens[0] = Utility.parseChar(id, pos, OPEN_REV) ? 1 : 0; in parseGlobalFilter() 276 if (!Utility.parseChar(id, pos, OPEN_REV)) { in parseGlobalFilter() 296 if (withParens[0] == 1 && !Utility.parseChar(id, pos, CLOSE_REV)) { in parseGlobalFilter() 359 if (!Utility.parseChar(id, pos, ID_DELIM)) { in parseCompoundID() 380 if (!Utility.parseChar(id, pos, ID_DELIM)) { in parseCompoundID() 406 Utility.parseChar(id, pos, ID_DELIM); in parseCompoundID() [all …]
|
D | StringMatcher.java | 10 import com.ibm.icu.impl.Utility; 189 Utility.appendToRule(result, keyChar, false, escapeUnprintable, quoteBuf); in toPattern() 191 Utility.appendToRule(result, m.toPattern(escapeUnprintable), in toPattern() 199 Utility.appendToRule(result, -1, in toPattern() 271 Utility.appendNumber(rule, segmentNumber, 10, 1); in toReplacerPattern()
|
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/ |
D | ScriptRunModuleWriter.java | 13 import com.ibm.icu.impl.Utility; 36 output.print(Utility.hex(scriptData.getRecord(record).startChar(), 6)); in writeScriptRuns() 38 output.print(Utility.hex(scriptData.getRecord(record).endChar(), 6)); in writeScriptRuns() 49 int power = 1 << Utility.highBit(recordCount); in writeScriptRuns() 53 output.print(Utility.hex(power, 4)); in writeScriptRuns() 58 output.print(Utility.hex(extra, 4)); in writeScriptRuns()
|
D | LigatureTree.java | 20 import com.ibm.icu.impl.Utility; 84 result.append(Utility.hex(chars[i], 6)); in ligatureString() 87 result.append(" => " + Utility.hex(chars[len], 6)); in ligatureString() 100 ": already have " + Utility.hex(ligature, 6)); in insert() 177 w.write(Utility.hex(target, 6)); in dump() 183 w.write(Utility.hex(ligature, 6)); in dump()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateFormatSymbols.java | 32 import com.ibm.icu.impl.Utility; 1476 return (Utility.arrayEquals(eras, that.eras) in equals() 1477 && Utility.arrayEquals(eraNames, that.eraNames) in equals() 1478 && Utility.arrayEquals(narrowEras, that.narrowEras) in equals() 1479 && Utility.arrayEquals(months, that.months) in equals() 1480 && Utility.arrayEquals(shortMonths, that.shortMonths) in equals() 1481 && Utility.arrayEquals(narrowMonths, that.narrowMonths) in equals() 1482 && Utility.arrayEquals(standaloneMonths, that.standaloneMonths) in equals() 1483 && Utility.arrayEquals(standaloneShortMonths, that.standaloneShortMonths) in equals() 1484 && Utility.arrayEquals(standaloneNarrowMonths, that.standaloneNarrowMonths) in equals() [all …]
|
D | CanonicalIterator.java | 19 import com.ibm.icu.impl.Utility; 273 … if (PROGRESS) System.out.println("Adding Permutation: " + Utility.hex(possible)); in getEquivalents() 277 … if (PROGRESS) System.out.println("-Skipping Permutation: " + Utility.hex(possible)); in getEquivalents() 293 if (PROGRESS) System.out.println("Adding: " + Utility.hex(segment)); in getEquivalents2() 369 if (PROGRESS) System.out.println(" extract: " + Utility.hex(UTF16.valueOf(comp)) in extract() 370 + ", " + Utility.hex(segment.substring(segmentPos))); in extract() 389 if (PROGRESS) System.out.println(" matches: " + Utility.hex(UTF16.valueOf(cp))); in extract() 399 if (PROGRESS) System.out.println(" buffer: " + Utility.hex(UTF16.valueOf(cp))); in extract()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/ |
D | BasicTest.java | 23 import com.ibm.icu.impl.Utility; 809 String input = Utility.unescape(tests[i][0]); in staticTest() 810 String expect = Utility.unescape(tests[i][outCol]); in staticTest() 825 char[] input = Utility.unescape(tests[i][0]).toCharArray(); in staticTest() 826 String expect =Utility.unescape( tests[i][outCol]); in staticTest() 854 String input = Utility.unescape(tests[i][0]); in decomposeTest() 855 String expect = Utility.unescape(tests[i][outCol]); in decomposeTest() 870 char[] input = Utility.unescape(tests[i][0]).toCharArray(); in decomposeTest() 871 String expect = Utility.unescape(tests[i][outCol]); in decomposeTest() 897 char[] input = Utility.unescape(tests[i][0]).toCharArray(); in decomposeTest() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/normalizer/ |
D | BasicTest.java | 24 import ohos.global.icu.impl.Utility; 812 String input = Utility.unescape(tests[i][0]); in staticTest() 813 String expect = Utility.unescape(tests[i][outCol]); in staticTest() 828 char[] input = Utility.unescape(tests[i][0]).toCharArray(); in staticTest() 829 String expect =Utility.unescape( tests[i][outCol]); in staticTest() 857 String input = Utility.unescape(tests[i][0]); in decomposeTest() 858 String expect = Utility.unescape(tests[i][outCol]); in decomposeTest() 873 char[] input = Utility.unescape(tests[i][0]).toCharArray(); in decomposeTest() 874 String expect = Utility.unescape(tests[i][outCol]); in decomposeTest() 900 char[] input = Utility.unescape(tests[i][0]).toCharArray(); in decomposeTest() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UCharacterCaseTest.java | 26 import com.ibm.icu.impl.Utility; 659 Utility.escape(chstr[0]) + ", expected " in TestSpecialCasingTxt() 660 + Utility.escape(chstr[1]) + " but resulted in " + in TestSpecialCasingTxt() 661 Utility.escape(UCharacter.toLowerCase(chstr[0]))); in TestSpecialCasingTxt() 666 Utility.escape(chstr[0]) + ", expected " in TestSpecialCasingTxt() 667 + Utility.escape(chstr[3]) + " but resulted in " + in TestSpecialCasingTxt() 668 Utility.escape(UCharacter.toUpperCase(chstr[0]))); in TestSpecialCasingTxt() 676 Utility.escape(chstr[0]) + ", expected " in TestSpecialCasingTxt() 677 + Utility.escape(chstr[1]) + " but resulted in " + in TestSpecialCasingTxt() 678 Utility.escape(UCharacter.toLowerCase(locale, in TestSpecialCasingTxt() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/lang/ |
D | UCharacterCaseTest.java | 27 import ohos.global.icu.impl.Utility; 662 Utility.escape(chstr[0]) + ", expected " in TestSpecialCasingTxt() 663 + Utility.escape(chstr[1]) + " but resulted in " + in TestSpecialCasingTxt() 664 Utility.escape(UCharacter.toLowerCase(chstr[0]))); in TestSpecialCasingTxt() 669 Utility.escape(chstr[0]) + ", expected " in TestSpecialCasingTxt() 670 + Utility.escape(chstr[3]) + " but resulted in " + in TestSpecialCasingTxt() 671 Utility.escape(UCharacter.toUpperCase(chstr[0]))); in TestSpecialCasingTxt() 679 Utility.escape(chstr[0]) + ", expected " in TestSpecialCasingTxt() 680 + Utility.escape(chstr[1]) + " but resulted in " + in TestSpecialCasingTxt() 681 Utility.escape(UCharacter.toLowerCase(locale, in TestSpecialCasingTxt() [all …]
|