/external/llvm/tools/llvm-mc/ |
D | Disassembler.cpp | 100 static bool SkipToToken(StringRef &Str) { in SkipToToken() argument 101 while (!Str.empty() && Str.find_first_not_of(" \t\r\n#,") != 0) { in SkipToToken() 103 if (size_t Pos = Str.find_first_not_of(" \t\r,")) { in SkipToToken() 104 Str = Str.substr(Pos); in SkipToToken() 109 if (Str[0] == '\n' || Str[0] == '#') { in SkipToToken() 112 if (Str[0] == '\n') { in SkipToToken() 113 Str = Str.substr(1); in SkipToToken() 115 Str = Str.substr(Str.find_first_of('\n')); in SkipToToken() 116 if (!Str.empty()) in SkipToToken() 117 Str = Str.substr(1); in SkipToToken() [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/llvm/lib/Support/ |
D | StringRef.cpp | 142 size_t StringRef::find(StringRef Str, size_t From) const { in find() argument 143 size_t N = Str.size(); in find() 150 if (substr(i, N).equals(Str)) in find() 162 BadCharSkip[(uint8_t)Str[i]] = N-1-i; in find() 166 if (substr(Pos, N).equals(Str)) // See if this is the correct substring. in find() 182 size_t StringRef::rfind(StringRef Str) const { in rfind() 183 size_t N = Str.size(); in rfind() 188 if (substr(i, N).equals(Str)) in rfind() 303 size_t StringRef::count(StringRef Str) const { in count() 305 size_t N = Str.size(); 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() 234 std::string Str; in toString() local 237 appendNumber(Str, Above0); in toString() 238 DigitsOut = Str.size(); in toString() 240 appendDigit(Str, 0); in toString() 241 std::reverse(Str.begin(), Str.end()); in toString() 245 return Str + ".0"; in toString() [all …]
|
D | GraphWriter.cpp | 26 std::string Str(Label); in EscapeString() local 27 for (unsigned i = 0; i != Str.length(); ++i) in EscapeString() 28 switch (Str[i]) { in EscapeString() 30 Str.insert(Str.begin()+i, '\\'); // Escape character... in EscapeString() 32 Str[i] = 'n'; in EscapeString() 35 Str.insert(Str.begin()+i, ' '); // Convert to two spaces in EscapeString() 37 Str[i] = ' '; in EscapeString() 40 if (i+1 != Str.length()) in EscapeString() 41 switch (Str[i+1]) { in EscapeString() 44 Str.erase(Str.begin()+i); continue; in EscapeString() [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/chromium_org/third_party/libjingle/source/talk/xmpp/ |
D | jid_unittest.cc | 14 EXPECT_EQ("dude", jid.Str()); in TEST() 15 EXPECT_EQ("dude", jid.BareJid().Str()); in TEST() 26 EXPECT_EQ("walter@dude", jid.Str()); in TEST() 27 EXPECT_EQ("walter@dude", jid.BareJid().Str()); in TEST() 38 EXPECT_EQ("dude/bowlingalley", jid.Str()); in TEST() 39 EXPECT_EQ("dude", jid.BareJid().Str()); in TEST() 50 EXPECT_EQ("walter@dude/bowlingalley", jid.Str()); in TEST() 51 EXPECT_EQ("walter@dude", jid.BareJid().Str()); in TEST() 62 EXPECT_EQ("", jid.Str()); in TEST() 63 EXPECT_EQ("", jid.BareJid().Str()); in TEST() [all …]
|
/external/chromium_org/third_party/libjingle/source/talk/xmllite/ |
D | xmlbuilder_unittest.cc | 44 EXPECT_EQ("<testing/>", builder.BuiltElement()->Str()); in TEST() 50 EXPECT_EQ("<testing a=\"b\"/>", builder.BuiltElement()->Str()); in TEST() 57 builder.BuiltElement()->Str()); in TEST() 65 builder.BuiltElement()->Str()); in TEST() 76 "</second></top>", builder.BuiltElement()->Str()); in TEST() 82 EXPECT_EQ("<testing a=\">\"/>", builder.BuiltElement()->Str()); in TEST() 89 builder.BuiltElement()->Str()); in TEST() 96 builder.BuiltElement()->Str()); in TEST() 103 builder.BuiltElement()->Str()); in TEST() 111 builder.BuiltElement()->Str()); in TEST() [all …]
|
D | xmlparser_unittest.cc | 70 std::string Str() { in Str() function in XmlParserTestHandler 88 EXPECT_EQ("START (testing) END ", handler.Str()); in TEST() 95 EXPECT_EQ("START (testing, a='b') END ", handler.Str()); in TEST() 100 EXPECT_EQ("START (testing, e='', long='some text') END ", handler.Str()); in TEST() 110 "END END END ", handler.Str()); in TEST() 120 handler.Str()); in TEST() 128 EXPECT_EQ("START (testing) END ", handler.Str()); in TEST() 134 EXPECT_EQ("START (testing) END ", handler.Str()); in TEST() 141 EXPECT_EQ("START (testing) END ", handler.Str()); in TEST() 150 handler.Str()); in TEST() [all …]
|
D | xmlelement_unittest.cc | 48 EXPECT_EQ("<test:first xmlns:test=\"google:test\"/>", elt.Str()); in TEST() 51 EXPECT_EQ("<first xmlns=\"google:test\"/>", elt2.Str()); in TEST() 71 elt.Str()); in TEST() 83 EXPECT_EQ("<root a=\"avalue\"/>", elt.Str()); in TEST() 86 EXPECT_EQ("<root a=\"avalue\" b=\"bvalue\"/>", elt.Str()); in TEST() 89 EXPECT_EQ("<root a=\"avalue2\" b=\"bvalue\"/>", elt.Str()); in TEST() 92 EXPECT_EQ("<root a=\"avalue2\" b=\"bvalue2\"/>", elt.Str()); in TEST() 95 EXPECT_EQ("<root a=\"avalue2\" b=\"bvalue2\" c=\"cvalue\"/>", elt.Str()); in TEST() 119 elt.Str()); in TEST() 124 elt.Str()); in TEST() [all …]
|
/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/chromium_org/third_party/yasm/source/patched-yasm/tools/re2c/ |
D | substr.c | 22 Str_init(Str *r, const SubStr* s) in Str_init() 28 Str * 31 Str *r = SubStr_new(malloc(sizeof(char)*s->len), s->len); in Str_new() 37 Str_copy(Str *r, Str* s) in Str_copy() 44 Str * 45 Str_new_copy(Str* s) in Str_new_copy() 47 Str *r = SubStr_new(s->str, s->len); in Str_new_copy() 53 Str * 60 void Str_delete(Str *s) { in Str_delete()
|
D | substr.h | 29 typedef struct SubStr Str; typedef 31 void Str_init(Str*, const SubStr*); 32 Str *Str_new(const SubStr*); 34 void Str_copy(Str*, Str*); 35 Str *Str_new_copy(Str*); 37 Str *Str_new_empty(void); 38 void Str_destroy(Str *); 39 void Str_delete(Str *);
|
/external/llvm/utils/TableGen/ |
D | AsmWriterInst.h | 42 std::string Str; member 61 : OperandType(op), Str(LitStr) {} in OperandType() 68 : OperandType(op), Str(Printer), CGIOpNo(_CGIOpNo), MIOpNo(_MIOpNo), in OperandType() 72 if (OperandType != Other.OperandType || Str != Other.Str) return true; 100 void AddLiteralString(const std::string &Str) { in AddLiteralString() argument 105 Operands.back().Str.append(Str); in AddLiteralString() 107 Operands.push_back(AsmWriterOperand(Str)); in AddLiteralString()
|
/external/llvm/lib/IR/ |
D | DiagnosticPrinter.cpp | 37 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(StringRef Str) { in operator <<() argument 38 Stream << Str; in operator <<() 42 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(const char *Str) { in operator <<() argument 43 Stream << Str; in operator <<() 48 const std::string &Str) { in operator <<() argument 49 Stream << Str; in operator <<() 93 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(const Twine &Str) { in operator <<() argument 94 Str.print(Stream); in operator <<()
|
/external/llvm/include/llvm/TableGen/ |
D | StringToOffsetTable.h | 30 unsigned GetOrAddStringOffset(StringRef Str, bool appendZero = true) { 31 StringMapEntry<unsigned> &Entry = StringOffset.GetOrCreateValue(Str, -1U); 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/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 49 return llvm::StringSwitch<OpenMPClauseKind>(Str) in getOpenMPClauseKind() 71 StringRef Str) { in getOpenMPSimpleClauseType() argument 74 return llvm::StringSwitch<OpenMPDefaultClauseKind>(Str) in getOpenMPSimpleClauseType() 79 return llvm::StringSwitch<OpenMPProcBindClauseKind>(Str) in getOpenMPSimpleClauseType() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | StringSwitch.h | 44 StringRef Str; variable 52 : Str(S), Result(nullptr) { } in StringSwitch() 56 if (!Result && N-1 == Str.size() && in Case() 57 (std::memcmp(S, Str.data(), N-1) == 0)) { in Case() 66 if (!Result && Str.size() >= N-1 && in EndsWith() 67 std::memcmp(S, Str.data() + Str.size() + 1 - N, N-1) == 0) { in EndsWith() 76 if (!Result && Str.size() >= N-1 && in StartsWith() 77 std::memcmp(S, Str.data(), N-1) == 0) { in StartsWith()
|
/external/llvm/include/llvm/IR/ |
D | DiagnosticPrinter.h | 38 virtual DiagnosticPrinter &operator<<(StringRef Str) = 0; 39 virtual DiagnosticPrinter &operator<<(const char *Str) = 0; 40 virtual DiagnosticPrinter &operator<<(const std::string &Str) = 0; 49 virtual DiagnosticPrinter &operator<<(const Twine &Str) = 0; 68 DiagnosticPrinter &operator<<(StringRef Str) override; 69 DiagnosticPrinter &operator<<(const char *Str) override; 70 DiagnosticPrinter &operator<<(const std::string &Str) override; 79 DiagnosticPrinter &operator<<(const Twine &Str) override;
|
/external/clang/include/clang/Rewrite/Core/ |
D | Rewriter.h | 67 void InsertText(unsigned OrigOffset, StringRef Str, 75 void InsertTextBefore(unsigned OrigOffset, StringRef Str) { in InsertTextBefore() argument 76 InsertText(OrigOffset, Str, false); in InsertTextBefore() 82 void InsertTextAfter(unsigned OrigOffset, StringRef Str) { in InsertTextAfter() argument 83 InsertText(OrigOffset, Str); in InsertTextAfter() 190 bool InsertText(SourceLocation Loc, StringRef Str, 198 bool InsertTextAfter(SourceLocation Loc, StringRef Str) { in InsertTextAfter() argument 199 return InsertText(Loc, Str); in InsertTextAfter() 204 bool InsertTextAfterToken(SourceLocation Loc, StringRef Str); 211 bool InsertTextBefore(SourceLocation Loc, StringRef Str) { in InsertTextBefore() argument [all …]
|
/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/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/chromium_org/third_party/angle/src/libGLESv2/ |
D | DynamicHLSL.cpp | 20 static std::string Str(int i) in Str() function 45 return HLSLComponentTypeString(componentType) + (componentCount > 1 ? Str(componentCount) : ""); in HLSLComponentTypeString() 82 return (i == GL_INVALID_INDEX ? "" : "[" + Str(i) + "]"); in ArrayString() 310 std::string n = Str(semanticIndex); in generateVaryingHLSL() 370 …structHLSL += " " + decorateVariable(shaderAttribute.name) + " : TEXCOORD" + Str(semanticIndex) + … in generateInputLayoutHLSL() 496 …vertexHLSL += " float4 gl_Position : " + glPositionSemantic + Str(glPositionSemanticIndex) + ";… in generateShaderLinkHLSL() 505 …vertexHLSL += " float4 gl_FragCoord : " + fragCoordSemantic + Str(fragCoordSemanticIndex) + ";\… in generateShaderLinkHLSL() 518 …vertexHLSL += " float4 gl_Position : " + glPositionSemantic + Str(glPositionSemanticIndex) + ";… in generateShaderLinkHLSL() 575 vertexHLSL += " output.v" + Str(r); in generateShaderLinkHLSL() 636 …pixelHLSL += " float4 gl_FragCoord : " + fragCoordSemantic + Str(fragCoordSemanticIndex) + ";\n… in generateShaderLinkHLSL() [all …]
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | DwarfStringPool.cpp | 20 StringRef Prefix, StringRef Str) { in getEntry() argument 22 Pool.GetOrCreateValue(Str).getValue(); in getEntry() 30 MCSymbol *DwarfStringPool::getSymbol(AsmPrinter &Asm, StringRef Str) { in getSymbol() argument 31 return getEntry(Asm, Pool, Prefix, Str).first; in getSymbol() 34 unsigned DwarfStringPool::getIndex(AsmPrinter &Asm, StringRef Str) { in getIndex() argument 35 return getEntry(Asm, Pool, Prefix, Str).second; in getIndex()
|