Home
last modified time | relevance | path

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

12345678910>>...25

/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.cpp122 static const char *const Strings[] = { in CPU_arch() local
130 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in CPU_arch()
153 static const char *const Strings[] = { "Not Permitted", "Permitted" }; in ARM_ISA_use() local
157 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in ARM_ISA_use()
163 static const char *const Strings[] = { "Not Permitted", "Thumb-1", "Thumb-2" }; in THUMB_ISA_use() local
167 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in THUMB_ISA_use()
173 static const char *const Strings[] = { in FP_arch() local
180 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in FP_arch()
186 static const char *const Strings[] = { "Not Permitted", "WMMXv1", "WMMXv2" }; in WMMX_arch() local
190 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in WMMX_arch()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DARMAttributeParser.cpp133 static const char *const Strings[] = { in CPU_arch() local
141 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in CPU_arch()
164 static const char *const Strings[] = { "Not Permitted", "Permitted" }; in ARM_ISA_use() local
168 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in ARM_ISA_use()
174 static const char *const Strings[] = { "Not Permitted", "Thumb-1", "Thumb-2" }; in THUMB_ISA_use() local
178 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in THUMB_ISA_use()
184 static const char *const Strings[] = { in FP_arch() local
191 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in FP_arch()
197 static const char *const Strings[] = { "Not Permitted", "WMMXv1", "WMMXv2" }; in WMMX_arch() local
201 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in WMMX_arch()
[all …]
/external/swiftshader/third_party/subzero/unittest/
DIceELFSectionTest.cpp78 std::vector<std::string> Strings; in TEST() local
79 Strings.push_back("pop"); in TEST()
80 Strings.push_back("lollipop"); in TEST()
81 Strings.push_back("lipop"); in TEST()
82 Strings.push_back("pops"); in TEST()
83 Strings.push_back("unpop"); in TEST()
84 Strings.push_back("popular"); in TEST()
85 Strings.push_back("a"); in TEST()
86 Strings.push_back("z"); in TEST()
87 Strings.push_back("foo"); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/CodeView/
DStringsAndChecksums.h28 explicit StringsAndChecksumsRef(const DebugStringTableSubsectionRef &Strings);
31 StringsAndChecksumsRef(const DebugStringTableSubsectionRef &Strings,
34 void setStrings(const DebugStringTableSubsectionRef &Strings);
43 if (Strings && Checksums) in initialize()
49 if (R.kind() == DebugSubsectionKind::StringTable && !Strings) { in initialize()
65 const DebugStringTableSubsectionRef &strings() const { return *Strings; } in strings()
68 bool hasStrings() const { return Strings != nullptr; } in hasStrings()
78 const DebugStringTableSubsectionRef *Strings = nullptr; variable
90 void setStrings(const StringsPtr &SP) { Strings = SP; } in setStrings()
93 const StringsPtr &strings() const { return Strings; } in strings()
[all …]
DDebugCrossImpSubsection.h73 DebugStringTableSubsection &Strings)
75 Strings(Strings) {}
87 DebugStringTableSubsection &Strings;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/CodeView/
DStringsAndChecksums.cpp25 const DebugStringTableSubsectionRef &Strings) in StringsAndChecksumsRef() argument
26 : Strings(&Strings) {} in StringsAndChecksumsRef()
29 const DebugStringTableSubsectionRef &Strings, in StringsAndChecksumsRef() argument
31 : Strings(&Strings), Checksums(&Checksums) {} in StringsAndChecksumsRef()
36 assert(!Strings && "Found a string table even though we already have one!"); in initializeStrings()
40 Strings = OwnedStrings.get(); in initializeStrings()
50 Strings = nullptr; in resetStrings()
62 Strings = OwnedStrings.get(); in setStrings()
DDebugChecksumsSubsection.cpp65 DebugStringTableSubsection &Strings) in DebugChecksumsSubsection() argument
66 : DebugSubsection(DebugSubsectionKind::FileChecksums), Strings(Strings) {} in DebugChecksumsSubsection()
78 Entry.FileNameOffset = Strings.insert(FileName); in addChecksum()
112 uint32_t Offset = Strings.getIdForString(FileName); in mapChecksumOffset()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/PDB/Native/
DPDBStringTableBuilder.cpp42 return Strings.insert(S); in insert()
46 return Strings.getIdForString(S); in getIdForString()
50 return Strings.getStringForId(Id); in getStringForId()
117 Size += sizeof(uint32_t) * computeBucketCount(Strings.size()); in calculateHashTableSize()
125 Size += Strings.calculateSerializedSize(); in calculateSerializedSize()
132 const codeview::DebugStringTableSubsection &Strings) { in setStrings() argument
133 this->Strings = Strings; in setStrings()
141 H.ByteSize = Strings.calculateSerializedSize(); in writeHeader()
149 if (auto EC = Strings.commit(Writer)) in writeStrings()
158 uint32_t BucketCount = computeBucketCount(Strings.size()); in writeHashTable()
[all …]
/external/llvm/lib/MC/
DStringTableBuilder.cpp90 std::vector<StringOffsetPair *> Strings; in finalizeStringTable() local
91 Strings.reserve(StringIndexMap.size()); in finalizeStringTable()
93 Strings.push_back(&P); in finalizeStringTable()
95 if (!Strings.empty()) { in finalizeStringTable()
99 multikey_qsort(&Strings[0], &Strings[0] + Strings.size(), 0); in finalizeStringTable()
101 std::sort(Strings.begin(), Strings.end(), in finalizeStringTable()
123 for (StringOffsetPair *P : Strings) { in finalizeStringTable()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/dsymutil/
DNonRelocatableStringpool.cpp16 if (S.empty() && !Strings.empty()) in getEntry()
19 auto I = Strings.insert({S, DwarfStringPoolEntry()}); in getEntry()
32 auto InsertResult = Strings.insert({S, Entry}); in internString()
39 Result.reserve(Strings.size()); in getEntries()
40 for (const auto &E : Strings) in getEntries()
/external/clang/tools/libclang/
DCXString.cpp115 CXStringSet *createSet(const std::vector<std::string> &Strings) { in createSet() argument
117 Set->Count = Strings.size(); in createSet()
118 Set->Strings = new CXString[Set->Count]; in createSet()
120 Set->Strings[SI] = createDup(Strings[SI]); in createSet()
190 clang_disposeString(set->Strings[SI]); in clang_disposeStringSet()
191 delete[] set->Strings; in clang_disposeStringSet()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ObjectYAML/
DCodeViewYAMLDebugSections.cpp115 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings,
129 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings,
145 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings,
175 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings,
203 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings);
205 std::vector<StringRef> Strings; member
217 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings,
358 IO.mapRequired("Strings", Strings); in map()
504 for (const auto &Str : this->Strings) in toCodeViewSubsection()
542 convertOneChecksum(const DebugStringTableSubsectionRef &Strings, in convertOneChecksum() argument
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowTypedArray.java17 import com.google.common.base.Strings;
92 …result.append(Strings.padEnd("Type: ", 25, ' ')).append(TYPE_MAP.get(type)).append(System.lineSepa… in dump()
94 …result.append(Strings.padEnd("Style data: ", 25, ' ')).append(data[index+ STYLE_DATA]).append(Syst… in dump()
95 …result.append(Strings.padEnd("Asset cookie ", 25, ' ')).append(data[index+STYLE_ASSET_COOKIE]).app… in dump()
96 …result.append(Strings.padEnd("Style resourceId: ", 25, ' ')).append(data[index+ STYLE_RESOURCE_ID]… in dump()
97 …result.append(Strings.padEnd("Changing configurations ", 25, ' ')).append(data[index+STYLE_CHANGIN… in dump()
98 …result.append(Strings.padEnd("Style density: ", 25, ' ')).append(data[index+STYLE_DENSITY]).append… in dump()
101 …result.append(Strings.padEnd("Style value: ", 25, ' ')).append(shadowTypedArray.loadStringValueAt(… in dump()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DASN1UTCTime.java14 import com.android.org.bouncycastle.util.Strings;
112 this.time = Strings.toByteArray(time); in ASN1UTCTime()
136 this.time = Strings.toByteArray(dateF.format(time)); in ASN1UTCTime()
158 this.time = Strings.toByteArray(dateF.format(time)); in ASN1UTCTime()
221 String stime = Strings.fromByteArray(time); in getTime()
326 return Strings.fromByteArray(time); in toString()
DASN1GeneralizedTime.java15 import com.android.org.bouncycastle.util.Strings;
121 this.time = Strings.toByteArray(time); in ASN1GeneralizedTime()
146 this.time = Strings.toByteArray(dateF.format(time)); in ASN1GeneralizedTime()
168 this.time = Strings.toByteArray(dateF.format(time)); in ASN1GeneralizedTime()
184 return Strings.fromByteArray(time); in getTimeString()
202 String stime = Strings.fromByteArray(time); in getTime()
281 String stime = Strings.fromByteArray(time); in getDate()
/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/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1UTCTime.java13 import org.bouncycastle.util.Strings;
110 this.time = Strings.toByteArray(time); in ASN1UTCTime()
134 this.time = Strings.toByteArray(dateF.format(time)); in ASN1UTCTime()
156 this.time = Strings.toByteArray(dateF.format(time)); in ASN1UTCTime()
219 String stime = Strings.fromByteArray(time); in getTime()
324 return Strings.fromByteArray(time); in toString()
DASN1GeneralizedTime.java14 import org.bouncycastle.util.Strings;
119 this.time = Strings.toByteArray(time); in ASN1GeneralizedTime()
144 this.time = Strings.toByteArray(dateF.format(time)); in ASN1GeneralizedTime()
166 this.time = Strings.toByteArray(dateF.format(time)); in ASN1GeneralizedTime()
182 return Strings.fromByteArray(time); in getTimeString()
200 String stime = Strings.fromByteArray(time); in getTime()
279 String stime = Strings.fromByteArray(time); in getDate()
/external/elfutils/tests/
Drun-zstrptr.sh24 Strings in section 32 (compressed):
60 Strings in section 32 (uncompressed):
99 Strings in section 30 (compressed):
132 Strings in section 30 (uncompressed):
/external/grpc-grpc-java/benchmarks/src/main/java/io/grpc/benchmarks/qps/
DAbstractConfigurationBuilder.java22 import com.google.common.base.Strings;
163 sb.append(Strings.repeat(" ", column1Start)); in printUsage()
165 sb.append(Strings.repeat(" ", column2Start - sb.length())); in printUsage()
169 sb.append(Strings.repeat(" ", column2Start)); in printUsage()
172 sb.append(Strings.repeat(" ", column2Start)); in printUsage()
221 builder.append(Strings.repeat(" ", lineStart - pos)); in wordWrap()
/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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
DStringTableBuilder.cpp132 std::vector<StringPair *> Strings; in finalizeStringTable() local
133 Strings.reserve(StringIndexMap.size()); in finalizeStringTable()
135 Strings.push_back(&P); in finalizeStringTable()
137 multikeySort(Strings, 0); in finalizeStringTable()
141 for (StringPair *P : Strings) { in finalizeStringTable()

12345678910>>...25