Home
last modified time | relevance | path

Searched refs:str (Results 2376 - 2400 of 12944) sorted by relevance

1...<<919293949596979899100>>...518

/third_party/rust/crates/env_logger/tests/
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/rust/crates/heck/src/
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/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);
/applications/standard/contacts_data/ability/sinicization/src/
H A Dcharacter_transliterate.cpp2090 std::wstring str; in Join() local
2094 str.append(childVector[i]); in Join()
2096 str.append(split); in Join()
2100 return str; in Join()
2111 std::wstring CharacterTransliterate::StringToWstring(std::string str) in StringToWstring() argument
2115 return converterX.from_bytes(str); in StringToWstring()
/drivers/peripheral/distributed_camera/hdi_service/src/utils/
H A Ddcamera.cpp66 void SplitString(const std::string &str, std::vector<std::string> &tokens, const std::string &delimiters) in SplitString() argument
69 std::string::size_type pos = str.find(delimiters); in SplitString()
71 tokens.push_back(str.substr(lastPos, pos - lastPos)); in SplitString()
73 pos = str.find(delimiters, lastPos); in SplitString()
75 if (lastPos != str.length()) { in SplitString()
76 tokens.push_back(str.substr(lastPos)); in SplitString()
/kernel/linux/linux-5.10/arch/um/drivers/
H A Dmconsole_user.c126 int mconsole_reply_len(struct mc_request *req, const char *str, int total, in mconsole_reply_len() argument
148 memcpy(reply.data, str, len); in mconsole_reply_len()
151 str += len; in mconsole_reply_len()
165 int mconsole_reply(struct mc_request *req, const char *str, int err, int more) in mconsole_reply() argument
167 return mconsole_reply_len(req, str, strlen(str), err, more); in mconsole_reply()
/kernel/linux/linux-5.10/arch/arm/mach-omap2/
H A Dsleep33xx.S37 str r4, [r2, #AMX3_PM_WFI_FLAGS_OFFSET]
97 str r2, [r1]
118 str r2, [r1]
163 str r2, [r1]
168 str r2, [r1]
208 str r1, [r0]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ebb/
H A Dtrace.c120 int trace_log_string(struct trace_buffer *tb, char *str) in trace_log_string() argument
126 len = strlen(str); in trace_log_string()
135 memcpy(p, str, len); in trace_log_string()
226 char *str; in trace_print_string() local
228 str = (char *)e->data; in trace_print_string()
229 puts(str); in trace_print_string()
/kernel/linux/linux-6.6/arch/arm/mach-omap2/
H A Dsleep33xx.S37 str r4, [r2, #AMX3_PM_WFI_FLAGS_OFFSET]
97 str r2, [r1]
118 str r2, [r1]
163 str r2, [r1]
168 str r2, [r1]
208 str r1, [r0]
/kernel/linux/linux-6.6/arch/um/drivers/
H A Dmconsole_user.c126 int mconsole_reply_len(struct mc_request *req, const char *str, int total, in mconsole_reply_len() argument
148 memcpy(reply.data, str, len); in mconsole_reply_len()
151 str += len; in mconsole_reply_len()
165 int mconsole_reply(struct mc_request *req, const char *str, int err, int more) in mconsole_reply() argument
167 return mconsole_reply_len(req, str, strlen(str), err, more); in mconsole_reply()
/kernel/linux/linux-5.10/tools/perf/util/
H A Drecord.c220 bool perf_evlist__can_select_event(struct evlist *evlist, const char *str) in perf_evlist__can_select_event() argument
232 err = parse_events(temp_evlist, str, NULL); in perf_evlist__can_select_event()
267 int record__parse_freq(const struct option *opt, const char *str, int unset __maybe_unused) in record__parse_freq() argument
272 if (!str) in record__parse_freq()
275 if (strcasecmp(str, "max") == 0) { in record__parse_freq()
282 freq = atoi(str); in record__parse_freq()
/kernel/linux/linux-5.10/include/xen/
H A Dxenbus.h195 #define XENBUS_IS_ERR_READ(str) ({ \
196 if (!IS_ERR(str) && strlen(str) == 0) { \
197 kfree(str); \
198 str = ERR_PTR(-ERANGE); \
200 IS_ERR(str); \
/kernel/linux/linux-6.6/drivers/firmware/efi/
H A Dearlycon.c146 efi_earlycon_write(struct console *con, const char *str, unsigned int num) in efi_earlycon_write() argument
161 count = strnchrnul(str, num, '\n') - str; in efi_earlycon_write()
172 s = str; in efi_earlycon_write()
187 str += count; in efi_earlycon_write()
193 str++; in efi_earlycon_write()
/kernel/linux/linux-6.6/include/xen/
H A Dxenbus.h199 #define XENBUS_IS_ERR_READ(str) ({ \
200 if (!IS_ERR(str) && strlen(str) == 0) { \
201 kfree(str); \
202 str = ERR_PTR(-ERANGE); \
204 IS_ERR(str); \
/kernel/linux/linux-6.6/crypto/asymmetric_keys/
H A Drestrict.c24 static int __init ca_keys_setup(char *str) in ca_keys_setup() argument
26 if (!str) /* default system keyring */ in ca_keys_setup()
29 if (strncmp(str, "id:", 3) == 0) { in ca_keys_setup()
31 size_t hexlen = (strlen(str) - 3) / 2; in ca_keys_setup()
39 ret = __asymmetric_key_hex_to_key_id(str + 3, p, hexlen); in ca_keys_setup()
44 } else if (strcmp(str, "builtin") == 0) { in ca_keys_setup()
/kernel/linux/linux-6.6/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_magn.c266 char *str; in inv_mpu_magn_set_orient() local
295 str = devm_kstrdup(dev, orient + 1, GFP_KERNEL); in inv_mpu_magn_set_orient()
297 str = devm_kstrdup(dev, orient, GFP_KERNEL); in inv_mpu_magn_set_orient()
299 str = devm_kasprintf(dev, GFP_KERNEL, "-%s", orient); in inv_mpu_magn_set_orient()
300 if (!str) in inv_mpu_magn_set_orient()
303 st->magn_orient.rotation[i] = str; in inv_mpu_magn_set_orient()

Completed in 13 milliseconds

1...<<919293949596979899100>>...518