Home
last modified time | relevance | path

Searched refs:cstr (Results 1 – 25 of 113) sorted by relevance

12345

/external/chromium_org/third_party/protobuf/src/google/protobuf/stubs/
Dstringprintf.cc151 const char* cstr[kStringPrintfVectorMaxArgs]; in StringPrintfVector() local
153 cstr[i] = v[i].c_str(); in StringPrintfVector()
155 for (int i = v.size(); i < GOOGLE_ARRAYSIZE(cstr); ++i) { in StringPrintfVector()
156 cstr[i] = &string_printf_empty_block[0]; in StringPrintfVector()
166 cstr[0], cstr[1], cstr[2], cstr[3], cstr[4], in StringPrintfVector()
167 cstr[5], cstr[6], cstr[7], cstr[8], cstr[9], in StringPrintfVector()
168 cstr[10], cstr[11], cstr[12], cstr[13], cstr[14], in StringPrintfVector()
169 cstr[15], cstr[16], cstr[17], cstr[18], cstr[19], in StringPrintfVector()
170 cstr[20], cstr[21], cstr[22], cstr[23], cstr[24], in StringPrintfVector()
171 cstr[25], cstr[26], cstr[27], cstr[28], cstr[29], in StringPrintfVector()
[all …]
Dcommon_unittest.cc248 const char* cstr = "hello"; in TEST_F() local
249 Closure* closure = NewCallback(&SetABFunction, 789, cstr); in TEST_F()
251 EXPECT_NE(cstr, b_); in TEST_F()
254 EXPECT_EQ(cstr, b_); in TEST_F()
258 const char* cstr = "hello"; in TEST_F() local
260 &ClosureTest::SetABMethod, 789, cstr); in TEST_F()
262 EXPECT_NE(cstr, b_); in TEST_F()
265 EXPECT_EQ(cstr, b_); in TEST_F()
317 const char* cstr = "hello"; in TEST_F() local
318 Closure* closure = NewPermanentCallback(&SetABFunction, 789, cstr); in TEST_F()
[all …]
/external/mdnsresponder/Clients/
DClientCommon.c46 const char *GetNextLabel(const char *cstr, char label[64]) in GetNextLabel() argument
49 while (*cstr && *cstr != '.') // While we have characters in the label... in GetNextLabel()
51 char c = *cstr++; in GetNextLabel()
52 …if (c == '\\' && *cstr) // If we have a backslash, and it's not the last character of the stri… in GetNextLabel()
54 c = *cstr++; in GetNextLabel()
55 if (isdigit(cstr[-1]) && isdigit(cstr[0]) && isdigit(cstr[1])) in GetNextLabel()
57 int v0 = cstr[-1] - '0'; // then interpret as three-digit decimal in GetNextLabel()
58 int v1 = cstr[ 0] - '0'; in GetNextLabel()
59 int v2 = cstr[ 1] - '0'; in GetNextLabel()
65 if (val <= 255) { c = (char)val; cstr += 2; } in GetNextLabel()
[all …]
/external/lldb/source/Core/
DConstString.cpp82 GetConstCString (const char *cstr) in GetConstCString() argument
84 if (cstr) in GetConstCString()
85 return GetConstCStringWithLength (cstr, strlen (cstr)); in GetConstCString()
90 GetConstCStringWithLength (const char *cstr, size_t cstr_len) in GetConstCStringWithLength() argument
92 if (cstr) in GetConstCStringWithLength()
95 llvm::StringRef string_ref (cstr, cstr_len); in GetConstCStringWithLength()
135 GetConstTrimmedCStringWithLength (const char *cstr, size_t cstr_len) in GetConstTrimmedCStringWithLength() argument
137 if (cstr) in GetConstTrimmedCStringWithLength()
139 const size_t trimmed_len = std::min<size_t> (strlen (cstr), cstr_len); in GetConstTrimmedCStringWithLength()
140 return GetConstCStringWithLength (cstr, trimmed_len); in GetConstTrimmedCStringWithLength()
[all …]
DEvent.cpp111 EventDataBytes::EventDataBytes (const char *cstr) : in EventDataBytes() argument
114 SetBytesFromCString (cstr); in EventDataBytes()
180 EventDataBytes::SetBytesFromCString (const char *cstr) in SetBytesFromCString() argument
182 if (cstr && cstr[0]) in SetBytesFromCString()
183 m_bytes.assign (cstr); in SetBytesFromCString()
DDebugger.cpp1548 const char *cstr = NULL; in FormatPromptRecurse() local
1953 cstr = thread->GetName(); in FormatPromptRecurse()
1954 var_success = cstr && cstr[0]; in FormatPromptRecurse()
1956 s.PutCString(cstr); in FormatPromptRecurse()
1960 cstr = thread->GetQueueName(); in FormatPromptRecurse()
1961 var_success = cstr && cstr[0]; in FormatPromptRecurse()
1963 s.PutCString(cstr); in FormatPromptRecurse()
1970 cstr = stop_info_sp->GetDescription(); in FormatPromptRecurse()
1971 if (cstr && cstr[0]) in FormatPromptRecurse()
1973 s.PutCString(cstr); in FormatPromptRecurse()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonInstrFormats.td86 string cstr, InstrItinClass itin, IType type>
94 let Constraints = cstr;
200 string cstr = "", InstrItinClass itin = LD_tc_ld_SLOT01>
201 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeLD>;
205 string cstr = "">
206 : LDInst<outs, ins, asmstr, pattern, cstr>;
209 string cstr = "">
210 : LDInst<outs, ins, asmstr, pattern, cstr>;
215 string cstr = "">
216 : LDInst<outs, ins, asmstr, pattern, cstr>;
[all …]
DHexagonInstrFormatsV4.td32 string cstr = "", InstrItinClass itin = NCJ_tc_3or4stall_SLOT0>
33 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeNV>;
36 string cstr = "", InstrItinClass itin = NCJ_tc_3or4stall_SLOT0>
37 : NVInst<outs, ins, asmstr, pattern, cstr, itin>;
41 string cstr = "", InstrItinClass itin = ST_tc_st_SLOT0>
42 : NVInst<outs, ins, asmstr, pattern, cstr, itin>;
47 string cstr = "", InstrItinClass itin = ST_tc_st_SLOT0>
48 : NVInst<outs, ins, asmstr, pattern, cstr, itin>;
52 string cstr = "">
53 : NVInst<outs, ins, asmstr, pattern, cstr>;
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dcommon_unittest.cc242 const char* cstr = "hello"; in TEST_F() local
243 Closure* closure = NewCallback(&SetABFunction, 789, cstr); in TEST_F()
245 EXPECT_NE(cstr, b_); in TEST_F()
248 EXPECT_EQ(cstr, b_); in TEST_F()
252 const char* cstr = "hello"; in TEST_F() local
254 &ClosureTest::SetABMethod, 789, cstr); in TEST_F()
256 EXPECT_NE(cstr, b_); in TEST_F()
259 EXPECT_EQ(cstr, b_); in TEST_F()
311 const char* cstr = "hello"; in TEST_F() local
312 Closure* closure = NewPermanentCallback(&SetABFunction, 789, cstr); in TEST_F()
[all …]
/external/lldb/source/Plugins/SymbolFile/DWARF/
DDWARFDebugMacinfoEntry.cpp22 m_op2.cstr = NULL; in DWARFDebugMacinfoEntry()
41 return m_op2.cstr; in GetCString()
56 s->Printf(" line:%u #define %s\n", (uint32_t)m_line, m_op2.cstr); in Dump()
60 s->Printf(" line:%u #undef %s\n", (uint32_t)m_line, m_op2.cstr); in Dump()
64 s->Printf(" line:%u str: '%s'\n", (uint32_t)m_line, m_op2.cstr); in Dump()
100 m_op2.cstr = mac_info_data.GetCStr(offset_ptr); in Extract()
117 m_op2.cstr = NULL; in Extract()
122 m_op2.cstr = mac_info_data.GetCStr(offset_ptr); in Extract()
DNameToDIE.cpp72 const char *cstr = m_map.GetCStringAtIndex(i); in Dump() local
73 s->Printf("%p: {0x%8.8x} \"%s\"\n", cstr, m_map.GetValueAtIndexUnchecked(i), cstr); in Dump()
/external/lldb/source/Host/freebsd/
DHost.cpp159 char cstr[PATH_MAX]; in GetOSBuildString() local
160 size_t cstr_len = sizeof(cstr); in GetOSBuildString()
161 if (::sysctl (mib, 2, cstr, &cstr_len, NULL, 0) == 0) in GetOSBuildString()
163 s.assign (cstr, cstr_len); in GetOSBuildString()
174 char cstr[PATH_MAX]; in GetOSKernelDescription() local
175 size_t cstr_len = sizeof(cstr); in GetOSKernelDescription()
176 if (::sysctl (mib, 2, cstr, &cstr_len, NULL, 0) == 0) in GetOSKernelDescription()
178 s.assign (cstr, cstr_len); in GetOSKernelDescription()
198 const char *cstr; in GetFreeBSDProcessArgs() local
200 cstr = data.GetCStr (&offset); in GetFreeBSDProcessArgs()
[all …]
/external/lldb/source/API/
DSBFunction.cpp61 const char *cstr = NULL; in GetName() local
63 cstr = m_opaque_ptr->GetMangled().GetName().AsCString(); in GetName()
68 if (cstr) in GetName()
69 log->Printf ("SBFunction(%p)::GetName () => \"%s\"", m_opaque_ptr, cstr); in GetName()
73 return cstr; in GetName()
79 const char *cstr = NULL; in GetMangledName() local
81 cstr = m_opaque_ptr->GetMangled().GetMangledName().AsCString(); in GetMangledName()
85 if (cstr) in GetMangledName()
86 log->Printf ("SBFunction(%p)::GetMangledName () => \"%s\"", m_opaque_ptr, cstr); in GetMangledName()
90 return cstr; in GetMangledName()
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/python-yasm/pyxelator/
Dir.py95 def cstr(self,l=None): member in Node
103 x.cstr(l)
217 def cstr(self,l=None): member in Identifier
246 def cstr(self,l): member in Function
252 _l.append( self[i].cstr() )
256 self[i].cstr(l)
298 def cstr(self,l): member in Pointer
308 return Node.cstr(self,l)
344 def cstr(self,l): member in Array
349 return Node( *self[:-1] ).cstr( l )
[all …]
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/speech_rules/
Dmath_simple_store.js45 var cstr = 'self::text() = "' + str + '"';
48 'self::text()', cstr);
151 var cstr = this.subStores_[store].getDynamicConstraintValues();
152 for (var key in cstr) {
155 newCstr[key] = cvox.MathUtil.union(set, cstr[key]);
157 newCstr[key] = cstr[key];
Dmath_store.js50 name, dynamic, action, query, cstr) { argument
72 cvox.MathStore.prototype.parseDynamicConstraint = function(cstr) { argument
73 var domainStyle = cstr.split('.');
75 throw new cvox.SpeechRule.OutputError('Invalid domain assignment:' + cstr);
104 name, dynamic, query, cstr) { argument
126 cvox.MathStore.prototype.defineRuleAlias = function(name, query, cstr) { argument
143 cvox.MathStore.prototype.defineRulesAlias = function(name, query, cstr) { argument
Dbase_rule_store.js89 name, dynamic, action, prec, cstr) { argument
360 goog.bind(function(cstr) { argument
361 return this.applyConstraint(node, cstr);},
402 for (var i = 0, cstr; cstr = cstr1[i]; i++) {
403 if (cstr2.indexOf(cstr) == -1) {
/external/lldb/include/lldb/Core/
DConstString.h75 explicit ConstString (const char *cstr);
100 explicit ConstString (const char *cstr, size_t max_cstr_len);
378 SetCString (const char *cstr);
447 SetCStringWithLength (const char *cstr, size_t cstr_len);
457 SetTrimmedCStringWithLength (const char *cstr, size_t fixed_cstr_len);
/external/llvm/lib/Target/ARM/
DARMInstrFormats.td269 Format f, Domain d, string cstr, InstrItinClass itin>
299 let Constraints = cstr;
316 Format f, Domain d, string cstr, InstrItinClass itin>
317 : InstTemplate<am, sz, im, f, d, cstr, itin>, Encoding {
324 Format f, Domain d, string cstr, InstrItinClass itin>
325 : InstTemplate<am, sz, im, f, d, cstr, itin> {
410 string opc, string asm, string cstr,
412 : InstARM<am, sz, im, f, GenericDomain, cstr, itin> {
425 string opc, string asm, string cstr,
427 : InstARM<am, sz, im, f, GenericDomain, cstr, itin> {
[all …]
/external/skia/src/core/
DSkData.cpp149 SkData* SkData::NewWithCString(const char cstr[]) { in NewWithCString() argument
151 if (NULL == cstr) { in NewWithCString()
152 cstr = ""; in NewWithCString()
155 size = strlen(cstr) + 1; in NewWithCString()
157 return NewWithCopy(cstr, size); in NewWithCString()
/external/chromium_org/third_party/skia/src/core/
DSkData.cpp192 SkData* SkData::NewWithCString(const char cstr[]) { in NewWithCString() argument
194 if (NULL == cstr) { in NewWithCString()
195 cstr = ""; in NewWithCString()
198 size = strlen(cstr) + 1; in NewWithCString()
200 return NewWithCopy(cstr, size); in NewWithCString()
/external/lldb/source/Host/macosx/cfcpp/
DCFCString.cpp42 CFCString::CFCString (const char *cstr, CFStringEncoding cstr_encoding) : in CFCString() argument
45 if (cstr && cstr[0]) in CFCString()
47 reset(::CFStringCreateWithCString(kCFAllocatorDefault, cstr, cstr_encoding)); in CFCString()
/external/lldb/tools/debugserver/source/MacOSX/
DCFString.cpp46 CFString::CFString (const char *cstr, CFStringEncoding cstr_encoding) : in CFString() argument
49 if (cstr && cstr[0]) in CFString()
51 reset(::CFStringCreateWithCString(kCFAllocatorDefault, cstr, cstr_encoding)); in CFString()
/external/chromium_org/third_party/angle/tests/preprocessor_tests/
Dnumber_test.cpp46 const char* cstr = str.c_str(); in TEST_P() local
48 ASSERT_TRUE(mPreprocessor.init(1, &cstr, 0)); in TEST_P()
86 const char* cstr = str.c_str(); in expectFloat() local
87 ASSERT_TRUE(mPreprocessor.init(1, &cstr, 0)); in expectFloat()
/external/lldb/source/Utility/
DStringExtractorGDBRemote.h29 StringExtractorGDBRemote(const char *cstr) : in StringExtractorGDBRemote() argument
30 StringExtractor (cstr) in StringExtractorGDBRemote()

12345