Home
last modified time | relevance | path

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

12345

/third_party/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 …]
/third_party/rust/crates/rustix/tests/path/
Darg.rs12 use rustix::cstr; in test_arg()
18 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap())); in test_arg()
19 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap())); in test_arg()
24 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap())); in test_arg()
25 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap())); in test_arg()
30 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap())); in test_arg()
31 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap())); in test_arg()
36 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap())); in test_arg()
37 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap())); in test_arg()
42 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap())); in test_arg()
[all …]
/third_party/cef/include/internal/
Dcef_string_wrappers.h73 cef_string_utf8_t cstr; in to_string() local
74 memset(&cstr, 0, sizeof(cstr)); in to_string()
75 cef_string_wide_to_utf8(s->str, s->length, &cstr); in to_string()
77 if (cstr.length > 0) in to_string()
78 str = std::string(cstr.str, cstr.length); in to_string()
79 cef_string_utf8_clear(&cstr); in to_string()
103 cef_string_utf16_t cstr; in to_string16() local
104 memset(&cstr, 0, sizeof(cstr)); in to_string16()
105 cef_string_wide_to_utf16(s->str, s->length, &cstr); in to_string16()
107 if (cstr.length > 0) { in to_string16()
[all …]
/third_party/rust/crates/rustix/src/
Dcstr.rs26 macro_rules! cstr { macro
60 assert_eq!(cstr!(""), &*CString::new("").unwrap()); in test_cstr()
61 assert_eq!(cstr!("").to_owned(), CString::new("").unwrap()); in test_cstr()
62 assert_eq!(cstr!("hello"), &*CString::new("hello").unwrap()); in test_cstr()
63 assert_eq!(cstr!("hello").to_owned(), CString::new("hello").unwrap()); in test_cstr()
69 let _ = cstr!("hello\0world"); in test_invalid_cstr()
75 let _ = cstr!("\0"); in test_invalid_empty_cstr()
/third_party/rust/crates/nix/src/sys/
Dstat.rs179 let res = path.with_nix_path(|cstr| unsafe { in mknod()
180 libc::mknod(cstr.as_ptr(), kind.bits | perm.bits() as mode_t, dev) in mknod()
201 let res = path.with_nix_path(|cstr| unsafe { in mknodat()
204 cstr.as_ptr(), in mknodat()
241 let res = path.with_nix_path(|cstr| unsafe { in stat()
242 libc::stat(cstr.as_ptr(), dst.as_mut_ptr()) in stat()
252 let res = path.with_nix_path(|cstr| unsafe { in lstat()
253 libc::lstat(cstr.as_ptr(), dst.as_mut_ptr()) in lstat()
278 let res = pathname.with_nix_path(|cstr| unsafe { in fstatat()
281 cstr.as_ptr(), in fstatat()
[all …]
Dinotify.rs159 let res = path.with_nix_path(|cstr| unsafe { in add_watch()
160 libc::inotify_add_watch(self.fd, cstr.as_ptr(), mask.bits()) in add_watch()
218 let cstr = unsafe { CStr::from_ptr(ptr) }; in read_events() localVariable
220 Some(OsStr::from_bytes(cstr.to_bytes()).to_owned()) in read_events()
/third_party/rust/crates/rustix/src/backend/linux_raw/
Dvdso_wrappers.rs349 let ptr = vdso.sym(cstr!("LINUX_2.6"), cstr!("__vdso_clock_gettime")); in init()
351 let ptr = vdso.sym(cstr!("LINUX_2.6"), cstr!("__vdso_clock_gettime64")); in init()
353 let ptr = vdso.sym(cstr!("LINUX_2.6.39"), cstr!("__kernel_clock_gettime")); in init()
355 let ptr = vdso.sym(cstr!("LINUX_2.6"), cstr!("__vdso_clock_gettime64")); in init()
357 let ptr = vdso.sym(cstr!("LINUX_4.15"), cstr!("__vdso_clock_gettime")); in init()
359 let ptr = vdso.sym(cstr!("LINUX_2.6.15"), cstr!("__kernel_clock_gettime")); in init()
361 let ptr = vdso.sym(cstr!("LINUX_2.6"), cstr!("__vdso_clock_gettime64")); in init()
363 let ptr = vdso.sym(cstr!("LINUX_2.6"), cstr!("__vdso_clock_gettime")); in init()
389 let ptr = vdso.sym(cstr!("LINUX_2.5"), cstr!("__kernel_vsyscall")); in init()
/third_party/rust/crates/rustix/tests/fs/
Ddir.rs5 rustix::cstr!("."), in test_dir()
15 rustix::cstr!("Cargo.toml"), in test_dir()
26 if entry.file_name() == rustix::cstr!(".") { in test_dir()
28 } else if entry.file_name() == rustix::cstr!("..") { in test_dir()
30 } else if entry.file_name() == rustix::cstr!("Cargo.toml") { in test_dir()
/third_party/skia/third_party/externals/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 …]
DHexagonInstrFormatsV65.td24 list<dag> pattern = [], string cstr = "",
26 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeCVI_VA>;
29 list<dag> pattern = [], string cstr = "",
31 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeCVI_GATHER>;
/third_party/ltp/include/
Dtst_uid.h32 #define tst_check_resuid(cstr, ruid, euid, suid) \ argument
33 tst_check_resuid_(__FILE__, __LINE__, (cstr), (ruid), (euid), (suid))
37 #define tst_check_resgid(cstr, rgid, egid, sgid) \ argument
38 tst_check_resgid_(__FILE__, __LINE__, (cstr), (rgid), (egid), (sgid))
/third_party/rust/crates/rustix/tests/net/
Daddr.rs36 use rustix::cstr; in test_unix_addr()
41 cstr!("/") in test_unix_addr()
45 cstr!("//") in test_unix_addr()
49 cstr!("/foo/bar") in test_unix_addr()
53 cstr!("foo") in test_unix_addr()
/third_party/skia/third_party/externals/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 …]
/third_party/rust/crates/rustix/src/io/
Dprocfs.rs188 let err = renameat(file, cstr!("../."), file, cstr!(".")).unwrap_err(); in is_mountpoint()
221 let proc = proc_opendirat(cwd(), cstr!("/proc"))?; in proc()
281 let proc_self_fd = proc_opendirat(proc_self, cstr!("fd"))?; in proc_self_fd()
318 let proc_self_fdinfo = proc_opendirat(proc_self, cstr!("fdinfo"))?; in proc_self_fdinfo()
363 proc_self_file(cstr!("pagemap")) in proc_self_pagemap()
378 proc_self_file(cstr!("maps")) in proc_self_maps()
393 proc_self_file(cstr!("status")) in proc_self_status()
452 && entry.file_name() == cstr!(".") in open_and_check_file()
/third_party/rust/crates/nix/src/mount/
Dlinux.rs104 target.with_nix_path(|cstr| unsafe { libc::umount(cstr.as_ptr()) })?; in umount()
110 let res = target.with_nix_path(|cstr| unsafe { in umount2()
111 libc::umount2(cstr.as_ptr(), flags.bits) in umount2()
/third_party/libwebsockets/lib/tls/
Dtls.c187 char cstr[10]; in lws_tls_server_conn_alpn() local
203 if (len > sizeof(cstr) - 1) in lws_tls_server_conn_alpn()
204 len = sizeof(cstr) - 1; in lws_tls_server_conn_alpn()
206 memcpy(cstr, name, len); in lws_tls_server_conn_alpn()
207 cstr[len] = '\0'; in lws_tls_server_conn_alpn()
209 lwsl_info("%s: negotiated '%s' using ALPN\n", __func__, cstr); in lws_tls_server_conn_alpn()
212 return lws_role_call_alpn_negotiated(wsi, (const char *)cstr); in lws_tls_server_conn_alpn()
/third_party/flutter/skia/src/core/
DSkData.cpp179 sk_sp<SkData> SkData::MakeWithCString(const char cstr[]) { in MakeWithCString() argument
181 if (nullptr == cstr) { in MakeWithCString()
182 cstr = ""; in MakeWithCString()
185 size = strlen(cstr) + 1; in MakeWithCString()
187 return MakeWithCopy(cstr, size); in MakeWithCString()
/third_party/skia/src/core/
DSkData.cpp181 sk_sp<SkData> SkData::MakeWithCString(const char cstr[]) { in MakeWithCString() argument
183 if (nullptr == cstr) { in MakeWithCString()
184 cstr = ""; in MakeWithCString()
187 size = strlen(cstr) + 1; in MakeWithCString()
189 return MakeWithCopy(cstr, size); in MakeWithCString()
/third_party/skia/third_party/externals/icu/source/i18n/
Dnumber_decnum.h62 CharString cstr; in toCharString() local
63 CharStringByteSink sink(&cstr); in toCharString()
65 return cstr; in toCharString()
/third_party/icu/icu4c/source/i18n/
Dnumber_decnum.h62 CharString cstr; in toCharString() local
63 CharStringByteSink sink(&cstr); in toCharString()
65 return cstr; in toCharString()
/third_party/node/deps/icu-small/source/i18n/
Dnumber_decnum.h69 CharString cstr; in toCharString() local
70 CharStringByteSink sink(&cstr); in toCharString()
72 return cstr; in toCharString()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/preprocessor_tests/
Dnumber_test.cpp45 const char *cstr = str.c_str(); in TEST_P() local
48 lexSingleToken(cstr, &token); in TEST_P()
78 const char *cstr = str.c_str(); in expectFloat() local
81 lexSingleToken(cstr, &token); in expectFloat()
/third_party/skia/third_party/externals/angle2/src/tests/preprocessor_tests/
Dnumber_test.cpp45 const char *cstr = str.c_str(); in TEST_P() local
48 lexSingleToken(cstr, &token); in TEST_P()
78 const char *cstr = str.c_str(); in expectFloat() local
81 lexSingleToken(cstr, &token); in expectFloat()
/third_party/skia/modules/androidkit/src/
DSkottieAnimation.cpp18 const androidkit::utils::CString cstr(env, jjson); in Animation_Create() local
21 auto animation = Animation::Builder().make(cstr, strlen(cstr)); in Animation_Create()

12345