Home
last modified time | relevance | path

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

/external/icu/icu4c/source/samples/citer/
Dciter.cpp54 const UChar *testText = testString.getTerminatedBuffer(); in TestUChariter() local
56 UCharCharacterIterator iter(testText, u_strlen(testText)); in TestUChariter()
82 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestUChariter()
89 if (c == CharacterIterator::DONE && i != u_strlen(testText)) { in TestUChariter()
92 else if (c != testText[i]) { in TestUChariter()
121 const UChar *testText = testString.getTerminatedBuffer(); in TestStringiter() local
123 StringCharacterIterator iter(testText, u_strlen(testText)); in TestStringiter()
146 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestStringiter()
155 else if (c != testText[i]) { in TestStringiter()
/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 CharacterIterator* 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.cpp4251 UnicodeString testText; in RunMonkey() local
4298 testText.truncate(0); in RunMonkey()
4310 …if (U16_IS_TRAIL(c) && testText.length() > 0 && U16_IS_LEAD(testText.charAt(testText.length()-1)))… in RunMonkey()
4314 testText.append(c); in RunMonkey()
4318 mk.setText(testText); in RunMonkey()
4328 if (breakPos > testText.length()) { in RunMonkey()
4332 U_ASSERT(expectedCount<testText.length()); in RunMonkey()
4342 UText *testUText = utext_openReplaceable(NULL, &testText, &status); in RunMonkey()
4350 bi->setText(testText); in RunMonkey()
4354 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.cpp2342 UText testText = UTEXT_INITIALIZER; in API_Match_UTF8() local
2345 regextst_openUTF8FromInvariant(&testText, "This is test data", -1, &status); in API_Match_UTF8()
2346 REGEX_VERBOSE_TEXT(&testText); in API_Match_UTF8()
2348 RegexMatcher m(&testPattern, &testText, 0, status); in API_Match_UTF8()
2366 regextst_openUTF8FromInvariant(&testText, "short", -1, &status); in API_Match_UTF8()
2367 REGEX_VERBOSE_TEXT(&testText); in API_Match_UTF8()
2368 m.reset(&testText); in API_Match_UTF8()
2394 utext_close(&testText); in API_Match_UTF8()
2404 UText testText = UTEXT_INITIALIZER; in API_Match_UTF8() local
2408 utext_openUTF8(&testText, str_aabb, -1, &status); in API_Match_UTF8()
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DSmsManagerTest.java23 private String testText = "testSmsBodyText"; field in SmsManagerTest
46 smsManager.sendTextMessage(testDestinationAddress, testScAddress, testText, null, null); in shouldStoreLastSentTextMessageParameters()
52 Assert.assertEquals(testText, lastParams.getText()); in shouldStoreLastSentTextMessageParameters()
57 smsManager.sendTextMessage(testDestinationAddress, testScAddress, testText, null, null); in shouldClearLastSentTestMessageParameters()
64 smsManager.sendTextMessage("", testScAddress, testText, null, null); in sendTextMessage_shouldThrowExceptionWithEmptyDestination()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
DRBBITestMonkey.java1832 StringBuffer testText = new StringBuffer(); in RunMonkey() local
1897 testText.setLength(0); in RunMonkey()
1910 UTF16.appendCodePoint(testText, c); in RunMonkey()
1928 mk.setText(testText); in RunMonkey()
1940 if (breakPos > testText.length()) { in RunMonkey()
1955 bi.setText(testText.toString()); in RunMonkey()
1957 if (i < 0 || i > testText.length()) { in RunMonkey()
1972 if (i < 0 || i > testText.length()) { in RunMonkey()
1980 for (i=0; i<=testText.length(); i++) { in RunMonkey()
1987 for (i=0; i<testText.length(); i++) { in RunMonkey()
[all …]
DRBBITest.java468 private void doMultipleSelectionTest(RuleBasedBreakIterator iterator, String testText) in doMultipleSelectionTest() argument
DBreakIteratorTest.java251 private void doMultipleSelectionTest(BreakIterator iterator, String testText) in doMultipleSelectionTest() argument
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DRBBITestMonkey.java1831 StringBuffer testText = new StringBuffer(); in RunMonkey() local
1896 testText.setLength(0); in RunMonkey()
1909 UTF16.appendCodePoint(testText, c); in RunMonkey()
1927 mk.setText(testText); in RunMonkey()
1939 if (breakPos > testText.length()) { in RunMonkey()
1954 bi.setText(testText.toString()); in RunMonkey()
1956 if (i < 0 || i > testText.length()) { in RunMonkey()
1971 if (i < 0 || i > testText.length()) { in RunMonkey()
1979 for (i=0; i<=testText.length(); i++) { in RunMonkey()
1986 for (i=0; i<testText.length(); i++) { in RunMonkey()
[all …]
DRBBITest.java467 private void doMultipleSelectionTest(RuleBasedBreakIterator iterator, String testText) in doMultipleSelectionTest() argument
DBreakIteratorTest.java250 private void doMultipleSelectionTest(BreakIterator iterator, String testText) in doMultipleSelectionTest() argument
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationRegressionTest.java938 String testText = "church church catcatcher runcrunchynchy"; in Test4179216() local
940 testText); in Test4179216()
1007 nextElements[count++] = testText.substring(lastPos, iter.getOffset()); in Test4179216()
1012 for (int i = 0; i < testText.length(); ) { in Test4179216()
1016 setOffsetElements[count++] = testText.substring(lastPos, iter.getOffset()); in Test4179216()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationRegressionTest.java939 String testText = "church church catcatcher runcrunchynchy"; in Test4179216() local
941 testText); in Test4179216()
1008 nextElements[count++] = testText.substring(lastPos, iter.getOffset()); in Test4179216()
1013 for (int i = 0; i < testText.length(); ) { in Test4179216()
1017 setOffsetElements[count++] = testText.substring(lastPos, iter.getOffset()); in Test4179216()
/external/skia/tests/
DSurfaceTest.cpp299 SkString testText("Hello World"); in test_copy_on_write() local
335 EXPECT_COPY_ON_WRITE(drawString(testText, 0, 1, testPaint)) in test_copy_on_write()
336 EXPECT_COPY_ON_WRITE(drawPosText(testText.c_str(), testText.size(), testPoints2, \ in test_copy_on_write()
338 EXPECT_COPY_ON_WRITE(drawTextOnPath(testText.c_str(), testText.size(), testPath, nullptr, \ in test_copy_on_write()
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/internal/xml/
DXMLElementTest.java80 public void testText() throws IOException { in testText() method in XMLElementTest
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/charsetdet/
DTestCharsetDetector.java361 StringBuffer testText = new StringBuffer(); in TestDetection() local
373 testText.append(node.getNodeValue()); in TestDetection()
395 String testString = testText.toString(); in TestDetection()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/
DTestCharsetDetector.java360 StringBuffer testText = new StringBuffer(); in TestDetection() local
372 testText.append(node.getNodeValue()); in TestDetection()
394 String testString = testText.toString(); in TestDetection()