Home
last modified time | relevance | path

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

1234

/NextBSD/contrib/llvm/tools/lldb/source/Core/
HDConstString.cpp84 GetConstCString (const char *cstr) in GetConstCString() argument
86 if (cstr) in GetConstCString()
87 return GetConstCStringWithLength (cstr, strlen (cstr)); in GetConstCString()
92 GetConstCStringWithLength (const char *cstr, size_t cstr_len) in GetConstCStringWithLength() argument
94 if (cstr) in GetConstCStringWithLength()
97 llvm::StringRef string_ref (cstr, cstr_len); in GetConstCStringWithLength()
137 GetConstTrimmedCStringWithLength (const char *cstr, size_t cstr_len) in GetConstTrimmedCStringWithLength() argument
139 if (cstr) in GetConstTrimmedCStringWithLength()
141 const size_t trimmed_len = std::min<size_t> (strlen (cstr), cstr_len); in GetConstTrimmedCStringWithLength()
142 return GetConstCStringWithLength (cstr, trimmed_len); in GetConstTrimmedCStringWithLength()
[all …]
HDEvent.cpp110 EventDataBytes::EventDataBytes (const char *cstr) : in EventDataBytes() argument
113 SetBytesFromCString (cstr); in EventDataBytes()
179 EventDataBytes::SetBytesFromCString (const char *cstr) in SetBytesFromCString() argument
181 if (cstr && cstr[0]) in SetBytesFromCString()
182 m_bytes.assign (cstr); in SetBytesFromCString()
/NextBSD/contrib/llvm/lib/Target/Hexagon/
HDHexagonInstrFormats.td76 string cstr, InstrItinClass itin, IType type>
84 let Constraints = cstr;
197 string cstr = "", InstrItinClass itin = LD_tc_ld_SLOT01>
198 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeLD>, OpcodeHexagon;
202 string cstr = "">
203 : LDInst<outs, ins, asmstr, pattern, cstr>;
206 string cstr = "">
207 : LDInst<outs, ins, asmstr, pattern, cstr>;
212 string cstr = "">
213 : LDInst<outs, ins, asmstr, pattern, cstr>;
[all …]
HDHexagonInstrFormatsV4.td45 string cstr = "">
54 let Constraints = cstr;
111 string cstr = "", InstrItinClass itin = NCJ_tc_3or4stall_SLOT0>
112 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeNV>, OpcodeHexagon;
115 string cstr = "", InstrItinClass itin = NCJ_tc_3or4stall_SLOT0>
116 : NVInst<outs, ins, asmstr, pattern, cstr, itin>;
120 string cstr = "", InstrItinClass itin = ST_tc_st_SLOT0>
121 : NVInst<outs, ins, asmstr, pattern, cstr, itin>;
126 string cstr = "", InstrItinClass itin = ST_tc_st_SLOT0>
127 : NVInst<outs, ins, asmstr, pattern, cstr, itin>;
[all …]
/NextBSD/contrib/subversion/subversion/libsvn_subr/
HDutf_width.c215 svn_utf_cstring_utf8_width(const char *cstr) in svn_utf_cstring_utf8_width() argument
219 if (*cstr == '\0') in svn_utf_cstring_utf8_width()
223 if (!svn_utf__cstring_is_valid(cstr)) in svn_utf_cstring_utf8_width()
229 while (*cstr) in svn_utf_cstring_utf8_width()
237 if ((*cstr & 0x80) == 0) in svn_utf_cstring_utf8_width()
242 else if ((*cstr & 0xe0) == 0xc0) in svn_utf_cstring_utf8_width()
247 else if ((*cstr & 0xf0) == 0xe0) in svn_utf_cstring_utf8_width()
252 else if ((*cstr & 0xf8) == 0xf0) in svn_utf_cstring_utf8_width()
264 ucs = (apr_uint32_t)(*cstr & lead_mask); in svn_utf_cstring_utf8_width()
270 ucs |= (cstr[i] & 0x3f); in svn_utf_cstring_utf8_width()
[all …]
/NextBSD/contrib/llvm/tools/lldb/source/API/
HDSBFunction.cpp61 const char *cstr = NULL; in GetName() local
63 cstr = m_opaque_ptr->GetName().AsCString(); in GetName()
68 if (cstr) in GetName()
70 static_cast<void*>(m_opaque_ptr), cstr); in GetName()
75 return cstr; in GetName()
81 const char *cstr = NULL; in GetDisplayName() local
83cstr = m_opaque_ptr->GetMangled().GetDisplayDemangledName(m_opaque_ptr->GetLanguage()).AsCString(); in GetDisplayName()
88 if (cstr) in GetDisplayName()
90 static_cast<void*>(m_opaque_ptr), cstr); in GetDisplayName()
95 return cstr; in GetDisplayName()
[all …]
HDSBValue.cpp466 const char *cstr = NULL; in GetValue() local
471 cstr = value_sp->GetValueAsCString (); in GetValue()
475 if (cstr) in GetValue()
477 static_cast<void*>(value_sp.get()), cstr); in GetValue()
483 return cstr; in GetValue()
541 const char *cstr = NULL; in GetObjectDescription() local
546 cstr = value_sp->GetObjectDescription (); in GetObjectDescription()
550 if (cstr) in GetObjectDescription()
552 static_cast<void*>(value_sp.get()), cstr); in GetObjectDescription()
557 return cstr; in GetObjectDescription()
[all …]
/NextBSD/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/
HDDWARFDebugMacinfoEntry.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()
HDNameToDIE.cpp71 const char *cstr = m_map.GetCStringAtIndex(i); in Dump() local
72 … s->Printf("%p: {0x%8.8x} \"%s\"\n", (const void *)cstr, m_map.GetValueAtIndexUnchecked(i), cstr); in Dump()
/NextBSD/usr.bin/sort/
HDbwstring.c145 fprintf(f, "%s%s%s", prefix, bws->data.cstr, suffix); in bwsprintf()
177 bws->data.cstr[newlen] = '\0'; in bws_setlen()
199 ret->data.cstr[ret->len] = '\0'; in bwsalloc()
220 memcpy(ret->data.cstr, s->data.cstr, (s->len)); in bwsdup()
245 ret->data.cstr[i] = (unsigned char) str[i]; in bwssbdup()
265 memcpy(ret->data.cstr, str, len); in bwscsbdup()
336 memcpy(dst->data.cstr, src->data.cstr, nums); in bwscpy()
337 dst->data.cstr[dst->len] = '\0'; in bwscpy()
365 memcpy(dst->data.cstr, src->data.cstr, nums); in bwsncpy()
366 dst->data.cstr[dst->len] = '\0'; in bwsncpy()
[all …]
/NextBSD/crypto/heimdal/lib/hx509/
HDerror.c164 const char *cstr; in hx509_get_error_string() local
167 cstr = com_right(context->et_list, error_code); in hx509_get_error_string()
168 if (cstr) in hx509_get_error_string()
169 return strdup(cstr); in hx509_get_error_string()
170 cstr = strerror(error_code); in hx509_get_error_string()
171 if (cstr) in hx509_get_error_string()
172 return strdup(cstr); in hx509_get_error_string()
/NextBSD/contrib/llvm/tools/lldb/source/Utility/
HDStringExtractor.cpp145 const char *cstr = start + m_index; in GetU32() local
146 uint32_t result = static_cast<uint32_t>(::strtoul (cstr, &end, base)); in GetU32()
148 if (end && end != cstr) in GetU32()
164 const char *cstr = start + m_index; in GetS32() local
165 int32_t result = static_cast<int32_t>(::strtol (cstr, &end, base)); in GetS32()
167 if (end && end != cstr) in GetS32()
184 const char *cstr = start + m_index; in GetU64() local
185 uint64_t result = ::strtoull (cstr, &end, base); in GetU64()
187 if (end && end != cstr) in GetU64()
203 const char *cstr = start + m_index; in GetS64() local
[all …]
/NextBSD/contrib/llvm/tools/lldb/include/lldb/Core/
HDConstString.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);
/NextBSD/contrib/tcpdump/
HDprint-ahcp.c44 static const char cstr[] = "(corrupt)"; variable
122 ND_PRINT((ndo, ": %s", cstr)); in ahcp_time_print()
140 ND_PRINT((ndo, ": %s", cstr)); in ahcp_seconds_print()
168 ND_PRINT((ndo, ": %s", cstr)); in ahcp_ipv6_addresses_print()
192 ND_PRINT((ndo, ": %s", cstr)); in ahcp_ipv4_addresses_print()
220 ND_PRINT((ndo, ": %s", cstr)); in ahcp_ipv6_prefixes_print()
244 ND_PRINT((ndo, ": %s", cstr)); in ahcp_ipv4_prefixes_print()
305 ND_PRINT((ndo, " %s", cstr)); in ahcp1_options_print()
350 ND_PRINT((ndo, " %s", cstr)); in ahcp1_body_print()
416 ND_PRINT((ndo, " %s", cstr)); in ahcp_print()
HDprint-aoe.c45 static const char cstr[] = " (corrupt)"; variable
201 ND_PRINT((ndo, "%s", cstr)); in aoev1_issue_print()
250 ND_PRINT((ndo, "%s", cstr)); in aoev1_query_print()
301 ND_PRINT((ndo, "%s", cstr)); in aoev1_mac_print()
336 ND_PRINT((ndo, "%s", cstr)); in aoev1_reserve_print()
394 ND_PRINT((ndo, "%s", cstr)); in aoev1_print()
426 ND_PRINT((ndo, "%s", cstr)); in aoe_print()
HDprint-loopback.c46 static const char cstr[] = " (corrupt)"; variable
101 ND_PRINT((ndo, "%s", cstr)); in loopback_message_print()
130 ND_PRINT((ndo, "%s", cstr)); in loopback_print()
/NextBSD/crypto/heimdal/lib/krb5/
HDerror_string.c245 const char *cstr = NULL; in krb5_get_error_message() local
280 cstr = com_right_r(context->et_list, code, buf, sizeof(buf)); in krb5_get_error_message()
285 if (cstr) in krb5_get_error_message()
286 return strdup(cstr); in krb5_get_error_message()
288 cstr = error_message(code); in krb5_get_error_message()
289 if (cstr) in krb5_get_error_message()
290 return strdup(cstr); in krb5_get_error_message()
HDacl.c40 const char *cstr; member
91 tmp->u.cstr = va_arg(ap, const char*); in acl_parse_format()
94 tmp->u.cstr = va_arg(ap, const char*); in acl_parse_format()
124 return !strcmp(field->u.cstr, string); in acl_match_field()
126 return !fnmatch(field->u.cstr, string, 0); in acl_match_field()
/NextBSD/contrib/llvm/lib/Target/ARM/
HDARMInstrFormats.td279 Format f, Domain d, string cstr, InstrItinClass itin>
309 let Constraints = cstr;
326 Format f, Domain d, string cstr, InstrItinClass itin>
327 : InstTemplate<am, sz, im, f, d, cstr, itin>, Encoding {
334 Format f, Domain d, string cstr, InstrItinClass itin>
335 : InstTemplate<am, sz, im, f, d, cstr, itin> {
420 string opc, string asm, string cstr,
422 : InstARM<am, sz, im, f, GenericDomain, cstr, itin> {
435 string opc, string asm, string cstr,
437 : InstARM<am, sz, im, f, GenericDomain, cstr, itin> {
[all …]
/NextBSD/contrib/llvm/tools/lldb/source/Host/freebsd/
HDHost.cpp81 const char *cstr; in GetFreeBSDProcessArgs() local
83 cstr = data.GetCStr (&offset); in GetFreeBSDProcessArgs()
84 if (cstr) in GetFreeBSDProcessArgs()
86 process_info.GetExecutableFile().SetFile(cstr, false); in GetFreeBSDProcessArgs()
106 cstr = data.GetCStr(&offset); in GetFreeBSDProcessArgs()
107 if (cstr) in GetFreeBSDProcessArgs()
108 proc_args.AppendArgument(cstr); in GetFreeBSDProcessArgs()
/NextBSD/contrib/unbound/smallapp/
HDunbound-host.c255 pretty_rdata(char* q, char* cstr, char* tstr, int t, const char* sec, in pretty_rdata() argument
259 if(strcmp(cstr, "IN") != 0) in pretty_rdata()
260 printf(" in class %s", cstr); in pretty_rdata()
283 char cstr[16]; in pretty_output() local
286 pretty_class(cstr, 16, c); in pretty_output()
314 if(strcmp(cstr, "IN") != 0) in pretty_output()
315 printf(" in class %s", cstr); in pretty_output()
346 cstr, tstr, t, secstatus, result->data[i], in pretty_output()
/NextBSD/contrib/atf/atf-c/detail/
HDdynstr_test.c284 const char *cstr; in ATF_TC_BODY() local
289 cstr = atf_dynstr_cstring(&str); in ATF_TC_BODY()
292 ATF_REQUIRE_EQ(cstr, cstr2); in ATF_TC_BODY()
308 const char *cstr; in ATF_TC_BODY() local
312 cstr = atf_dynstr_cstring(&str); in ATF_TC_BODY()
313 ATF_REQUIRE(cstr != NULL); in ATF_TC_BODY()
314 ATF_REQUIRE(strcmp(cstr, "Test string 1") == 0); in ATF_TC_BODY()
318 cstr = atf_dynstr_cstring(&str); in ATF_TC_BODY()
319 ATF_REQUIRE(cstr != NULL); in ATF_TC_BODY()
320 ATF_REQUIRE(strcmp(cstr, "Test string 2") == 0); in ATF_TC_BODY()
/NextBSD/contrib/llvm/lib/Target/WebAssembly/
HDWebAssemblyInstrFormats.td16 class WebAssemblyInst<string cstr> : Instruction {
20 let Constraints = cstr;
24 class I<dag oops, dag iops, list<dag> pattern, string cstr = "">
25 : WebAssemblyInst<cstr> {
/NextBSD/contrib/ntp/lib/isc/
HDbase32.c297 base32_decodestring(const char *cstr, const char base[], isc_buffer_t *target) { in base32_decodestring() argument
302 int c = *cstr++; in base32_decodestring()
314 isc_base32_decodestring(const char *cstr, isc_buffer_t *target) { in isc_base32_decodestring() argument
315 return (base32_decodestring(cstr, base32, target)); in isc_base32_decodestring()
319 isc_base32hex_decodestring(const char *cstr, isc_buffer_t *target) { in isc_base32hex_decodestring() argument
320 return (base32_decodestring(cstr, base32hex, target)); in isc_base32hex_decodestring()
/NextBSD/contrib/llvm/tools/lldb/include/lldb/Utility/
HDStringExtractor.h105 const char *cstr = Peek(); variable
106 if (cstr)
107 return cstr[0];

1234