/external/guava/guava-tests/test/com/google/common/base/ |
D | StringsTest.java | 33 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/ |
D | StringsTest.java | 31 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/ |
D | ARMAttributeParser.cpp | 121 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/ |
D | StringTableBuilder.cpp | 31 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/ |
D | DefaultRequestDirectorTest.java | 8 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/ |
D | ASN1UTCTime.java | 11 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()
|
D | ASN1GeneralizedTime.java | 12 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()
|
D | DERUTF8String.java | 6 import org.bouncycastle.util.Strings; 89 this.string = Strings.toUTF8ByteArray(string); in DERUTF8String() 94 return Strings.fromUTF8ByteArray(string); in getString()
|
D | DERGeneralString.java | 6 import org.bouncycastle.util.Strings; 61 this.string = Strings.toByteArray(string); in DERGeneralString() 66 return Strings.fromByteArray(string); in getString()
|
D | DERVisibleString.java | 6 import org.bouncycastle.util.Strings; 91 this.string = Strings.toByteArray(string); in DERVisibleString() 96 return Strings.fromByteArray(string); in getString()
|
D | DERT61String.java | 6 import org.bouncycastle.util.Strings; 93 this(Strings.toByteArray(string)); in DERT61String() 102 return Strings.fromByteArray(string); in getString()
|
D | DERIA5String.java | 6 import org.bouncycastle.util.Strings; 114 this.string = Strings.toByteArray(string); in DERIA5String() 119 return Strings.fromByteArray(string); in getString()
|
D | DERNumericString.java | 6 import org.bouncycastle.util.Strings; 108 this.string = Strings.toByteArray(string); in DERNumericString() 113 return Strings.fromByteArray(string); in getString()
|
D | DERPrintableString.java | 6 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/ |
D | FilterCfg.java | 21 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/ |
D | Text.java | 11 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/ |
D | StandardUrlAttributePolicy.java | 52 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()
|
D | StylingPolicy.java | 110 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/ |
D | SpecialCaseList.cpp | 37 : 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/ |
D | ClassFileNameHandlerTest.java | 34 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/ |
D | ShadowOverlayItem.java | 9 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/ |
D | Makevars | 25 # - 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/ |
D | Makevars | 25 # - 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/ |
D | Makevars | 26 # - 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/ |
D | NISTNamedCurves.java | 10 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()
|