Home
last modified time | relevance | path

Searched refs:Strings (Results 1 – 25 of 234) sorted by relevance

12345678910

/external/guava/guava-tests/test/com/google/common/base/
DStringsTest.java33 assertEquals("", Strings.nullToEmpty(null)); in testNullToEmpty()
34 assertEquals("", Strings.nullToEmpty("")); in testNullToEmpty()
35 assertEquals("a", Strings.nullToEmpty("a")); in testNullToEmpty()
39 assertNull(Strings.emptyToNull(null)); in testEmptyToNull()
40 assertNull(Strings.emptyToNull("")); in testEmptyToNull()
41 assertEquals("a", Strings.emptyToNull("a")); in testEmptyToNull()
45 assertTrue(Strings.isNullOrEmpty(null)); in testIsNullOrEmpty()
46 assertTrue(Strings.isNullOrEmpty("")); in testIsNullOrEmpty()
47 assertFalse(Strings.isNullOrEmpty("a")); in testIsNullOrEmpty()
51 assertSame("", Strings.padStart("", 0, '-')); in testPadStart_noPadding()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DStringsTest.java31 assertEquals("", Strings.nullToEmpty(null)); in testNullToEmpty()
32 assertEquals("", Strings.nullToEmpty("")); in testNullToEmpty()
33 assertEquals("a", Strings.nullToEmpty("a")); in testNullToEmpty()
37 assertNull(Strings.emptyToNull(null)); in testEmptyToNull()
38 assertNull(Strings.emptyToNull("")); in testEmptyToNull()
39 assertEquals("a", Strings.emptyToNull("a")); in testEmptyToNull()
43 assertTrue(Strings.isNullOrEmpty(null)); in testIsNullOrEmpty()
44 assertTrue(Strings.isNullOrEmpty("")); in testIsNullOrEmpty()
45 assertFalse(Strings.isNullOrEmpty("a")); in testIsNullOrEmpty()
49 assertSame("", Strings.padStart("", 0, '-')); in testPadStart_noPadding()
[all …]
/external/llvm/tools/llvm-readobj/
DARMAttributeParser.cpp121 static const char *Strings[] = { in CPU_arch() local
129 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in CPU_arch()
152 static const char *Strings[] = { "Not Permitted", "Permitted" }; in ARM_ISA_use() local
156 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in ARM_ISA_use()
162 static const char *Strings[] = { "Not Permitted", "Thumb-1", "Thumb-2" }; in THUMB_ISA_use() local
166 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in THUMB_ISA_use()
172 static const char *Strings[] = { in FP_arch() local
179 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in FP_arch()
185 static const char *Strings[] = { "Not Permitted", "WMMXv1", "WMMXv2" }; in WMMX_arch() local
189 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in WMMX_arch()
[all …]
/external/llvm/lib/MC/
DStringTableBuilder.cpp31 SmallVector<StringRef, 8> Strings; in finalize() local
32 Strings.reserve(StringIndexMap.size()); in finalize()
35 Strings.push_back(i->getKey()); in finalize()
37 std::sort(Strings.begin(), Strings.end(), compareBySuffix); in finalize()
52 for (StringRef s : Strings) { in finalize()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DDefaultRequestDirectorTest.java8 import com.xtremelabs.robolectric.util.Strings;
70 …assertThat(Strings.fromStream(response.getEntity().getContent()), equalTo("a happy response body")… in shouldGetHttpResponseFromExecute()
84 …assertThat(Strings.fromStream(response.getEntity().getContent()), equalTo("a happy response body")… in shouldPreferPendingResponses()
96 …assertThat(Strings.fromStream(response.getEntity().getContent()), equalTo("a cheery response body"… in shouldReturnRequestsByRule()
118 …assertThat(Strings.fromStream(getResponse.getEntity().getContent()), equalTo("a cheery response bo… in shouldReturnRequestsByRule_AnyMethod()
123 …assertThat(Strings.fromStream(postResponse.getEntity().getContent()), equalTo("a cheery response b… in shouldReturnRequestsByRule_AnyMethod()
135 assertThat(Strings.fromStream(getResponseStream), equalTo("a cheery response body")); in shouldReturnRequestsByRule_KeepsTrackOfOpenContentStreams()
140 assertThat(Strings.fromStream(postResponseStream), equalTo("a cheery response body")); in shouldReturnRequestsByRule_KeepsTrackOfOpenContentStreams()
158 …assertThat(Strings.fromStream(response.getEntity().getContent()), equalTo("a cheery response body"… in shouldReturnRequestsByRule_WithTextResponse()
171 …assertThat(Strings.fromStream(response.getEntity().getContent()), equalTo("a gloomy response body"… in clearHttpResponseRules_shouldRemoveAllRules()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1UTCTime.java11 import org.bouncycastle.util.Strings;
108 this.time = Strings.toByteArray(time); in ASN1UTCTime()
130 this.time = Strings.toByteArray(dateF.format(time)); in ASN1UTCTime()
148 this.time = Strings.toByteArray(dateF.format(time)); in ASN1UTCTime()
207 String stime = Strings.fromByteArray(time); in getTime()
312 return Strings.fromByteArray(time); in toString()
DASN1GeneralizedTime.java12 import org.bouncycastle.util.Strings;
93 this.time = Strings.toByteArray(time); in ASN1GeneralizedTime()
116 this.time = Strings.toByteArray(dateF.format(time)); in ASN1GeneralizedTime()
134 this.time = Strings.toByteArray(dateF.format(time)); in ASN1GeneralizedTime()
150 return Strings.fromByteArray(time); in getTimeString()
168 String stime = Strings.fromByteArray(time); in getTime()
247 String stime = Strings.fromByteArray(time); in getDate()
DDERUTF8String.java6 import org.bouncycastle.util.Strings;
89 this.string = Strings.toUTF8ByteArray(string); in DERUTF8String()
94 return Strings.fromUTF8ByteArray(string); in getString()
DDERGeneralString.java6 import org.bouncycastle.util.Strings;
61 this.string = Strings.toByteArray(string); in DERGeneralString()
66 return Strings.fromByteArray(string); in getString()
DDERVisibleString.java6 import org.bouncycastle.util.Strings;
91 this.string = Strings.toByteArray(string); in DERVisibleString()
96 return Strings.fromByteArray(string); in getString()
DDERT61String.java6 import org.bouncycastle.util.Strings;
93 this(Strings.toByteArray(string)); in DERT61String()
102 return Strings.fromByteArray(string); in getString()
DDERIA5String.java6 import org.bouncycastle.util.Strings;
114 this.string = Strings.toByteArray(string); in DERIA5String()
119 return Strings.fromByteArray(string); in getString()
DDERNumericString.java6 import org.bouncycastle.util.Strings;
108 this.string = Strings.toByteArray(string); in DERNumericString()
113 return Strings.fromByteArray(string); in getString()
DDERPrintableString.java6 import org.bouncycastle.util.Strings;
110 this.string = Strings.toByteArray(string); in DERPrintableString()
115 return Strings.fromByteArray(string); in getString()
/external/emma/ant/ant14/com/vladium/emma/instr/
DFilterCfg.java21 import com.vladium.util.Strings;
45 final String [] specs = Strings.merge (new String [] {value}, COMMA_DELIMITERS, true); in setValue()
73 final String [] specs = Strings.merge (new String [] {value}, COMMA_DELIMITERS, true); in setIncludes()
95 final String [] specs = Strings.merge (new String [] {value}, COMMA_DELIMITERS, true); in setExcludes()
164 m_specs = Strings.mergeAT (values, COMMA_DELIMITERS, true); in getFilterSpecs()
181 protected static final String COMMA_DELIMITERS = COMMA + Strings.WHITE_SPACE;
/external/emma/core/java12/com/vladium/emma/report/html/doc/
DText.java11 import com.vladium.util.Strings;
33 out.write (Strings.HTMLEscapeSP (m_text)); in emit()
35 out.write (Strings.HTMLEscape (m_text)); in emit()
/external/owasp/sanitizer/src/main/org/owasp/html/
DStandardUrlAttributePolicy.java52 if (!Strings.regionMatchesIgnoreCase("http", 0, s, 0, 4)) { in apply()
57 if (!Strings.regionMatchesIgnoreCase("https", 0, s, 0, 5)) { in apply()
62 if (!Strings.regionMatchesIgnoreCase("mailto", 0, s, 0, 6)) { in apply()
DStylingPolicy.java110 token = Strings.toLowerCase(token); in sanitizeCssProperties()
134 emitToken(Strings.toLowerCase(token)); in sanitizeCssProperties()
162 token = Strings.toLowerCase(token); in sanitizeCssProperties()
174 sanitizedCss.append(Strings.toLowerCase(token)); in sanitizeCssProperties()
181 emitToken(Strings.toLowerCase(token)); in sanitizeCssProperties()
/external/llvm/lib/Support/
DSpecialCaseList.cpp37 : Strings(std::move(Other.Strings)), RegEx(std::move(Other.RegEx)) {} in Entry()
39 StringSet<> Strings; member
43 return Strings.count(Query) || (RegEx && RegEx->match(Query)); in match()
112 Entries[Prefix][Category].Strings.insert(Regexp); in parse()
/external/smali/util/src/test/java/org/jf/util/
DClassFileNameHandlerTest.java34 import com.google.common.base.Strings;
119 String filenameFragment = Strings.repeat("a", 512); in testMultipleLongNames()
127 …checkFilename(tempDir, file1, "a", "a", Strings.repeat("a", 124) + "#" + Strings.repeat("a", 118) … in testMultipleLongNames()
130 …checkFilename(tempDir, file2, "a", "a", Strings.repeat("a", 124) + "#" + Strings.repeat("a", 118) … in testMultipleLongNames()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowOverlayItem.java9 import com.xtremelabs.robolectric.util.Strings;
49 return Strings.equals(title, that.title) in equals()
50 && Strings.equals(snippet, that.snippet) in equals()
/external/libexif/po/
DMakevars25 # - Strings which are not entire sentences, see the maintainer guidelines
26 # in the GNU gettext documentation, section 'Preparing Strings'.
27 # - Strings which use unclear terms or require additional context to be
29 # - Strings which make invalid assumptions about notation of date, time or
/external/e2fsprogs/po/
DMakevars25 # - Strings which are not entire sentences, see the maintainer guidelines
26 # in the GNU gettext documentation, section 'Preparing Strings'.
27 # - Strings which use unclear terms or require additional context to be
29 # - Strings which make invalid assumptions about notation of date, time or
/external/elfutils/src/po/
DMakevars26 # - Strings which are not entire sentences, see the maintainer guidelines
27 # in the GNU gettext documentation, section 'Preparing Strings'.
28 # - Strings which use unclear terms or require additional context to be
30 # - Strings which make invalid assumptions about notation of date, time or
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/nist/
DNISTNamedCurves.java10 import org.bouncycastle.util.Strings;
48 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)objIds.get(Strings.toUpperCase(name)); in getByName()
79 return (ASN1ObjectIdentifier)objIds.get(Strings.toUpperCase(name)); in getOID()

12345678910