/external/llvm/include/llvm/ADT/ |
D | StringSwitch.h | 45 StringRef Str; variable 54 : Str(S), Result(nullptr) { } in StringSwitch() 59 if (!Result && N-1 == Str.size() && in Case() 60 (std::memcmp(S, Str.data(), N-1) == 0)) { in Case() 70 if (!Result && Str.size() >= N-1 && in EndsWith() 71 std::memcmp(S, Str.data() + Str.size() + 1 - N, N-1) == 0) { in EndsWith() 81 if (!Result && Str.size() >= N-1 && in StartsWith() 82 std::memcmp(S, Str.data(), N-1) == 0) { in StartsWith() 94 (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) || in Cases() 95 (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0))) { in Cases() [all …]
|
/external/llvm/tools/llvm-mc/ |
D | Disassembler.cpp | 80 static bool SkipToToken(StringRef &Str) { in SkipToToken() argument 82 if (Str.empty()) in SkipToToken() 86 if (size_t Pos = Str.find_first_not_of(" \t\r\n,")) { in SkipToToken() 87 Str = Str.substr(Pos); in SkipToToken() 92 if (Str[0] == '#') { in SkipToToken() 93 Str = Str.substr(Str.find_first_of('\n')); in SkipToToken() 102 StringRef &Str, in ByteArrayFromString() argument 104 while (SkipToToken(Str)) { in ByteArrayFromString() 106 if (Str[0] == '[' || Str[0] == ']') in ByteArrayFromString() 110 size_t Next = Str.find_first_of(" \t\n\r,#[]"); in ByteArrayFromString() [all …]
|
/external/llvm/lib/Support/ |
D | StringRef.cpp | 142 size_t StringRef::find(StringRef Str, size_t From) const { in find() argument 146 const char *Needle = Str.data(); in find() 147 size_t N = Str.size(); in find() 172 BadCharSkip[(uint8_t)Str[i]] = N-1-i; in find() 189 size_t StringRef::rfind(StringRef Str) const { in rfind() 190 size_t N = Str.size(); in rfind() 195 if (substr(i, N).equals(Str)) in rfind() 342 size_t StringRef::count(StringRef Str) const { in count() 344 size_t N = Str.size(); in count() 348 if (substr(i, N).equals(Str)) in count() [all …]
|
D | ScaledNumber.cpp | 137 static void appendDigit(std::string &Str, unsigned D) { in appendDigit() argument 139 Str += '0' + D % 10; in appendDigit() 142 static void appendNumber(std::string &Str, uint64_t N) { in appendNumber() argument 144 appendDigit(Str, N % 10); in appendNumber() 238 std::string Str; in toString() local 241 appendNumber(Str, Above0); in toString() 242 DigitsOut = Str.size(); in toString() 244 appendDigit(Str, 0); in toString() 245 std::reverse(Str.begin(), Str.end()); in toString() 249 return Str + ".0"; in toString() [all …]
|
D | GraphWriter.cpp | 25 std::string Str(Label); in EscapeString() local 26 for (unsigned i = 0; i != Str.length(); ++i) in EscapeString() 27 switch (Str[i]) { in EscapeString() 29 Str.insert(Str.begin()+i, '\\'); // Escape character... in EscapeString() 31 Str[i] = 'n'; in EscapeString() 34 Str.insert(Str.begin()+i, ' '); // Convert to two spaces in EscapeString() 36 Str[i] = ' '; in EscapeString() 39 if (i+1 != Str.length()) in EscapeString() 40 switch (Str[i+1]) { in EscapeString() 43 Str.erase(Str.begin()+i); continue; in EscapeString() [all …]
|
/external/llvm/unittests/ADT/ |
D | StringRefTest.cpp | 109 StringRef Str("hello"); in TEST() local 110 EXPECT_EQ("lo", Str.substr(3)); in TEST() 111 EXPECT_EQ("", Str.substr(100)); in TEST() 112 EXPECT_EQ("hello", Str.substr(0, 100)); in TEST() 113 EXPECT_EQ("o", Str.substr(4, 10)); in TEST() 117 StringRef Str("hello"); in TEST() local 118 EXPECT_EQ("l", Str.slice(2, 3)); in TEST() 119 EXPECT_EQ("ell", Str.slice(1, 4)); in TEST() 120 EXPECT_EQ("llo", Str.slice(2, 100)); in TEST() 121 EXPECT_EQ("", Str.slice(2, 1)); in TEST() [all …]
|
/external/libnfc-nxp/inc/ |
D | phDbgTrace.h | 53 #define PHDBG_FATAL_ERROR(Str) {\ argument 62 #define PHDBG_CRITICAL_ERROR(Str) {\ argument 70 #define PHDBG_WARNING(Str) argument 71 #define PHDBG_INFO(Str) argument 77 #define PHDBG_FATAL_ERROR(Str) {\ argument 86 #define PHDBG_CRITICAL_ERROR(Str) {\ argument 95 #define PHDBG_WARNING(Str) {\ argument 99 phOsalNfc_DbgString (Str);\ 102 #define PHDBG_INFO(Str) argument 108 #define PHDBG_FATAL_ERROR(Str) {\ argument [all …]
|
/external/clang/tools/libclang/ |
D | CXString.cpp | 46 CXString Str; in createEmpty() local 47 Str.data = ""; in createEmpty() 48 Str.private_flags = CXS_Unmanaged; in createEmpty() 49 return Str; in createEmpty() 53 CXString Str; in createNull() local 54 Str.data = nullptr; in createNull() 55 Str.private_flags = CXS_Unmanaged; in createNull() 56 return Str; in createNull() 63 CXString Str; in createRef() local 64 Str.data = String; in createRef() [all …]
|
/external/webrtc/webrtc/libjingle/xmpp/ |
D | jid_unittest.cc | 21 EXPECT_EQ("dude", jid.Str()); in TEST() 22 EXPECT_EQ("dude", jid.BareJid().Str()); in TEST() 33 EXPECT_EQ("walter@dude", jid.Str()); in TEST() 34 EXPECT_EQ("walter@dude", jid.BareJid().Str()); in TEST() 45 EXPECT_EQ("dude/bowlingalley", jid.Str()); in TEST() 46 EXPECT_EQ("dude", jid.BareJid().Str()); in TEST() 57 EXPECT_EQ("walter@dude/bowlingalley", jid.Str()); in TEST() 58 EXPECT_EQ("walter@dude", jid.BareJid().Str()); in TEST() 69 EXPECT_EQ("", jid.Str()); in TEST() 70 EXPECT_EQ("", jid.BareJid().Str()); in TEST() [all …]
|
/external/webrtc/webrtc/libjingle/xmllite/ |
D | xmlbuilder_unittest.cc | 27 EXPECT_EQ("<testing/>", builder.BuiltElement()->Str()); in TEST() 33 EXPECT_EQ("<testing a=\"b\"/>", builder.BuiltElement()->Str()); in TEST() 40 builder.BuiltElement()->Str()); in TEST() 48 builder.BuiltElement()->Str()); in TEST() 59 "</second></top>", builder.BuiltElement()->Str()); in TEST() 65 EXPECT_EQ("<testing a=\">\"/>", builder.BuiltElement()->Str()); in TEST() 72 builder.BuiltElement()->Str()); in TEST() 79 builder.BuiltElement()->Str()); in TEST() 86 builder.BuiltElement()->Str()); in TEST() 94 builder.BuiltElement()->Str()); in TEST() [all …]
|
D | xmlparser_unittest.cc | 53 std::string Str() { in Str() function in XmlParserTestHandler 71 EXPECT_EQ("START (testing) END ", handler.Str()); in TEST() 78 EXPECT_EQ("START (testing, a='b') END ", handler.Str()); in TEST() 83 EXPECT_EQ("START (testing, e='', long='some text') END ", handler.Str()); in TEST() 93 "END END END ", handler.Str()); in TEST() 103 handler.Str()); in TEST() 111 EXPECT_EQ("START (testing) END ", handler.Str()); in TEST() 117 EXPECT_EQ("START (testing) END ", handler.Str()); in TEST() 124 EXPECT_EQ("START (testing) END ", handler.Str()); in TEST() 133 handler.Str()); in TEST() [all …]
|
D | xmlelement_unittest.cc | 31 EXPECT_EQ("<test:first xmlns:test=\"google:test\"/>", elt.Str()); in TEST() 34 EXPECT_EQ("<first xmlns=\"google:test\"/>", elt2.Str()); in TEST() 54 elt.Str()); in TEST() 66 EXPECT_EQ("<root a=\"avalue\"/>", elt.Str()); in TEST() 69 EXPECT_EQ("<root a=\"avalue\" b=\"bvalue\"/>", elt.Str()); in TEST() 72 EXPECT_EQ("<root a=\"avalue2\" b=\"bvalue\"/>", elt.Str()); in TEST() 75 EXPECT_EQ("<root a=\"avalue2\" b=\"bvalue2\"/>", elt.Str()); in TEST() 78 EXPECT_EQ("<root a=\"avalue2\" b=\"bvalue2\" c=\"cvalue\"/>", elt.Str()); in TEST() 102 elt.Str()); in TEST() 107 elt.Str()); in TEST() [all …]
|
/external/llvm/lib/Fuzzer/ |
D | FuzzerUtil.cpp | 95 bool ParseOneDictionaryEntry(const std::string &Str, Unit *U) { in ParseOneDictionaryEntry() argument 97 if (Str.empty()) return false; in ParseOneDictionaryEntry() 98 size_t L = 0, R = Str.size() - 1; // We are parsing the range [L,R]. in ParseOneDictionaryEntry() 100 while (L < R && isspace(Str[L])) L++; in ParseOneDictionaryEntry() 101 while (R > L && isspace(Str[R])) R--; in ParseOneDictionaryEntry() 104 if (Str[R] != '"') return false; in ParseOneDictionaryEntry() 107 while (L < R && Str[L] != '"') L++; in ParseOneDictionaryEntry() 109 assert(Str[L] == '\"'); in ParseOneDictionaryEntry() 113 uint8_t V = (uint8_t)Str[Pos]; in ParseOneDictionaryEntry() 117 if (Pos + 1 <= R && (Str[Pos + 1] == '\\' || Str[Pos + 1] == '"')) { in ParseOneDictionaryEntry() [all …]
|
/external/llvm/tools/llvm-cov/ |
D | CoverageReport.cpp | 27 StringRef Str; member 32 Column(StringRef Str, unsigned Width) in Column() 33 : Str(Str), Width(Width), Trim(WidthTrim), Alignment(LeftAlignment) {} in Column() 55 if (Str.size() <= Width) { in render() 57 OS.indent(Width - Str.size()); in render() 58 OS << Str; in render() 61 OS << Str; in render() 62 OS.indent(Width - Str.size()); in render() 68 OS << Str; in render() 71 OS << Str.substr(0, Width); in render() [all …]
|
/external/libchrome/base/strings/ |
D | string_split.cc | 23 template<typename Str, typename OutputType> 24 OutputType PieceToOutputType(BasicStringPiece<Str> piece) { in PieceToOutputType() 37 template<typename Str> BasicStringPiece<Str> WhitespaceForType(); 72 template<typename Str, typename OutputStringType, typename DelimiterType> 74 BasicStringPiece<Str> str, in SplitStringT() 83 while (start != Str::npos) { in SplitStringT() 86 BasicStringPiece<Str> piece; in SplitStringT() 87 if (end == Str::npos) { in SplitStringT() 89 start = Str::npos; in SplitStringT() 96 piece = TrimString(piece, WhitespaceForType<Str>(), TRIM_ALL); in SplitStringT() [all …]
|
/external/llvm/utils/TableGen/ |
D | AsmWriterInst.h | 42 std::string Str; member 66 : OperandType(op), Str(LitStr) {} in OperandType() 74 : OperandType(op), Str(Printer), CGIOpNo(_CGIOpNo), MIOpNo(_MIOpNo), in OperandType() 78 if (OperandType != Other.OperandType || Str != Other.Str) return true; 105 void AddLiteralString(const std::string &Str) { in AddLiteralString() argument 110 Operands.back().Str.append(Str); in AddLiteralString() 112 Operands.push_back(AsmWriterOperand(Str)); in AddLiteralString()
|
/external/llvm/lib/IR/ |
D | DiagnosticPrinter.cpp | 38 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(StringRef Str) { in operator <<() argument 39 Stream << Str; in operator <<() 43 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(const char *Str) { in operator <<() argument 44 Stream << Str; in operator <<() 49 const std::string &Str) { in operator <<() argument 50 Stream << Str; in operator <<() 94 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(const Twine &Str) { in operator <<() argument 95 Str.print(Stream); in operator <<()
|
/external/llvm/unittests/Support/ |
D | raw_ostream_test.cpp | 121 std::string Str; in TEST() local 122 raw_string_ostream OS(Str); in TEST() 131 std::string Str; in TEST() local 133 Str = ""; in TEST() 134 raw_string_ostream(Str).write_escaped("hi"); in TEST() 135 EXPECT_EQ("hi", Str); in TEST() 137 Str = ""; in TEST() 138 raw_string_ostream(Str).write_escaped("\\\t\n\""); in TEST() 139 EXPECT_EQ("\\\\\\t\\n\\\"", Str); in TEST() 141 Str = ""; in TEST() [all …]
|
/external/clang/lib/Basic/ |
D | OpenMPKinds.cpp | 23 OpenMPDirectiveKind clang::getOpenMPDirectiveKind(StringRef Str) { in getOpenMPDirectiveKind() argument 24 return llvm::StringSwitch<OpenMPDirectiveKind>(Str) in getOpenMPDirectiveKind() 26 #define OPENMP_DIRECTIVE_EXT(Name, Str) .Case(Str, OMPD_##Name) in getOpenMPDirectiveKind() argument 39 #define OPENMP_DIRECTIVE_EXT(Name, Str) \ in getOpenMPDirectiveName() argument 41 return Str; in getOpenMPDirectiveName() 48 OpenMPClauseKind clang::getOpenMPClauseKind(StringRef Str) { in getOpenMPClauseKind() argument 53 if (Str == "flush") in getOpenMPClauseKind() 55 return llvm::StringSwitch<OpenMPClauseKind>(Str) in getOpenMPClauseKind() 77 StringRef Str) { in getOpenMPSimpleClauseType() argument 80 return llvm::StringSwitch<OpenMPDefaultClauseKind>(Str) in getOpenMPSimpleClauseType() [all …]
|
/external/llvm/include/llvm/TableGen/ |
D | StringToOffsetTable.h | 30 unsigned GetOrAddStringOffset(StringRef Str, bool appendZero = true) { 32 StringOffset.insert(std::make_pair(Str, AggregateString.size())); 35 AggregateString.append(Str.begin(), Str.end()); 45 SmallString<256> Str; in EmitString() local 46 raw_svector_ostream(Str).write_escaped(AggregateString); in EmitString() 47 AggregateString = Str.str(); in EmitString()
|
/external/llvm/include/llvm/MC/MCParser/ |
D | MCAsmLexer.h | 60 StringRef Str; variable 66 AsmToken(TokenKind Kind, StringRef Str, APInt IntVal) in AsmToken() argument 67 : Kind(Kind), Str(Str), IntVal(IntVal) {} in AsmToken() 68 AsmToken(TokenKind Kind, StringRef Str, int64_t IntVal = 0) 69 : Kind(Kind), Str(Str), IntVal(64, IntVal, true) {} in Kind() 82 return Str.slice(1, Str.size() - 1); in getStringContents() 100 StringRef getString() const { return Str; } in getString()
|
/external/clang/lib/Lex/ |
D | TokenConcatenation.cpp | 23 static bool IsStringPrefix(StringRef Str, bool CPlusPlus11) { in IsStringPrefix() argument 25 if (Str[0] == 'L' || in IsStringPrefix() 26 (CPlusPlus11 && (Str[0] == 'u' || Str[0] == 'U' || Str[0] == 'R'))) { in IsStringPrefix() 28 if (Str.size() == 1) in IsStringPrefix() 33 if (Str[1] == 'R' && Str[0] != 'R' && Str.size() == 2 && CPlusPlus11) in IsStringPrefix() 37 if (Str[0] == 'u' && Str[1] == '8') { in IsStringPrefix() 38 if (Str.size() == 2) return true; // "u8" in IsStringPrefix() 39 if (Str.size() == 3 && Str[2] == 'R') return true; // "u8R" in IsStringPrefix()
|
/external/llvm/include/llvm/IR/ |
D | DiagnosticPrinter.h | 39 virtual DiagnosticPrinter &operator<<(StringRef Str) = 0; 40 virtual DiagnosticPrinter &operator<<(const char *Str) = 0; 41 virtual DiagnosticPrinter &operator<<(const std::string &Str) = 0; 50 virtual DiagnosticPrinter &operator<<(const Twine &Str) = 0; 72 DiagnosticPrinter &operator<<(StringRef Str) override; 73 DiagnosticPrinter &operator<<(const char *Str) override; 74 DiagnosticPrinter &operator<<(const std::string &Str) override; 83 DiagnosticPrinter &operator<<(const Twine &Str) override;
|
/external/bison/src/ |
D | system.h | 161 # define obstack_sgrow(Obs, Str) \ argument 162 obstack_grow (Obs, Str, strlen (Str)) 169 # define obstack_escape(Obs, Str) \ argument 172 for (p = Str; *p; p++) \ 191 # define obstack_quote(Obs, Str) \ argument 193 char const* obstack_quote_p = Str; \
|
/external/llvm/include/llvm/Support/ |
D | raw_ostream.h | 160 raw_ostream &operator<<(StringRef Str) { 162 size_t Size = Str.size(); 166 return write(Str.data(), Size); 169 memcpy(OutBufCur, Str.data(), Size); 175 raw_ostream &operator<<(const char *Str) { 179 return this->operator<<(StringRef(Str)); 182 raw_ostream &operator<<(const std::string &Str) { 184 return write(Str.data(), Str.length()); 187 raw_ostream &operator<<(const llvm::SmallVectorImpl<char> &Str) { 188 return write(Str.data(), Str.size()); [all …]
|