Home
last modified time | relevance | path

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

12

/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/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()
DUnixFileStore.java239 s = s.trim().toLowerCase(); in checkIfFeaturePresent()
/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/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/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DProviderTest.java149 if (!"value 1".equals(p.getProperty("Property 1").trim()) || in testPutAllMap()
150 !"attrValue".equals(p.getProperty("serviceName.algName attrName").trim()) || in testPutAllMap()
151 … !"standardName".equals(p.getProperty("Alg.Alias.engineClassName.aliasName").trim()) || in testPutAllMap()
152 !"aaa.bbb.ccc.ddd".equals(p.getProperty("MessageDigest.SHA-1").trim()) ) { in testPutAllMap()
296 .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.java558 return nextToInternal(excluded).trim(); in nextTo()
565 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()
DExpatSaxParserTest.java334 String s = new String(ch, start, length).trim(); in characters()
584 assertEquals("bob", handler.text.toString().trim()); in testExternalEntity()
/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/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/main/java/sun/security/util/
DDisabledAlgorithmConstraints.java248 constraintEntry = constraintEntry.trim(); in Constraints()
277 entry = entry.trim(); in Constraints()
/libcore/ojluni/src/main/java/sun/security/jca/
DProviderList.java170 entry = entry.trim();
182 String argument = entry.substring(k + 1).trim();
/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()
DDatabaseMetaDataNotSupportedTest.java231 .getCatalogSeparator().trim())); in test_getCatalogSeparator()
239 .getCatalogSeparator().trim())); in test_getCatalogTerm()
412 .getProcedureTerm().trim())); in test_getProcedureTerm()
/libcore/ojluni/src/main/java/sun/security/x509/
DAVA.java1018 typeAndValue.append(sbuffer.toString().trim()); in toRFC2253CanonicalString()
1250 keyword = keyword.trim(); in getOID()
1314 keywordString = keywordString.trim(); in getKeyword()
/libcore/luni/src/main/java/javax/xml/xpath/
DXPathFactoryFinder.java295 factoryClassName = factoryClassName.trim(); in loadFromServicesFile()
/libcore/luni/src/main/java/javax/xml/validation/
DSchemaFactoryFinder.java361 factoryClassName = factoryClassName.trim(); in loadFromServicesFile()
/libcore/ojluni/src/main/java/java/util/
DServiceLoader.java262 ln = ln.trim(); in parseLine()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java354 testString.equals(buf.trim()));
360 testString.equals(buf.trim()));
398 testString.equals(r.readLine().trim()));

12