/external/guava/android/guava-tests/test/com/google/common/base/ |
D | StringsTest.java | 34 assertEquals("", Strings.nullToEmpty(null)); in testNullToEmpty() 35 assertEquals("", Strings.nullToEmpty("")); in testNullToEmpty() 36 assertEquals("a", Strings.nullToEmpty("a")); in testNullToEmpty() 40 assertNull(Strings.emptyToNull(null)); in testEmptyToNull() 41 assertNull(Strings.emptyToNull("")); in testEmptyToNull() 42 assertEquals("a", Strings.emptyToNull("a")); in testEmptyToNull() 46 assertTrue(Strings.isNullOrEmpty(null)); in testIsNullOrEmpty() 47 assertTrue(Strings.isNullOrEmpty("")); in testIsNullOrEmpty() 48 assertFalse(Strings.isNullOrEmpty("a")); in testIsNullOrEmpty() 52 assertSame("", Strings.padStart("", 0, '-')); in testPadStart_noPadding() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | StringsTest.java | 34 assertEquals("", Strings.nullToEmpty(null)); in testNullToEmpty() 35 assertEquals("", Strings.nullToEmpty("")); in testNullToEmpty() 36 assertEquals("a", Strings.nullToEmpty("a")); in testNullToEmpty() 40 assertNull(Strings.emptyToNull(null)); in testEmptyToNull() 41 assertNull(Strings.emptyToNull("")); in testEmptyToNull() 42 assertEquals("a", Strings.emptyToNull("a")); in testEmptyToNull() 46 assertTrue(Strings.isNullOrEmpty(null)); in testIsNullOrEmpty() 47 assertTrue(Strings.isNullOrEmpty("")); in testIsNullOrEmpty() 48 assertFalse(Strings.isNullOrEmpty("a")); in testIsNullOrEmpty() 52 assertSame("", Strings.padStart("", 0, '-')); in testPadStart_noPadding() [all …]
|
/external/llvm/tools/llvm-readobj/ |
D | ARMAttributeParser.cpp | 122 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-10.0/llvm/lib/Support/ |
D | ARMAttributeParser.cpp | 133 static const char *const Strings[] = { in CPU_arch() local 143 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in CPU_arch() 166 static const char *const Strings[] = { "Not Permitted", "Permitted" }; in ARM_ISA_use() local 170 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in ARM_ISA_use() 176 static const char *const Strings[] = { "Not Permitted", "Thumb-1", "Thumb-2" }; in THUMB_ISA_use() local 180 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in THUMB_ISA_use() 186 static const char *const Strings[] = { in FP_arch() local 193 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in FP_arch() 199 static const char *const Strings[] = { "Not Permitted", "WMMXv1", "WMMXv2" }; in WMMX_arch() local 203 (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr; in WMMX_arch() [all …]
|
/external/swiftshader/third_party/subzero/unittest/ |
D | IceELFSectionTest.cpp | 78 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/llvm-project/clang-tools-extra/clangd/index/ |
D | Serialization.cpp | 101 llvm::StringRef consumeString(llvm::ArrayRef<llvm::StringRef> Strings) { in consumeString() argument 103 if (LLVM_UNLIKELY(StringIndex >= Strings.size())) { in consumeString() 107 return Strings[StringIndex]; in consumeString() 212 std::vector<llvm::StringRef> Strings; member 249 Table.Strings.push_back(Saver.save(R.consume(Len))); in readStringTable() 263 void writeLocation(const SymbolLocation &Loc, const StringTableOut &Strings, in writeLocation() argument 265 writeVar(Strings.index(Loc.FileURI), OS); in writeLocation() 273 llvm::ArrayRef<llvm::StringRef> Strings) { in readLocation() argument 275 Loc.FileURI = Data.consumeString(Strings).data(); in readLocation() 284 llvm::ArrayRef<llvm::StringRef> Strings) { in readIncludeGraphNode() argument [all …]
|
/external/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
D | StringsAndChecksums.h | 27 explicit StringsAndChecksumsRef(const DebugStringTableSubsectionRef &Strings); 30 StringsAndChecksumsRef(const DebugStringTableSubsectionRef &Strings, 33 void setStrings(const DebugStringTableSubsectionRef &Strings); 42 if (Strings && Checksums) in initialize() 48 if (R.kind() == DebugSubsectionKind::StringTable && !Strings) { in initialize() 64 const DebugStringTableSubsectionRef &strings() const { return *Strings; } in strings() 67 bool hasStrings() const { return Strings != nullptr; } in hasStrings() 77 const DebugStringTableSubsectionRef *Strings = nullptr; variable 89 void setStrings(const StringsPtr &SP) { Strings = SP; } in setStrings() 92 const StringsPtr &strings() const { return Strings; } in strings() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/CodeView/ |
D | StringsAndChecksums.h | 27 explicit StringsAndChecksumsRef(const DebugStringTableSubsectionRef &Strings); 30 StringsAndChecksumsRef(const DebugStringTableSubsectionRef &Strings, 33 void setStrings(const DebugStringTableSubsectionRef &Strings); 42 if (Strings && Checksums) in initialize() 48 if (R.kind() == DebugSubsectionKind::StringTable && !Strings) { in initialize() 64 const DebugStringTableSubsectionRef &strings() const { return *Strings; } in strings() 67 bool hasStrings() const { return Strings != nullptr; } in hasStrings() 77 const DebugStringTableSubsectionRef *Strings = nullptr; variable 89 void setStrings(const StringsPtr &SP) { Strings = SP; } in setStrings() 92 const StringsPtr &strings() const { return Strings; } in strings() [all …]
|
/external/llvm-project/llvm/lib/DebugInfo/CodeView/ |
D | StringsAndChecksums.cpp | 24 const DebugStringTableSubsectionRef &Strings) in StringsAndChecksumsRef() argument 25 : Strings(&Strings) {} in StringsAndChecksumsRef() 28 const DebugStringTableSubsectionRef &Strings, in StringsAndChecksumsRef() argument 30 : Strings(&Strings), Checksums(&Checksums) {} in StringsAndChecksumsRef() 35 assert(!Strings && "Found a string table even though we already have one!"); in initializeStrings() 39 Strings = OwnedStrings.get(); in initializeStrings() 49 Strings = nullptr; in resetStrings() 61 Strings = OwnedStrings.get(); in setStrings()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/ |
D | StringsAndChecksums.cpp | 24 const DebugStringTableSubsectionRef &Strings) in StringsAndChecksumsRef() argument 25 : Strings(&Strings) {} in StringsAndChecksumsRef() 28 const DebugStringTableSubsectionRef &Strings, in StringsAndChecksumsRef() argument 30 : Strings(&Strings), Checksums(&Checksums) {} in StringsAndChecksumsRef() 35 assert(!Strings && "Found a string table even though we already have one!"); in initializeStrings() 39 Strings = OwnedStrings.get(); in initializeStrings() 49 Strings = nullptr; in resetStrings() 61 Strings = OwnedStrings.get(); in setStrings()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/ |
D | NativeEnumInjectedSources.cpp | 37 const PDBStringTable &Strings; member in llvm::pdb::__anon335ddd5e0111::NativeInjectedSource 42 PDBFile &File, const PDBStringTable &Strings) in NativeInjectedSource() argument 43 : Entry(Entry), Strings(Strings), File(File) {} in NativeInjectedSource() 49 StringRef Ret = cantFail(Strings.getStringForID(Entry.FileNI), in getFileName() 55 StringRef Ret = cantFail(Strings.getStringForID(Entry.ObjNI), in getObjectFileName() 61 StringRef Ret = cantFail(Strings.getStringForID(Entry.VFileNI), in getVirtualFileName() 71 cantFail(Strings.getStringForID(Entry.VFileNI), in getCode() 97 const PDBStringTable &Strings) in NativeEnumInjectedSources() argument 98 : File(File), Stream(IJS), Strings(Strings), Cur(Stream.begin()) {} in NativeEnumInjectedSources() 109 File, Strings); in getChildAtIndex() [all …]
|
D | PDBStringTableBuilder.cpp | 47 return Strings.insert(S); in insert() 51 return Strings.getIdForString(S); in getIdForString() 55 return Strings.getStringForId(Id); in getStringForId() 134 Size += sizeof(uint32_t) * computeBucketCount(Strings.size()); in calculateHashTableSize() 142 Size += Strings.calculateSerializedSize(); in calculateSerializedSize() 149 const codeview::DebugStringTableSubsection &Strings) { in setStrings() argument 150 this->Strings = Strings; in setStrings() 158 H.ByteSize = Strings.calculateSerializedSize(); in writeHeader() 166 if (auto EC = Strings.commit(Writer)) in writeStrings() 175 uint32_t BucketCount = computeBucketCount(Strings.size()); in writeHashTable() [all …]
|
D | InjectedSourceStream.cpp | 28 Error InjectedSourceStream::reload(const PDBStringTable &Strings) { in reload() argument 52 auto Name = Strings.getStringForID(Entry.second.FileNI); in reload() 55 auto ObjName = Strings.getStringForID(Entry.second.ObjNI); in reload() 58 auto VName = Strings.getStringForID(Entry.second.VFileNI); in reload()
|
/external/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
D | NativeEnumInjectedSources.cpp | 37 const PDBStringTable &Strings; member in llvm::pdb::__anon8abfdeea0111::NativeInjectedSource 42 PDBFile &File, const PDBStringTable &Strings) in NativeInjectedSource() argument 43 : Entry(Entry), Strings(Strings), File(File) {} in NativeInjectedSource() 49 StringRef Ret = cantFail(Strings.getStringForID(Entry.FileNI), in getFileName() 55 StringRef Ret = cantFail(Strings.getStringForID(Entry.ObjNI), in getObjectFileName() 61 StringRef Ret = cantFail(Strings.getStringForID(Entry.VFileNI), in getVirtualFileName() 71 cantFail(Strings.getStringForID(Entry.VFileNI), in getCode() 97 const PDBStringTable &Strings) in NativeEnumInjectedSources() argument 98 : File(File), Stream(IJS), Strings(Strings), Cur(Stream.begin()) {} in NativeEnumInjectedSources() 109 File, Strings); in getChildAtIndex() [all …]
|
D | PDBStringTableBuilder.cpp | 47 return Strings.insert(S); in insert() 51 return Strings.getIdForString(S); in getIdForString() 55 return Strings.getStringForId(Id); in getStringForId() 134 Size += sizeof(uint32_t) * computeBucketCount(Strings.size()); in calculateHashTableSize() 142 Size += Strings.calculateSerializedSize(); in calculateSerializedSize() 149 const codeview::DebugStringTableSubsection &Strings) { in setStrings() argument 150 this->Strings = Strings; in setStrings() 158 H.ByteSize = Strings.calculateSerializedSize(); in writeHeader() 166 if (auto EC = Strings.commit(Writer)) in writeStrings() 175 uint32_t BucketCount = computeBucketCount(Strings.size()); in writeHashTable() [all …]
|
D | InjectedSourceStream.cpp | 28 Error InjectedSourceStream::reload(const PDBStringTable &Strings) { in reload() argument 52 auto Name = Strings.getStringForID(Entry.second.FileNI); in reload() 55 auto ObjName = Strings.getStringForID(Entry.second.ObjNI); in reload() 58 auto VName = Strings.getStringForID(Entry.second.VFileNI); in reload()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/remote/ |
D | MarshallingTests.cpp | 40 llvm::UniqueStringSaver &Strings) { in testPathURI() argument 42 return Strings.save(URI.toString()).begin(); in testPathURI() 46 llvm::UniqueStringSaver &Strings) { in createSymbol() argument 58 Sym.Name = Strings.save("Foo"); in createSymbol() 59 Sym.Scope = Strings.save("llvm::foo::bar::"); in createSymbol() 66 Location.FileURI = testPathURI(PathPrefix.str() + "Definition.cpp", Strings); in createSymbol() 73 Location.FileURI = testPathURI(PathPrefix.str() + "Declaration.h", Strings); in createSymbol() 78 Sym.Signature = Strings.save("(int X, char Y, Type T)"); in createSymbol() 79 Sym.TemplateSpecializationArgs = Strings.save("<int, char, bool, Type>"); in createSymbol() 81 Strings.save("({1: int X}, {2: char Y}, {3: Type T})"); in createSymbol() [all …]
|
/external/llvm/lib/MC/ |
D | StringTableBuilder.cpp | 90 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-10.0/llvm/lib/CodeGen/ |
D | NonRelocatableStringpool.cpp | 14 if (S.empty() && !Strings.empty()) in getEntry() 19 auto I = Strings.insert({S, DwarfStringPoolEntry()}); in getEntry() 36 auto InsertResult = Strings.insert({S, Entry}); in internString() 43 Result.reserve(Strings.size()); in getEntriesForEmission() 44 for (const auto &E : Strings) in getEntriesForEmission()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | NonRelocatableStringpool.cpp | 14 if (S.empty() && !Strings.empty()) in getEntry() 19 auto I = Strings.insert({S, DwarfStringPoolEntry()}); in getEntry() 36 auto InsertResult = Strings.insert({S, Entry}); in internString() 43 Result.reserve(Strings.size()); in getEntriesForEmission() 44 for (const auto &E : Strings) in getEntriesForEmission()
|
/external/llvm-project/clang/tools/libclang/ |
D | CXString.cpp | 113 CXStringSet *createSet(const std::vector<std::string> &Strings) { in createSet() argument 115 Set->Count = Strings.size(); in createSet() 116 Set->Strings = new CXString[Set->Count]; in createSet() 118 Set->Strings[SI] = createDup(Strings[SI]); in createSet() 187 clang_disposeString(set->Strings[SI]); in clang_disposeStringSet() 188 delete[] set->Strings; in clang_disposeStringSet()
|
/external/clang/tools/libclang/ |
D | CXString.cpp | 115 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/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowTypedArray.java | 17 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/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
D | CodeViewYAMLDebugSections.cpp | 114 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 128 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 144 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 174 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 202 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings); 204 std::vector<StringRef> Strings; member 216 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 357 IO.mapRequired("Strings", Strings); in map() 503 for (const auto &Str : this->Strings) in toCodeViewSubsection() 541 convertOneChecksum(const DebugStringTableSubsectionRef &Strings, in convertOneChecksum() argument [all …]
|
/external/llvm-project/llvm/lib/ObjectYAML/ |
D | CodeViewYAMLDebugSections.cpp | 114 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 128 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 144 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 174 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 202 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings); 204 std::vector<StringRef> Strings; member 216 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 357 IO.mapRequired("Strings", Strings); in map() 503 for (const auto &Str : this->Strings) in toCodeViewSubsection() 541 convertOneChecksum(const DebugStringTableSubsectionRef &Strings, in convertOneChecksum() argument [all …]
|