/third_party/skia/third_party/externals/tint/src/diagnostic/ |
H A D | printer.h | 59 /// writes the string str to the printer with the given style. 60 /// @param str the string to write to the printer 61 /// @param style the style used to print `str` 62 virtual void write(const std::string& str, const Style& style) = 0; 72 std::string str() const; 74 void write(const std::string& str, const Style&) override;
|
/third_party/skia/third_party/externals/tint/src/writer/msl/ |
H A D | generator_impl_cast_test.cc | 32 EXPECT_EQ(out.str(), "float(1)"); in TEST_F() 43 EXPECT_EQ(out.str(), "float3(int3(1, 2, 3))"); in TEST_F() 54 EXPECT_EQ(out.str(), "uint((-2147483647 - 1))"); in TEST_F()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
H A D | ostringstream.h | 65 // The argument can be null, in which case you'll need to call str(p) with a 72 std::string* str() { return s_; } in str() function in absl::strings_internal::OStringStream 73 const std::string* str() const { return s_; } in str() function in absl::strings_internal::OStringStream 74 void str(std::string* s) { s_ = s; } in str() function in absl::strings_internal::OStringStream
|
/third_party/skia/docs/examples/ |
H A D | Point_CrossProduct.cpp | 19 SkString str; in REG_FIDDLE() local 21 str.printf("cross = %g", cross); in REG_FIDDLE() 23 canvas->drawString(str, center[i].fX, center[i].fY, paint); in REG_FIDDLE()
|
H A D | Point_cross.cpp | 19 SkString str; in REG_FIDDLE() local 21 str.printf("cross = %g", cross); in REG_FIDDLE() 23 canvas->drawString(str, center[i].fX, center[i].fY, paint); in REG_FIDDLE()
|
/third_party/rust/crates/os_str_bytes/tests/ |
H A D | integration.rs | 3 use std::str; 10 assert!(str::from_utf8(string).is_err()); in assert_string_is_invalid_utf8() 29 const UTF8_STRING: &str = "string"; in test_nonempty_utf8()
|
/third_party/rust/crates/serde/serde/src/private/ |
H A D | mod.rs | 30 pub fn from_utf8_lossy(bytes: &[u8]) -> Cow<str> { in from_utf8_lossy() 42 pub fn from_utf8_lossy(bytes: &[u8]) -> &str { in from_utf8_lossy() 46 str::from_utf8(bytes).unwrap_or("\u{fffd}\u{fffd}\u{fffd}") in from_utf8_lossy()
|
/third_party/vk-gl-cts/framework/delibs/debase/ |
H A D | deString.h | 34 deUint32 deStringHash (const char* str); 35 deUint32 deStringHashLeading (const char* str, int numLeadingChars); 37 deBool deStringBeginsWith (const char* str, const char* leading);
|
/third_party/mesa3d/src/compiler/glsl/glcpp/ |
H A D | glcpp-parse.y | 66 const char *str); 94 _token_create_str(glcpp_parser_t *parser, int type, char *str); 200 %type <str> IDENTIFIER FUNC_IDENTIFIER OBJ_IDENTIFIER INTEGER_STRING OTHER ERROR_TOKEN PRAGMA PATH INCLUDE 886 const char *str) 891 node->str = linear_strdup(parser->linalloc, str); 914 if (strcmp (node->str, member) == 0) { 935 if (strcmp (node->str, dup->str) == 0) 936 return node->str; [all...] |
/third_party/mesa3d/src/gallium/auxiliary/hud/ |
H A D | hud_context.c | 143 const char *str, ...) in hud_draw_string() 151 va_start(ap, str); in hud_draw_string() 152 vsnprintf(buf, sizeof(buf), str, ap); in hud_draw_string() 332 char str[32]; in hud_pane_accumulate_vertices() local 348 pane->type, str); in hud_pane_accumulate_vertices() 349 hud_draw_string(hud, x, y, "%s", str); in hud_pane_accumulate_vertices() 358 number_to_human_readable(gr->current_value, pane->type, str); in hud_pane_accumulate_vertices() 359 hud_draw_string(hud, x, y, " %s: %s", gr->name, str); in hud_pane_accumulate_vertices() 406 char str[32]; in hud_pane_accumulate_vertices_simple() local 414 number_to_human_readable(gr->current_value, pane->type, str); in hud_pane_accumulate_vertices_simple() 142 hud_draw_string(struct hud_context *hud, unsigned x, unsigned y, const char *str, ...) hud_draw_string() argument 1085 read_pane_settings(char *str, unsigned * const x, unsigned * const y, unsigned * const width, unsigned * const height, uint64_t * const ceiling, boolean * const dyn_ceiling, boolean *reset_colors, boolean *sort_items) read_pane_settings() argument [all...] |
/third_party/elfio/elfio/ |
H A D | elfio_dump.hpp | 38 const char* str; member 47 const char* str; member 57 const char* str; member 84 const char* str; member 93 const char* str; member 103 const char* str; member 369 const char* str; member 410 const char* str; member 437 const char* str; member 446 const char* str; member 457 const char* str; global() member 470 const char* str; global() member 1095 std::string str; dynamic_tags() local 1109 dynamic_tag( std::ostream& out, Elf_Xword no, Elf_Xword tag, Elf_Xword value, const std::string& str, unsigned int ) dynamic_tag() argument 1276 std::string str = find_value_in_table( table, key ); format_assoc() local [all...] |
/third_party/python/Modules/ |
H A D | audioop.c | 1333 PyObject *samps, *str, *rv = NULL, *channel; in audioop_ratecv_impl() local 1426 /* str <- Space for the output buffer. */ in audioop_ratecv_impl() 1428 str = PyBytes_FromStringAndSize(NULL, 0); in audioop_ratecv_impl() 1440 str = NULL; in audioop_ratecv_impl() 1442 str = PyBytes_FromStringAndSize(NULL, in audioop_ratecv_impl() 1445 if (str == NULL) { in audioop_ratecv_impl() 1450 ncp = PyBytes_AsString(str); in audioop_ratecv_impl() 1468 len = (Py_ssize_t)(ncp - PyBytes_AsString(str)); in audioop_ratecv_impl() 1470 (PyBytes_AsString(str), len); in audioop_ratecv_impl() 1471 Py_DECREF(str); in audioop_ratecv_impl() 1677 PyObject *rv = NULL, *str; audioop_lin2adpcm_impl() local 1807 PyObject *rv, *str; audioop_adpcm2lin_impl() local [all...] |
/foundation/communication/dsoftbus/tests/core/connection/ble/ |
H A D | connection_ble_switch_test.cpp | 122 const char *str = "send msg local2\r\n"; in HWTEST_F() local 138 (void)strcpy_s(data.buf + 1, strlen(str), str); in HWTEST_F() 213 const char *str = "send msg local2\r\n"; in HWTEST_F() local 231 (void)strcpy_s(data.buf + 1, strlen(str), str); in HWTEST_F() 318 const char *str = "send msg local2\r\n"; in HWTEST_F() local 337 (void)strcpy_s(data.buf + 1, strlen(str), str); in HWTEST_F() 374 const char *str in HWTEST_F() local 476 const char *str = "send msg local2\\r\\n"; HWTEST_F() local 586 const char *str = "send msg local2\\r\\n"; HWTEST_F() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/prism54/ |
H A D | oid_mgt.c | 779 mgt_response_to_str(enum oid_num_t n, union oid_res_t *r, char *str) in mgt_response_to_str() argument 783 return scnprintf(str, PRIV_STR_SIZE, "%u\n", r->u); in mgt_response_to_str() 786 return scnprintf(str, PRIV_STR_SIZE, in mgt_response_to_str() 793 return scnprintf(str, PRIV_STR_SIZE, in mgt_response_to_str() 804 k = scnprintf(str, PRIV_STR_SIZE, "nr=%u\n", list->nr); in mgt_response_to_str() 806 k += scnprintf(str + k, PRIV_STR_SIZE - k, in mgt_response_to_str() 822 t = scnprintf(str, PRIV_STR_SIZE, "nr=%u\n", freq->nr); in mgt_response_to_str() 824 t += scnprintf(str + t, PRIV_STR_SIZE - t, in mgt_response_to_str() 831 return scnprintf(str, PRIV_STR_SIZE, in mgt_response_to_str() 838 return scnprintf(str, PRIV_STR_SIZ in mgt_response_to_str() [all...] |
/third_party/rust/crates/proc-macro2/src/ |
H A D | fallback.rs | 16 use core::str::FromStr; 148 fn get_cursor(src: &str) -> Cursor { in get_cursor() 165 fn get_cursor(src: &str) -> Cursor { in get_cursor() 172 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() 177 const BYTE_ORDER_MARK: &str = "\u{feff}"; in from_str() 409 fn lines_offsets(s: &str) -> (usize, Vec<usize>) { in lines_offsets() 438 fn add_file(&mut self, src: &str) -> Span { in add_file() 759 pub fn new_checked(string: &str, span: Span) -> Self { in new_checked() 764 pub fn new_unchecked(string: &str, span: Span) -> Self { in new_unchecked() 773 pub fn new_raw_checked(string: &str, spa [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/utils/ |
H A D | jsi_module_searcher.cpp | 70 void SplitString(const std::string& str, std::vector<std::string>& out, size_t pos = 0, const char* seps = SEPERATOR) in SplitString() argument 72 if (str.empty() || pos >= str.length()) { in SplitString() 78 while ((endPos = str.find_first_of(seps, startPos)) != std::string::npos) { in SplitString() 80 out.emplace_back(str.substr(startPos, endPos - startPos)); in SplitString() 85 if (startPos < str.length()) { in SplitString() 86 out.emplace_back(str.substr(startPos)); in SplitString() 104 inline std::string StripString(const std::string& str, const char* charSet = " \t\n\r") in StripString() argument 106 size_t startPos = str.find_first_not_of(charSet); in StripString() 111 return str in StripString() [all...] |
/foundation/multimodalinput/input/intention/cooperate/plugin/src/ |
H A D | dsoftbus_handler.cpp | 467 std::string str; in DeserializeDevice() local 470 packet >> str; in DeserializeDevice() local 471 device->SetDevPath(str); in DeserializeDevice() 472 packet >> str; in DeserializeDevice() local 473 device->SetSysPath(str); in DeserializeDevice() 482 packet >> str; in DeserializeDevice() local 483 device->SetName(str); in DeserializeDevice() 484 packet >> str; in DeserializeDevice() local 485 device->SetPhys(str); in DeserializeDevice() 486 packet >> str; in DeserializeDevice() local [all...] |
/kernel/linux/linux-5.10/arch/arm/mm/ |
H A D | abort-lv4t.S | 64 str r9, [sp, #-4]! 82 str r7, [r2, r9, lsr #14] @ Put register 'Rn' 90 str r9, [sp, #-4]! 102 str r7, [r2, r9, lsr #14] @ Put register 'Rn' 112 str r9, [sp, #-4]! 118 str r7, [r2, r9, lsr #14] @ Put register 'Rn' 128 str r9, [sp, #-4]! 204 str r9, [sp, #-4]! 218 str r7, [r2, #13 << 2] 223 str r [all...] |
/kernel/linux/linux-6.6/arch/arm/mm/ |
H A D | abort-lv4t.S | 64 str r9, [sp, #-4]! 82 str r7, [r2, r9, lsr #14] @ Put register 'Rn' 90 str r9, [sp, #-4]! 102 str r7, [r2, r9, lsr #14] @ Put register 'Rn' 112 str r9, [sp, #-4]! 118 str r7, [r2, r9, lsr #14] @ Put register 'Rn' 128 str r9, [sp, #-4]! 204 str r9, [sp, #-4]! 218 str r7, [r2, #13 << 2] 223 str r [all...] |
/kernel/linux/linux-6.6/arch/mips/txx9/generic/ |
H A D | pci.c | 398 char * (*txx9_board_pcibios_setup)(char *str) __initdata; 400 char *__init txx9_pcibios_setup(char *str) in txx9_pcibios_setup() argument 402 if (txx9_board_pcibios_setup && !txx9_board_pcibios_setup(str)) in txx9_pcibios_setup() 404 if (!strcmp(str, "picmg")) { in txx9_pcibios_setup() 409 } else if (!strcmp(str, "nopicmg")) { in txx9_pcibios_setup() 414 } else if (!strncmp(str, "clk=", 4)) { in txx9_pcibios_setup() 415 char *val = str + 4; in txx9_pcibios_setup() 424 } else if (!strncmp(str, "err=", 4)) { in txx9_pcibios_setup() 425 if (!strcmp(str + 4, "panic")) in txx9_pcibios_setup() 427 else if (!strcmp(str in txx9_pcibios_setup() [all...] |
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | traps.c | 41 char str[sizeof("0000 ") * 12 + 2 + 1], *p = str; in dump_kernel_instr() local 57 printk("%sCode: %s\n", loglvl, str); in dump_kernel_instr() 60 void die(struct pt_regs *regs, const char *str) in die() argument 73 pr_emerg("%s [#%d]\n", str, ++die_counter); in die() 81 ret = notify_die(DIE_OOPS, str, regs, 0, cause, SIGSEGV); in die() 116 unsigned long addr, const char *str) in do_trap_error() 124 die(regs, str); in do_trap_error() 133 #define DO_ERROR_INFO(name, signo, code, str) \ 138 do_trap_error(regs, signo, code, regs->epc, "Oops - " str); \ 115 do_trap_error(struct pt_regs *regs, int signo, int code, unsigned long addr, const char *str) do_trap_error() argument [all...] |
/kernel/linux/linux-5.10/drivers/parport/ |
H A D | procfs.c | 77 const char *str; in do_autoprobe() local 89 if ((str = info->class_name) != NULL) in do_autoprobe() 90 len += sprintf (buffer + len, "CLASS:%s;\n", str); in do_autoprobe() 92 if ((str = info->model) != NULL) in do_autoprobe() 93 len += sprintf (buffer + len, "MODEL:%s;\n", str); in do_autoprobe() 95 if ((str = info->mfr) != NULL) in do_autoprobe() 96 len += sprintf (buffer + len, "MANUFACTURER:%s;\n", str); in do_autoprobe() 98 if ((str = info->description) != NULL) in do_autoprobe() 99 len += sprintf (buffer + len, "DESCRIPTION:%s;\n", str); in do_autoprobe() 101 if ((str in do_autoprobe() [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | watchdog.c | 75 static int __init hardlockup_panic_setup(char *str) in hardlockup_panic_setup() argument 77 if (!strncmp(str, "panic", 5)) in hardlockup_panic_setup() 79 else if (!strncmp(str, "nopanic", 7)) in hardlockup_panic_setup() 81 else if (!strncmp(str, "0", 1)) in hardlockup_panic_setup() 83 else if (!strncmp(str, "1", 1)) in hardlockup_panic_setup() 181 static int __init softlockup_panic_setup(char *str) in softlockup_panic_setup() argument 183 softlockup_panic = simple_strtoul(str, NULL, 0); in softlockup_panic_setup() 188 static int __init nowatchdog_setup(char *str) in nowatchdog_setup() argument 195 static int __init nosoftlockup_setup(char *str) in nosoftlockup_setup() argument 202 static int __init watchdog_thresh_setup(char *str) in watchdog_thresh_setup() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | kernel.h | 360 extern int get_option(char **str, int *pint); 361 extern char *get_options(const char *str, int nints, int *ints); 363 extern bool parse_option_str(const char *str, const char *option); 607 * @str: the string to record 627 * (1 when __trace_bputs is used, strlen(str) when __trace_puts is used) 630 #define trace_puts(str) ({ \ 633 __builtin_constant_p(str) ? str : NULL; \ 635 if (__builtin_constant_p(str)) \ 638 __trace_puts(_THIS_IP_, str, strle [all...] |
/kernel/linux/linux-6.6/drivers/parport/ |
H A D | procfs.c | 84 const char *str; in do_autoprobe() local 96 if ((str = info->class_name) != NULL) in do_autoprobe() 97 len += sprintf (buffer + len, "CLASS:%s;\n", str); in do_autoprobe() 99 if ((str = info->model) != NULL) in do_autoprobe() 100 len += sprintf (buffer + len, "MODEL:%s;\n", str); in do_autoprobe() 102 if ((str = info->mfr) != NULL) in do_autoprobe() 103 len += sprintf (buffer + len, "MANUFACTURER:%s;\n", str); in do_autoprobe() 105 if ((str = info->description) != NULL) in do_autoprobe() 106 len += sprintf (buffer + len, "DESCRIPTION:%s;\n", str); in do_autoprobe() 108 if ((str in do_autoprobe() [all...] |