/external/stlport/test/eh/ |
D | test_string.cpp | 39 TestString testString, testString2; in test_string() local 42 while ( testString.size() < ropeSize ) { in test_string() 44 testString.append(1, x ); in test_string() 47 WeakCheck( testString, test_insert_one<TestString>(testString) ); in test_string() 48 WeakCheck( testString, test_insert_one<TestString>(testString, 0) ); in test_string() 49 WeakCheck( testString, test_insert_one<TestString>(testString, (int)testString.size()) ); in test_string() 51 WeakCheck( testString, test_insert_n<TestString>(testString, random_number(random_base) ) ); in test_string() 52 WeakCheck( testString, test_insert_n<TestString>(testString, random_number(random_base), 0 ) ); in test_string() 53 …WeakCheck( testString, test_insert_n<TestString>(testString, random_number(random_base), (int)test… in test_string() 58 WeakCheck( testString, insert_range_tester(testString, insFirst, insFirst+insCnt) ); in test_string() [all …]
|
/external/apache-harmony/regex/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | PatternTest.java | 158 String testString; in testFlags() local 163 testString = "A"; in testFlags() 165 mat = pat.matcher(testString); in testFlags() 169 testString = "A"; in testFlags() 171 mat = pat.matcher(testString); in testFlags() 175 testString = "B"; in testFlags() 177 mat = pat.matcher(testString); in testFlags() 181 testString = "B"; in testFlags() 183 mat = pat.matcher(testString); in testFlags() 187 testString = "B"; in testFlags() [all …]
|
D | MatcherTest.java | 336 String testString = "dacaacaacaaddaaacaacaaddd"; in testQuantVsGroup() local 339 Matcher mat = pat.matcher(testString); in testQuantVsGroup() 358 String testString = "cccabbabbabbabbabb"; in testFind() local 360 Matcher mat = pat.matcher(testString); in testFind() 372 testString = "aaaa123456789045"; in testFind() 375 Matcher mat2 = pat2.matcher(testString); in testFind() 379 assertEquals(testString.substring(start, start + length), mat2 in testFind()
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_2/regexp/ |
D | octal.js | 44 var testString = "12345ABCDEFGHIJKLMNOPQRSTUVWXYZ67890"; variable 47 … "'" + testString + "'.match(new RegExp('" + testPattern + "'))", 48 … String(["ABCDEFGHIJKLMNOPQRSTUVWXYZ"]), String(testString.match(new RegExp(testPattern)))); 52 testString = "12345AabcdefghijklmnopqrstuvwxyzZ67890"; 55 … "'" + testString + "'.match(new RegExp('" + testPattern + "'))", 56 … String(["abcdefghijklmnopqrstuvwxyz"]), String(testString.match(new RegExp(testPattern)))); 60 testString = "abc !\"#$%&'()*+,-./0123ZBC"; 63 … "'" + testString + "'.match(new RegExp('" + testPattern + "'))", 64 … String([" !\"#$%&'()*+,-./0123"]), String(testString.match(new RegExp(testPattern)))); 68 testString = "123456789:;<=>?@ABC"; [all …]
|
D | hexadecimal.js | 44 var testString = "12345ABCDEFGHIJKLMNOPQRSTUVWXYZ67890"; variable 47 … "'" + testString + "'.match(new RegExp('" + testPattern + "'))", 48 … String(["ABCDEFGHIJKLMNOPQRSTUVWXYZ"]), String(testString.match(new RegExp(testPattern)))); 52 testString = "12345AabcdefghijklmnopqrstuvwxyzZ67890"; 55 … "'" + testString + "'.match(new RegExp('" + testPattern + "'))", 56 … String(["abcdefghijklmnopqrstuvwxyz"]), String(testString.match(new RegExp(testPattern)))); 60 testString = "abc !\"#$%&'()*+,-./0123ZBC"; 63 … "'" + testString + "'.match(new RegExp('" + testPattern + "'))", 64 … String([" !\"#$%&'()*+,-./0123"]), String(testString.match(new RegExp(testPattern)))); 68 testString = "123456789:;<=>?@ABC"; [all …]
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
D | StringReaderTest.java | 25 String testString = "This is a test string"; field in StringReaderTest 43 sr = new StringReader(testString); in test_close() 58 sr = new StringReader(testString); in test_markI() 66 .equals(testString.substring(5, 7))); in test_markI() 75 sr = new StringReader(testString); in test_markSupported() 84 sr = new StringReader(testString); in test_read() 96 sr = new StringReader(testString); in test_read$CII() 97 char[] buf = new char[testString.length()]; in test_read$CII() 98 int r = sr.read(buf, 0, testString.length()); in test_read$CII() 99 assertTrue("Failed to read chars", r == testString.length()); in test_read$CII() [all …]
|
D | BufferedWriterTest.java | 34 …public String testString = "Test_All_Tests\nTest_java_io_BufferedInputStream\nTest_java_io_Buffere… field in BufferedWriterTest 86 bw.write(testString); in test_close() 91 assertTrue("Write after close", !sw.toString().equals(testString)); in test_close() 147 char[] testCharArray = testString.toCharArray(); in test_write$CII() 151 testString.substring(500, 1500))); in test_write$CII() 189 char[] testCharArray = testString.toCharArray(); in test_write_$CII_Exception() 226 bw.write(testString); in test_writeLjava_lang_StringII() 228 assertTrue("Incorrect string written", sw.toString().equals(testString)); in test_writeLjava_lang_StringII() 249 bWriter.write(testString, 0, 0); in test_write_LStringII_Exception() 250 bWriter.write(testString, testString.length(), 0); in test_write_LStringII_Exception() [all …]
|
D | BufferedReaderTest.java | 36 …String testString = "Test_All_Tests\nTest_java_io_BufferedInputStream\nTest_java_io_BufferedOutput… field in BufferedReaderTest 92 br = new BufferedReader(new Support_StringReader(testString)); in test_close() 107 br = new BufferedReader(new Support_StringReader(testString)); in test_markI() 112 buf = new char[testString.length()]; in test_markI() 114 assertTrue("Failed to set mark properly", testString.substring(500, in test_markI() 118 br = new BufferedReader(new Support_StringReader(testString), 800); in test_markI() 182 br = new BufferedReader(new Support_StringReader(testString)); in test_markSupported() 192 br = new BufferedReader(new Support_StringReader(testString)); in test_read() 194 assertTrue("Char read improperly", testString.charAt(0) == r); in test_read() 289 char[] buf = new char[testString.length()]; in test_read$CII() [all …]
|
D | StringWriterTest.java | 177 String testString = "My Test String"; in test_appendCharSequence() local 179 stringWriter.append(testString); in test_appendCharSequence() 180 assertEquals(String.valueOf(testString), stringWriter.toString()); in test_appendCharSequence() 188 String testString = "My Test String"; in test_appendCharSequenceIntInt() local 190 stringWriter.append(testString, 1, 3); in test_appendCharSequenceIntInt() 191 assertEquals(testString.substring(1, 3), stringWriter.toString()); in test_appendCharSequenceIntInt()
|
D | WriterTest.java | 41 String testString = "My Test String"; in test_appendCharSequence() local 43 writer.append(testString); in test_appendCharSequence() 44 assertEquals(testString, String.valueOf(writer.getContents())); in test_appendCharSequence() 53 String testString = "My Test String"; in test_appendCharSequenceIntInt() local 55 writer.append(testString, 1, 3); in test_appendCharSequenceIntInt() 56 assertEquals(testString.substring(1, 3), String.valueOf(writer in test_appendCharSequenceIntInt()
|
D | CharArrayWriterTest.java | 214 String testString = "My Test String"; in test_appendCharSequence() local 216 writer.append(testString); in test_appendCharSequence() 218 assertEquals(testString, writer.toString()); in test_appendCharSequence() 226 String testString = "My Test String"; in test_appendCharSequenceIntInt() local 228 writer.append(testString, 1, 3); in test_appendCharSequenceIntInt() 230 assertEquals(testString.substring(1, 3), writer.toString()); in test_appendCharSequenceIntInt()
|
D | OutputStreamWriterTest.java | 56 …String testString = "Test_All_Tests\nTest_java_io_BufferedInputStream\nTest_java_io_BufferedOutput… field in OutputStreamWriterTest 574 osw.write(testString, 0, testString.length()); in test_close() 623 char[] buf = new char[testString.length()]; in test_flush() 624 osw.write(testString, 0, testString.length()); in test_flush() 629 .equals(testString)); in test_flush() 665 char[] buf = new char[testString.length()]; in test_write$CII() 666 osw.write(testString, 0, testString.length()); in test_write$CII() 671 .equals(testString)); in test_write$CII() 689 char[] buf = new char[testString.length()]; in test_writeLjava_lang_StringII() 690 osw.write(testString, 0, testString.length()); in test_writeLjava_lang_StringII() [all …]
|
/external/icu4c/test/intltest/ |
D | trnserr.cpp | 59 UnicodeString testString="A quick fox jumped over the lazy dog."; in TestTransliteratorErrors() local 73 len = testString.length(); in TestTransliteratorErrors() 74 stoppedAt = t->transliterate(testString, 0, 100); in TestTransliteratorErrors() 77 } else if (testString.length() != len) { in TestTransliteratorErrors() 78 testString="A quick fox jumped over the lazy dog."; in TestTransliteratorErrors() 81 stoppedAt = t->transliterate(testString, 100, testString.length()-1); in TestTransliteratorErrors() 84 else if (testString.length() != len) { in TestTransliteratorErrors() 85 testString="A quick fox jumped over the lazy dog."; in TestTransliteratorErrors() 89 pos.limit = testString.length(); in TestTransliteratorErrors() 90 t->transliterate(testString, pos, status); in TestTransliteratorErrors() [all …]
|
D | rbbitst.cpp | 1159 UnicodeString testString("boo."); in TestEndBehaviour() local 1166 wb->setText(testString); in TestEndBehaviour() 1262 UnicodeString testString = CharsToUnicodeString("\\u4e00x\\u4e8c"); in TestJapaneseLineBreak() 1282 testString.setCharAt(1, precedingChars[i]); in TestJapaneseLineBreak() 1283 iter->setText(testString); in TestJapaneseLineBreak() 1298 testString.setCharAt(1, followingChars[i]); in TestJapaneseLineBreak() 1299 iter->setText(testString); in TestJapaneseLineBreak() 1494 UnicodeString testString(FALSE, testFile, len); in TestExtended() local 1524 UChar c = testString.charAt(charIdx); in TestExtended() 1526 if (c == CH_CR && charIdx<len && testString.charAt(charIdx) == CH_LF) { in TestExtended() [all …]
|
/external/v8/test/mjsunit/third_party/ |
D | string-trim.js | 41 var testString = 'foo bar'; variable 79 trimString = wsString + testString + wsString; 80 leftTrimString = testString + wsString; // Trimmed from the left. 81 rightTrimString = wsString + testString; // Trimmed from the right. 87 assertEquals(trimString.trim(), testString); 91 assertEquals(leftTrimString.trim(), testString); 93 assertEquals(leftTrimString.trimRight(), testString); 95 assertEquals(rightTrimString.trim(), testString); 96 assertEquals(rightTrimString.trimLeft(), testString);
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | MultiReaderTest.java | 34 String testString = "abcdefgh"; in testOnlyOneOpen() local 35 final InputSupplier<Reader> supplier = newReader(testString); in testOnlyOneOpen() 54 assertEquals(testString.length() * 3, result.length()); in testOnlyOneOpen() 70 String testString = "abcdefgh"; in testSimple() local 71 InputSupplier<Reader> supplier = newReader(testString); in testSimple() 75 String expectedString = testString + testString; in testSimple()
|
D | CharStreamsTest.java | 255 String testString = "abcdef"; 256 Reader reader = new StringReader(testString); 258 assertEquals(testString.charAt(0), reader.read()); 260 assertEquals(testString.charAt(2), reader.read()); 262 assertEquals(testString.charAt(5), reader.read());
|
/external/icu4c/test/iotest/ |
D | stream.cpp | 227 testString( in testString() function 229 const char* testString, in testString() argument 239 sstrm << testString; in testString() 246 log_verbose("iostream after operator::>>() call \"%s\" ", testString); in testString() 259 …log_err("Did not get expected results from \"%s\", expected \"%s\"\n", testString, expectedString); in testString() 328 testString(UStr, u_austrcpy(testcase, testCase1), expectedResultA, IOSTREAM_EOF|IOSTREAM_FAIL); in TestStreamEOF() 329 testString(UStr, u_austrcpy(testcase, testCase2), expectedResultB, IOSTREAM_EOF); in TestStreamEOF() 331 testString(UStr, u_austrcpy(testcase, testCase3), expectedResultC, IOSTREAM_EOF|IOSTREAM_FAIL); in TestStreamEOF() 332 testString(UStr, u_austrcpy(testcase, testCase4), expectedResultD, IOSTREAM_EOF); in TestStreamEOF() 333 testString(UStr, u_austrcpy(testcase, testCase5), expectedResultD, IOSTREAM_GOOD); in TestStreamEOF() [all …]
|
/external/webkit/Tools/DumpRenderTree/chromium/ |
D | DumpRenderTree.cpp | 217 char testString[2048]; // 2048 is the same as the sizes of other platforms. in main() local 218 while (fgets(testString, sizeof(testString), stdin)) { in main() 219 char* newLinePosition = strchr(testString, '\n'); in main() 222 if (testString[0] == '\0') in main() 224 runTest(shell, params, testString, testShellMode); in main()
|
/external/icu4c/test/cintltst/ |
D | custrtst.c | 483 const UChar testString[] = {0x0061, 0x0062, 0x0063, 0x0064, 0x0064, 0x0061, 0}; in TestStringSearching() local 507 if (u_strpbrk(testString, a) != &testString[0]) { in TestStringSearching() 510 if (u_strpbrk(testString, dc) != &testString[2]) { in TestStringSearching() 513 if (u_strpbrk(testString, cd) != &testString[2]) { in TestStringSearching() 516 if (u_strpbrk(testString, cdh) != &testString[2]) { in TestStringSearching() 519 if (u_strpbrk(testString, f) != NULL) { in TestStringSearching() 522 if (u_strpbrk(testString, fg) != NULL) { in TestStringSearching() 525 if (u_strpbrk(testString, gf) != NULL) { in TestStringSearching() 528 if (u_strpbrk(testString, empty) != NULL) { in TestStringSearching() 573 if (u_strcspn(testString, a) != 0) { in TestStringSearching() [all …]
|
/external/icu4c/samples/citer/ |
D | citer.cpp | 47 UnicodeString testString(testChars,""); in TestUChariter() local 48 const UChar *testText = testString.getTerminatedBuffer(); in TestUChariter() 114 UnicodeString testString(testChars,""); in TestStringiter() local 115 const UChar *testText = testString.getTerminatedBuffer(); in TestStringiter()
|
/external/webkit/Source/WebCore/bridge/ |
D | testqtbindings.cpp | 43 Q_PROPERTY(QString testString READ testString WRITE setTestString) property in MyObject 57 QString testString() const { in testString() function in MyObject
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
D | FloatTest.java | 305 String testString; in test_parseFloatLjava_lang_String() local 306 testString = "3.4028234663852886e-" + i; in test_parseFloatLjava_lang_String() 307 doTestCompareRawBits(testString, rawBitsFor3_4eN38To38[38 - i], in test_parseFloatLjava_lang_String() 332 String testString; in test_parseFloatLjava_lang_String() local 333 testString = "3.4028234663852886e+" + i; in test_parseFloatLjava_lang_String() 334 doTestCompareRawBits(testString, rawBitsFor3_4eN38To38[38 + i], in test_parseFloatLjava_lang_String() 340 String testString; in test_parseFloatLjava_lang_String() local 341 testString = "-1.1754943508222875e-" + i; in test_parseFloatLjava_lang_String() 342 doTestCompareRawBits(testString, rawBitsFor1_17eN38To38[38 - i], in test_parseFloatLjava_lang_String() 367 String testString; in test_parseFloatLjava_lang_String() local [all …]
|
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
D | InflaterOutputStreamTest.java | 35 private String testString = "Hello world"; field in InflaterOutputStreamTest 211 int length = compressToBytes(testString); in test_write_I() 220 assertEquals(testString, result); in test_write_I() 243 int length = compressToBytes(testString); in test_write_$BII() 250 assertEquals(testString, result); in test_write_$BII()
|
/external/v8/test/mjsunit/ |
D | value-callic-prototype-change.js | 31 function testString() { function 50 testString();
|