Home
last modified time | relevance | path

Searched refs:str (Results 2651 - 2675 of 14722) sorted by relevance

1...<<101102103104105106107108109110>>...589

/third_party/rust/crates/codespan/codespan-reporting/src/
H A Dterm.rs3 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 Dshouty_kebab.rs23 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 Dtitle.rs23 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 Dkebab.rs22 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 Dinit-twice-retains-filter.rs6 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 Dlog-in-log.rs8 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 Dpymem.h14 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 Dinspect_stringized_annotations.py4 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 Dprinter.h59 /// 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 Dgenerator_impl_cast_test.cc32 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 Dostringstream.h65 // 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 DPoint_CrossProduct.cpp19 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 DPoint_cross.cpp19 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 Dintegration.rs3 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 Dmod.rs30 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 DdeString.h34 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 Djsi_module_searcher.cpp70 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 Ddsoftbus_handler.cpp467 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 Dabort-lv4t.S64 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 Dabort-lv4t.S64 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 Dpci.c398 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 Dtraps.c41 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 Dprocfs.c77 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 Dwatchdog.c75 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 Dkernel.h360 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...]

Completed in 12 milliseconds

1...<<101102103104105106107108109110>>...589