Home
last modified time | relevance | path

Searched refs:trim (Results 1 – 25 of 62) sorted by relevance

123

/libcore/ojluni/src/test/java/lang/String/CompactString/
DTrim.java48 { " \t \t".trim(), "" }, in trims()
49 { "\t \t ".trim(), "" }, in trims()
50 { "\t A B C\t ".trim(), "A B C" }, in trims()
51 { " \t A B C \t".trim(), "A B C" }, in trims()
52 { "\t \uFF21 \uFF22 \uFF23\t ".trim(), "\uFF21 \uFF22 \uFF23" }, in trims()
53 { " \t \uFF21 \uFF22 \uFF23 \t".trim(), "\uFF21 \uFF22 \uFF23" }, in trims()
54 { " \t \uFF41 \uFF42 \uFF43 \t".trim(), "\uFF41 \uFF42 \uFF43" }, in trims()
55 { " \t A\uFF21 B\uFF22 C\uFF23 \t".trim(), in trims()
/libcore/ojluni/src/test/java/util/Properties/
DPropertiesEntrySetTest.java111 assertTrue(aEntrySet.toString().trim().startsWith("[")); in testToString()
114 assertTrue(aEntrySet.toString().trim().endsWith("]")); in testToString()
121 assertTrue(bEntrySet.toString().trim().startsWith("[")); in testToString()
124 assertTrue(bEntrySet.toString().trim().endsWith("]")); in testToString()
133 assertTrue(bEntrySet.toString().trim().startsWith("[")); in testToString()
136 assertTrue(bEntrySet.toString().trim().endsWith("]")); in testToString()
141 assertTrue(bEntrySet.toString().trim().startsWith("[")); in testToString()
143 assertTrue(bEntrySet.toString().trim().endsWith("]")); in testToString()
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldXMLFormatterTest.java61 "</log>", formatter.getTail(null).trim()); in testGetTail()
63 formatter.getTail(handler).trim()); in testGetTail()
66 "</log>", formatter.getTail(handler).trim()); in testGetTail()
/libcore/luni/src/main/java/libcore/util/
DCollectionUtils.java37 final Iterable<? extends Reference<T>> iterable, final boolean trim) { in dereferenceIterable() argument
49 if (trim && next == null) { in dereferenceIterable()
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractFileTypeDetector.java71 String type = s.substring(0, slash).trim().toLowerCase(Locale.ENGLISH); in parse()
76 subtype = subtype.trim().toLowerCase(Locale.ENGLISH); in parse()
/libcore/ojluni/src/test/java/text/testlib/
DHexDumpReader.java57 line = line.trim(); in getStreamFromHexDump()
67 line = line.substring(0, x).trim(); in getStreamFromHexDump()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DCharsetDecoderTest.java50 assertEquals("Android", outBuffer.toString().trim()); in test_ByteArray_decode_no_offset()
66 assertEquals("Android", outBuffer.toString().trim()); in test_ByteArray_decode_with_offset()
76 assertEquals("Android", outBuffer.toString().trim()); in test_ByteArray_decode_with_offset_using_facade_method()
/libcore/ojluni/src/main/java/java/net/
DHttpCookie.java168 name = name.trim(); in HttpCookie()
857 String name = namevaluePair.substring(0, index).trim(); in parseInternal()
858 String value = namevaluePair.substring(index + 1).trim(); in parseInternal()
880 name = namevaluePair.substring(0, index).trim(); in parseInternal()
881 value = namevaluePair.substring(index + 1).trim(); in parseInternal()
883 name = namevaluePair.trim(); in parseInternal()
/libcore/ojluni/src/main/java/sun/security/util/
DSecurityProperties.java79 token = token.trim(); in includedInExceptions()
DAbstractAlgorithmConstraints.java66 algorithmsInProperty[i] = algorithmsInProperty[i].trim(); in getAlgorithms()
DDisabledAlgorithmConstraints.java248 constraintEntry = constraintEntry.trim(); in Constraints()
277 entry = entry.trim(); in Constraints()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DProviderTest.java152 if (!"value 1".equals(p.getProperty("Property 1").trim()) || in testPutAllMap()
153 !"attrValue".equals(p.getProperty("serviceName.algName attrName").trim()) || in testPutAllMap()
154 … !"standardName".equals(p.getProperty("Alg.Alias.engineClassName.aliasName").trim()) || in testPutAllMap()
155 !"aaa.bbb.ccc.ddd".equals(p.getProperty("MessageDigest.SHA-1").trim()) ) { in testPutAllMap()
290 .trim()); in testPutObjectObject()
/libcore/ojluni/src/test/javax/xml/jaxp/transform/
DXslSubstringTest.java100 return xmlResultString.toString().trim(); in testTransform()
/libcore/json/src/main/java/org/json/
DJSONTokener.java557 return nextToInternal(excluded).trim(); in nextTo()
564 return nextToInternal(String.valueOf(excluded)).trim(); in nextTo()
/libcore/luni/src/test/java/libcore/xml/
DSimpleParserTest.java88 String s = new String(ch, start, length).trim();
203 String s = new String(ch, start, length).trim(); in testEntityResolver()
/libcore/ojluni/src/main/java/java/security/
DSecurity.java698 name = name.trim(); // could be a class name with trailing ws in getProperty()
973 algName = filterKey.substring(algIndex + 1).trim(); in getFilterComponents()
988 attrName = filterKey.substring(attrIndex + 1).trim(); in getFilterComponents()
/libcore/luni/src/test/java/libcore/java/lang/
DOldStringTest.java363 assertEquals("Incorrect string returned", hw1, " HelloWorld ".trim()); in test_trim()
364 assertTrue("Incorrect string returned", " ".trim().equals("")); in test_trim()
/libcore/ojluni/src/main/java/java/util/logging/
DLogManager.java1366 hands = hands.trim(); in parseClassNames()
1382 word = word.trim(); in parseClassNames()
1476 return val.trim(); in getStringProperty()
1488 return Integer.parseInt(val.trim()); in getIntProperty()
1519 Level l = Level.findLevel(val.trim()); in getLevelProperty()
/libcore/ojluni/src/main/java/sun/security/jca/
DProviderList.java170 entry = entry.trim();
182 String argument = entry.substring(k + 1).trim();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCurrencyTest.java378 String d = dat.next().trim(); in test_getCurrencyCode()
413 String d = dat.next().trim(); in test_toString()
/libcore/ojluni/src/test/java/lang/invoke/
DPermuteArgsTest.java127 String mhName = arg.substring(0, k).trim(); in main()
326 s = s.trim(); in testOnePermutation()
333 s = s.substring(k).trim(); in testOnePermutation()
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLSocketFactory.java168 s = s.trim(); in getSecurityProperty()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFilesSetup.java161 return new String(input, "UTF-8").trim(); in readFromInputStream()
/libcore/luni/src/test/java/tests/java/sql/
DDatabaseMetaDataTest.java564 .getDatabaseProductName().trim())); in test_getDatabaseProductName()
584 .getDatabaseProductVersion().trim())); in test_getDatabaseProductVersion()
647 assertTrue("Incorrect driver name", driverName.trim().startsWith( in test_getDriverName()
667 .getDriverVersion().trim())); in test_getDriverVersion()
903 .trim())); in test_getSQLKeywords()
981 .getSearchStringEscape().trim())); in test_getSearchStringEscape()
/libcore/ojluni/src/tools/build/tools/spp/
DSpp.java196 } else if (ln.trim().startsWith("// ##")) { in spp()

123