Home
last modified time | relevance | path

Searched refs:testText (Results 1 – 16 of 16) sorted by relevance

/external/icu/icu4c/source/samples/citer/
Dciter.cpp59 const UChar *testText = testString.getTerminatedBuffer(); in TestUChariter() local
61 UCharCharacterIterator iter(testText, u_strlen(testText)); in TestUChariter()
87 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestUChariter()
94 if (c == CharacterIterator::DONE && i != u_strlen(testText)) { in TestUChariter()
97 else if (c != testText[i]) { in TestUChariter()
126 const UChar *testText = testString.getTerminatedBuffer(); in TestStringiter() local
128 StringCharacterIterator iter(testText, u_strlen(testText)); in TestStringiter()
151 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestStringiter()
160 else if (c != testText[i]) { in TestStringiter()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/statsd/
DGenerateLinksLoggerTest.java88 String testText = "The number is " + phoneText; in logGenerateLinks_allFieldsAreSet() local
89 int phoneOffset = testText.indexOf(phoneText); in logGenerateLinks_allFieldsAreSet()
92 new TextLinks.Builder(testText) in logGenerateLinks_allFieldsAreSet()
100 testText, in logGenerateLinks_allFieldsAreSet() local
123 .setTextLength(testText.length()) in logGenerateLinks_allFieldsAreSet()
138 .setTextLength(testText.length()) in logGenerateLinks_allFieldsAreSet()
150 String testText = "The number is " + phoneText + ", the address is " + addressText; in logGenerateLinks_multipleLinks() local
151 int phoneOffset = testText.indexOf(phoneText); in logGenerateLinks_multipleLinks()
152 int addressOffset = testText.indexOf(addressText); in logGenerateLinks_multipleLinks()
156 new TextLinks.Builder(testText) in logGenerateLinks_multipleLinks()
[all …]
/external/icu/icu4c/source/test/intltest/
Dcitrtest.cpp164 … UnicodeString testText("Now is the time for all good men to come to the aid of their country."); in TestCoverage() local
167 SCharacterIterator* test = new SCharacterIterator(testText); in TestCoverage()
174 if(test->getLength()!=testText.length()){ in TestCoverage()
182 if(test->getIndex()!=testText.length()){ in TestCoverage()
197 … UnicodeString testText("Now is the time for all good men to come to the aid of their country."); in TestConstructionAndEquality() local
201 StringCharacterIterator* test1 = new StringCharacterIterator(testText); in TestConstructionAndEquality()
202 CharacterIterator* test1b= new StringCharacterIterator(testText, -1); in TestConstructionAndEquality()
203 CharacterIterator* test1c= new StringCharacterIterator(testText, 100); in TestConstructionAndEquality()
204 CharacterIterator* test1d= new StringCharacterIterator(testText, -2, 100, 5); in TestConstructionAndEquality()
205 CharacterIterator* test1e= new StringCharacterIterator(testText, 100, 20, 5); in TestConstructionAndEquality()
[all …]
Drbbitst.cpp4041 UnicodeString testText; in RunMonkey() local
4091 testText.truncate(0); in RunMonkey()
4103 …if (U16_IS_TRAIL(c) && testText.length() > 0 && U16_IS_LEAD(testText.charAt(testText.length()-1)))… in RunMonkey()
4107 testText.append(c); in RunMonkey()
4111 mk.setText(testText); in RunMonkey()
4122 if (breakPos > testText.length()) { in RunMonkey()
4126 U_ASSERT(expectedCount<testText.length()); in RunMonkey()
4133 UText *testUText = utext_openReplaceable(NULL, &testText, &status); in RunMonkey()
4141 bi->setText(testText); in RunMonkey()
4145 if (i < 0 || i > testText.length()) { in RunMonkey()
[all …]
Dregcoll.cpp1084 UnicodeString testText = "church church catcatcher runcrunchynchy"; in Test4179216() local
1085 CollationElementIterator *iter = coll.createCollationElementIterator(testText); in Test4179216()
1152 nextElements[count++] = testText.tempSubStringBetween(lastPos, iter->getOffset()); in Test4179216()
1158 for (int32_t i = 0; i < testText.length(); ) { in Test4179216()
1162 setOffsetElements[count++] = testText.tempSubStringBetween(lastPos, iter->getOffset()); in Test4179216()
Dregextst.cpp2314 UText testText = UTEXT_INITIALIZER; in API_Match_UTF8() local
2317 regextst_openUTF8FromInvariant(&testText, "This is test data", -1, &status); in API_Match_UTF8()
2318 REGEX_VERBOSE_TEXT(&testText); in API_Match_UTF8()
2320 RegexMatcher m(&testPattern, &testText, 0, status); in API_Match_UTF8()
2338 regextst_openUTF8FromInvariant(&testText, "short", -1, &status); in API_Match_UTF8()
2339 REGEX_VERBOSE_TEXT(&testText); in API_Match_UTF8()
2340 m.reset(&testText); in API_Match_UTF8()
2366 utext_close(&testText); in API_Match_UTF8()
2376 UText testText = UTEXT_INITIALIZER; in API_Match_UTF8() local
2380 utext_openUTF8(&testText, str_aabb, -1, &status); in API_Match_UTF8()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DRBBITestMonkey.java1928 StringBuffer testText = new StringBuffer(); in RunMonkey() local
1996 testText.setLength(0); in RunMonkey()
2011 if (c < 0x10000 && Character.isLowSurrogate((char)c) && testText.length() > 0 && in RunMonkey()
2012 Character.isHighSurrogate(testText.charAt(testText.length()-1))) { in RunMonkey()
2015 testText.appendCodePoint(c); in RunMonkey()
2032 mk.setText(testText); in RunMonkey()
2043 if (breakPos > testText.length()) { in RunMonkey()
2057 bi.setText(testText.toString()); in RunMonkey()
2059 if (i < 0 || i > testText.length()) { in RunMonkey()
2074 if (i < 0 || i > testText.length()) { in RunMonkey()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
DRBBITestMonkey.java1931 StringBuffer testText = new StringBuffer(); in RunMonkey() local
1999 testText.setLength(0); in RunMonkey()
2014 if (c < 0x10000 && Character.isLowSurrogate((char)c) && testText.length() > 0 && in RunMonkey()
2015 Character.isHighSurrogate(testText.charAt(testText.length()-1))) { in RunMonkey()
2018 testText.appendCodePoint(c); in RunMonkey()
2035 mk.setText(testText); in RunMonkey()
2046 if (breakPos > testText.length()) { in RunMonkey()
2060 bi.setText(testText.toString()); in RunMonkey()
2062 if (i < 0 || i > testText.length()) { in RunMonkey()
2077 if (i < 0 || i > testText.length()) { in RunMonkey()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/
DTextNodeTest.java5 public void testText() in testText() method in TextNodeTest
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationRegressionTest.java944 String testText = "church church catcatcher runcrunchynchy"; in Test4179216() local
946 testText); in Test4179216()
1013 nextElements[count++] = testText.substring(lastPos, iter.getOffset()); in Test4179216()
1018 for (int i = 0; i < testText.length(); ) { in Test4179216()
1022 setOffsetElements[count++] = testText.substring(lastPos, iter.getOffset()); in Test4179216()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationRegressionTest.java941 String testText = "church church catcatcher runcrunchynchy"; in Test4179216() local
943 testText); in Test4179216()
1010 nextElements[count++] = testText.substring(lastPos, iter.getOffset()); in Test4179216()
1015 for (int i = 0; i < testText.length(); ) { in Test4179216()
1019 setOffsetElements[count++] = testText.substring(lastPos, iter.getOffset()); in Test4179216()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/charsetdet/
DTestCharsetDetector.java366 StringBuffer testText = new StringBuffer(); in TestDetection() local
378 testText.append(node.getNodeValue()); in TestDetection()
400 String testString = testText.toString(); in TestDetection()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/
DTestCharsetDetector.java363 StringBuffer testText = new StringBuffer(); in TestDetection() local
375 testText.append(node.getNodeValue()); in TestDetection()
397 String testString = testText.toString(); in TestDetection()
/external/tensorflow/tensorflow/python/kernel_tests/proto/
Ddecode_proto_op_test_base.py265 def testText(self, case): member in DecodeProtoOpTestBase
/external/skqp/tests/
DSurfaceTest.cpp411 SkString testText("Hello World"); in test_copy_on_write() local
434 EXPECT_COPY_ON_WRITE(drawString(testText, 0, 1, SkFont(), testPaint)) in test_copy_on_write()
/external/skia/tests/
DSurfaceTest.cpp446 SkString testText("Hello World"); in test_copy_on_write() local
468 EXPECT_COPY_ON_WRITE(drawString(testText, 0, 1, SkFont(), testPaint)) in test_copy_on_write()