/third_party/rust/crates/codespan/codespan-reporting/src/ |
H A D | term.rs | 3 use std::str::FromStr; 58 pub const VARIANTS: &'static [&'static str] = &["auto", "always", "ansi", "never"]; 62 type Err = &'static str; 64 fn from_str(src: &str) -> Result<ColorArg, &'static str> { in from_str()
|
/third_party/rust/crates/heck/src/ |
H A D | shouty_kebab.rs | 23 impl ToShoutyKebabCase for str { 39 pub struct AsShoutyKebabCase<T: AsRef<str>>(pub T); 41 impl<T: AsRef<str>> fmt::Display for AsShoutyKebabCase<T> {
|
H A D | title.rs | 23 impl ToTitleCase for str { 39 pub struct AsTitleCase<T: AsRef<str>>(pub T); 41 impl<T: AsRef<str>> fmt::Display for AsTitleCase<T> {
|
H A D | kebab.rs | 22 impl ToKebabCase for str { 38 pub struct AsKebabCase<T: AsRef<str>>(pub T); 40 impl<T: AsRef<str>> fmt::Display for AsKebabCase<T> {
|
/third_party/rust/crates/env_logger/tests/ |
H A D | init-twice-retains-filter.rs | 6 use std::str; 37 println!("--- stdout\n{}", str::from_utf8(&out.stdout).unwrap()); in main() 38 println!("--- stderr\n{}", str::from_utf8(&out.stderr).unwrap()); in main()
|
H A D | log-in-log.rs | 8 use std::str; 36 println!("--- stdout\n{}", str::from_utf8(&out.stdout).unwrap()); in main() 37 println!("--- stderr\n{}", str::from_utf8(&out.stderr).unwrap()); in main()
|
/third_party/python/Include/cpython/ |
H A D | pymem.h | 14 PyAPI_FUNC(char *) _PyMem_RawStrdup(const char *str); 17 PyAPI_FUNC(char *) _PyMem_Strdup(const char *str); 20 PyAPI_FUNC(wchar_t*) _PyMem_RawWcsdup(const wchar_t *str);
|
/third_party/python/Lib/test/ |
H A D | inspect_stringized_annotations.py | 4 b:str="foo" 8 b:str="bar" 15 def function(a:int, b:str) -> MyClass: 19 def function2(a:int, b:"str", c:MyClass) -> MyClass: 23 def function3(a:"int", b:"str", c:"MyClass"):
|
/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);
|
/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...] |