Home
last modified time | relevance | path

Searched full:cstr (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/external/llvm/lib/Target/Hexagon/
DHexagonInstrFormatsV60.td43 list<dag> pattern = [], string cstr = "",
45 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeCVI_VA>,
49 list<dag> pattern = [], string cstr = "",
51 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeCVI_VA_DV>,
55 list<dag> pattern = [], string cstr = "",
57 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeCVI_VX>,
61 list<dag> pattern = [], string cstr = "",
63 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeCVI_VX>,
67 list<dag> pattern = [], string cstr = "",
69 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeCVI_VX>,
[all …]
DHexagonInstrFormats.td80 string cstr, InstrItinClass itin, IType type>
88 let Constraints = cstr;
211 string cstr = "", InstrItinClass itin = LD_tc_ld_SLOT01>
212 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeLD>, OpcodeHexagon;
216 string cstr = "">
217 : LDInst<outs, ins, asmstr, pattern, cstr>;
220 string cstr = "">
221 : LDInst<outs, ins, asmstr, pattern, cstr>;
226 string cstr = "">
227 : LDInst<outs, ins, asmstr, pattern, cstr>;
[all …]
DHexagonInstrFormatsV4.td43 string cstr = "">
52 let Constraints = cstr;
109 string cstr = "", InstrItinClass itin = NCJ_tc_3or4stall_SLOT0>
110 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeNV>, OpcodeHexagon;
113 string cstr = "", InstrItinClass itin = NCJ_tc_3or4stall_SLOT0>
114 : NVInst<outs, ins, asmstr, pattern, cstr, itin>;
118 string cstr = "", InstrItinClass itin = ST_tc_st_SLOT0>
119 : NVInst<outs, ins, asmstr, pattern, cstr, itin>;
124 string cstr = "", InstrItinClass itin = ST_tc_st_SLOT0>
125 : NVInst<outs, ins, asmstr, pattern, cstr, itin>;
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dstringprintf.cc152 const char* cstr[kStringPrintfVectorMaxArgs]; in StringPrintfVector() local
154 cstr[i] = v[i].c_str(); in StringPrintfVector()
156 for (int i = v.size(); i < GOOGLE_ARRAYSIZE(cstr); ++i) { in StringPrintfVector()
157 cstr[i] = &string_printf_empty_block[0]; in StringPrintfVector()
167 cstr[0], cstr[1], cstr[2], cstr[3], cstr[4], in StringPrintfVector()
168 cstr[5], cstr[6], cstr[7], cstr[8], cstr[9], in StringPrintfVector()
169 cstr[10], cstr[11], cstr[12], cstr[13], cstr[14], in StringPrintfVector()
170 cstr[15], cstr[16], cstr[17], cstr[18], cstr[19], in StringPrintfVector()
171 cstr[20], cstr[21], cstr[22], cstr[23], cstr[24], in StringPrintfVector()
172 cstr[25], cstr[26], cstr[27], cstr[28], cstr[29], in StringPrintfVector()
[all …]
Dcommon_unittest.cc249 const char* cstr = "hello"; in TEST_F() local
250 Closure* closure = NewCallback(&SetABFunction, 789, cstr); in TEST_F()
252 EXPECT_NE(cstr, b_); in TEST_F()
255 EXPECT_EQ(cstr, b_); in TEST_F()
259 const char* cstr = "hello"; in TEST_F() local
261 &ClosureTest::SetABMethod, 789, cstr); in TEST_F()
263 EXPECT_NE(cstr, b_); in TEST_F()
266 EXPECT_EQ(cstr, b_); in TEST_F()
318 const char* cstr = "hello"; in TEST_F() local
319 Closure* closure = NewPermanentCallback(&SetABFunction, 789, cstr); in TEST_F()
[all …]
/external/llvm-project/lldb/source/Utility/
DConstString.cpp89 const char *GetConstCString(const char *cstr) { in GetConstCString() argument
90 if (cstr != nullptr) in GetConstCString()
91 return GetConstCStringWithLength(cstr, strlen(cstr)); in GetConstCString()
95 const char *GetConstCStringWithLength(const char *cstr, size_t cstr_len) { in GetConstCStringWithLength() argument
96 if (cstr != nullptr) in GetConstCStringWithLength()
97 return GetConstCStringWithStringRef(llvm::StringRef(cstr, cstr_len)); in GetConstCStringWithLength()
153 const char *GetConstTrimmedCStringWithLength(const char *cstr, in GetConstTrimmedCStringWithLength() argument
155 if (cstr != nullptr) { in GetConstTrimmedCStringWithLength()
156 const size_t trimmed_len = strnlen(cstr, cstr_len); in GetConstTrimmedCStringWithLength()
157 return GetConstCStringWithLength(cstr, trimmed_len); in GetConstTrimmedCStringWithLength()
[all …]
DStringExtractor.cpp99 const char *cstr = start + m_index; in GetU32() local
100 uint32_t result = static_cast<uint32_t>(::strtoul(cstr, &end, base)); in GetU32()
102 if (end && end != cstr) { in GetU32()
114 const char *cstr = start + m_index; in GetS32() local
115 int32_t result = static_cast<int32_t>(::strtol(cstr, &end, base)); in GetS32()
117 if (end && end != cstr) { in GetS32()
129 const char *cstr = start + m_index; in GetU64() local
130 uint64_t result = ::strtoull(cstr, &end, base); in GetU64()
132 if (end && end != cstr) { in GetU64()
144 const char *cstr = start + m_index; in GetS64() local
[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/icu/icu4c/source/common/
Dcstr.h11 * File: cstr.h
24 * ICU-internal class CStr, a small helper class to facilitate passing UnicodeStrings
36 * printf("%s", CStr(s)());
38 * The explicit call to the CStr() constructor creates a temporary object.
46 class U_COMMON_API CStr : public UMemory {
48 CStr(const UnicodeString &in);
49 ~CStr();
54 CStr(const CStr &other); // Forbid copying of this class.
55 CStr &operator =(const CStr &other); // Forbid assignment.
Dcstr.cpp14 #include "cstr.h"
21 CStr::CStr(const UnicodeString &in) { in CStr() function in CStr
47 CStr::~CStr() { in ~CStr()
50 const char * CStr::operator ()() const { in operator ()()
/external/icu/libicu/cts_headers/
Dcstr.h11 * File: cstr.h
24 * ICU-internal class CStr, a small helper class to facilitate passing UnicodeStrings
36 * printf("%s", CStr(s)());
38 * The explicit call to the CStr() constructor creates a temporary object.
46 class U_COMMON_API CStr : public UMemory {
48 CStr(const UnicodeString &in);
49 ~CStr();
54 CStr(const CStr &other); // Forbid copying of this class.
55 CStr &operator =(const CStr &other); // Forbid assignment.
/external/rust/crates/nix/src/sys/
Dstat.rs45 let res = path.with_nix_path(|cstr| { in mknod()
47 libc::mknod(cstr.as_ptr(), kind.bits | perm.bits() as mode_t, dev) in mknod()
81 let res = path.with_nix_path(|cstr| { in stat()
83 libc::stat(cstr.as_ptr(), dst.as_mut_ptr()) in stat()
94 let res = path.with_nix_path(|cstr| { in lstat()
96 libc::lstat(cstr.as_ptr(), dst.as_mut_ptr()) in lstat()
117 let res = pathname.with_nix_path(|cstr| { in fstatat()
118 unsafe { libc::fstatat(dirfd, cstr.as_ptr(), dst.as_mut_ptr(), f.bits() as libc::c_int) } in fstatat()
172 let res = path.with_nix_path(|cstr| unsafe { in fchmodat()
175 cstr.as_ptr(), in fchmodat()
[all …]
/external/llvm/lib/Target/ARM/
DARMInstrFormats.td289 Format f, Domain d, string cstr, InstrItinClass itin>
319 let Constraints = cstr;
336 Format f, Domain d, string cstr, InstrItinClass itin>
337 : InstTemplate<am, sz, im, f, d, cstr, itin>, Encoding {
344 Format f, Domain d, string cstr, InstrItinClass itin>
345 : InstTemplate<am, sz, im, f, d, cstr, itin> {
430 string opc, string asm, string cstr,
432 : InstARM<am, sz, im, f, GenericDomain, cstr, itin> {
445 string opc, string asm, string cstr,
447 : InstARM<am, sz, im, f, GenericDomain, cstr, itin> {
[all …]
/external/rust/crates/rusqlite/src/util/
Dparam_cache.rs14 F: FnOnce(&std::ffi::CStr) -> Option<usize>, in get_or_insert_with()
36 let v = p.get_or_insert_with("foo", |cstr| { in test_cache()
37 assert_eq!(cstr.to_str().unwrap(), "foo"); in test_cache()
49 let v = p.get_or_insert_with("bar", |cstr| { in test_cache()
50 assert_eq!(cstr.to_str().unwrap(), "bar"); in test_cache()
54 let v = p.get_or_insert_with("bar", |cstr| { in test_cache()
55 assert_eq!(cstr.to_str().unwrap(), "bar"); in test_cache()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMInstrFormats.td393 Format f, Domain d, string cstr, InstrItinClass itin>
426 let Constraints = cstr;
443 Format f, Domain d, string cstr, InstrItinClass itin>
444 : InstTemplate<am, sz, im, f, d, cstr, itin>, Encoding {
451 Format f, Domain d, string cstr, InstrItinClass itin>
452 : InstTemplate<am, sz, im, f, d, cstr, itin> {
548 string opc, string asm, string cstr,
550 : InstARM<am, sz, im, f, GenericDomain, cstr, itin> {
563 string opc, string asm, string cstr,
565 : InstARM<am, sz, im, f, GenericDomain, cstr, itin> {
[all …]
/external/llvm-project/llvm/lib/Target/ARM/
DARMInstrFormats.td392 Format f, Domain d, string cstr, InstrItinClass itin>
432 let Constraints = cstr;
449 Format f, Domain d, string cstr, InstrItinClass itin>
450 : InstTemplate<am, sz, im, f, d, cstr, itin>, Encoding {
457 Format f, Domain d, string cstr, InstrItinClass itin>
458 : InstTemplate<am, sz, im, f, d, cstr, itin> {
554 string opc, string asm, string cstr,
556 : InstARM<am, sz, im, f, GenericDomain, cstr, itin> {
569 string opc, string asm, string cstr,
571 : InstARM<am, sz, im, f, GenericDomain, cstr, itin> {
[all …]
DARMInstrCDE.td52 class CDE_Instr<bit acc, dag oops, dag iops, string asm, string cstr>
55 asm, cstr, /*pattern=*/[]>,
71 string asm, string cstr>
72 : CDE_Instr<acc, oops, iops, asm, cstr>,
96 string Cstr; // asm constraint string
107 string Cstr; // asm constraint string
117 params.Cstr> {
133 params.Cstr> {
151 params.Cstr> {
193 let Cstr = !if(acc, "$Rd = $Rd_src", "");
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonInstrFormats.td49 string cstr, InstrItinClass itin, IType type>
57 let Constraints = cstr;
198 string cstr = "", InstrItinClass itin = LD_tc_ld_SLOT01>
199 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeLD>, OpcodeHexagon;
202 string cstr = "", InstrItinClass itin = LD_tc_ld_SLOT01>
203 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeLD>, OpcodeHexagon;
207 string cstr = "", InstrItinClass itin = ST_tc_st_SLOT01>
208 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeST>, OpcodeHexagon;
212 string cstr = "", InstrItinClass itin = tc_ENDLOOP>
213 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeENDLOOP>,
[all …]
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonInstrFormats.td51 string cstr, InstrItinClass itin, IType type>
59 let Constraints = cstr;
203 string cstr = "", InstrItinClass itin = LD_tc_ld_SLOT01>
204 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeLD>, OpcodeHexagon;
207 string cstr = "", InstrItinClass itin = LD_tc_ld_SLOT01>
208 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeLD>, OpcodeHexagon;
212 string cstr = "", InstrItinClass itin = ST_tc_st_SLOT01>
213 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeST>, OpcodeHexagon;
217 string cstr = "", InstrItinClass itin = tc_ENDLOOP>
218 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeENDLOOP>,
[all …]
/external/llvm-project/lldb/tools/debugserver/source/
DStdStringExtractor.cpp91 const char *cstr = start + m_index; in GetU32() local
92 uint32_t result = static_cast<uint32_t>(::strtoul(cstr, &end, base)); in GetU32()
94 if (end && end != cstr) { in GetU32()
106 const char *cstr = start + m_index; in GetS32() local
107 int32_t result = static_cast<int32_t>(::strtol(cstr, &end, base)); in GetS32()
109 if (end && end != cstr) { in GetS32()
121 const char *cstr = start + m_index; in GetU64() local
122 uint64_t result = ::strtoull(cstr, &end, base); in GetU64()
124 if (end && end != cstr) { in GetU64()
136 const char *cstr = start + m_index; in GetS64() local
[all …]
/external/crosvm/sys_util/src/
Dpasswd.rs7 use std::ffi::CStr;
17 pub fn get_user_id(user_name: &CStr) -> Result<uid_t> { in get_user_id()
49 pub fn get_group_id(group_name: &CStr) -> Result<gid_t> { in get_group_id()
85 let root_name = CStr::from_bytes_with_nul(b"root\0").unwrap(); in get_good_uid()
94 let bad_name = CStr::from_bytes_with_nul(b"this better not be a user\0").unwrap(); in get_bad_uid()
105 let root_name = CStr::from_bytes_with_nul(b"root\0").unwrap(); in get_good_gid()
114 let bad_name = CStr::from_bytes_with_nul(b"this better not be a group\0").unwrap(); in get_bad_gid()
/external/rust/crates/nix/src/
Dlib.rs81 use std::ffi::{CStr, OsStr};
172 where F: FnOnce(&CStr) -> T; in with_nix_path()
185 where F: FnOnce(&CStr) -> T { in with_nix_path()
200 where F: FnOnce(&CStr) -> T { in with_nix_path()
205 impl NixPath for CStr { implementation
215 where F: FnOnce(&CStr) -> T { in with_nix_path()
235 where F: FnOnce(&CStr) -> T { in with_nix_path()
248 Ok(f(CStr::from_ptr(buf.as_ptr() as *const c_char))) in with_nix_path()
265 fn with_nix_path<T, F>(&self, f: F) -> Result<T> where F: FnOnce(&CStr) -> T { in with_nix_path()
279 fn with_nix_path<T, F>(&self, f: F) -> Result<T> where F: FnOnce(&CStr) -> T { in with_nix_path()
/external/rust/crates/rusqlite/src/
Dversion.rs2 use std::ffi::CStr;
16 let cstr = unsafe { CStr::from_ptr(ffi::sqlite3_libversion()) }; in version() localVariable
17 cstr.to_str() in version()
Draw_statement.rs6 use std::ffi::CStr;
67 pub fn column_decltype(&self, idx: usize) -> Option<&CStr> { in column_decltype() argument
73 Some(CStr::from_ptr(decltype)) in column_decltype()
78 pub fn column_name(&self, idx: usize) -> Option<&CStr> { in column_name() argument
91 Some(CStr::from_ptr(ptr)) in column_name()
138 pub fn sql(&self) -> Option<&CStr> { in sql() argument
142 Some(unsafe { CStr::from_ptr(ffi::sqlite3_sql(self.ptr)) }) in sql()
/external/llvm-project/lldb/examples/python/
Dfile_extract.py143 cstr, = struct.unpack(self.byte_order + ("%i" % n) + 's', s)
145 cstr = string.strip(cstr, "\0")
147 for c in cstr:
151 return cstr
157 cstr = ''
160 cstr += "%c" % byte
162 return cstr

12345678910>>...16