Home
last modified time | relevance | path

Searched refs:str (Results 951 - 975 of 14722) sorted by relevance

1...<<31323334353637383940>>...589

/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dlseek.c117 char str[] = "This is a test sample!"; in lseek_0400() local
120 int retwrite = write(fd, str, sizeof(str)); in lseek_0400()
134 char str[] = "This is a test sample!"; in lseek_0500() local
137 int retwrite = write(fd, str, sizeof(str)); in lseek_0500()
151 char str[] = "This is a test sample!"; in lseek_0600() local
154 int retwrite = write(fd, str, sizeof(str)); in lseek_0600()
/third_party/toybox/porting/liteos_a/toys/posix/
H A Ddate.c60 static void parse_date(char *str, time_t *t) in parse_date() argument
62 char *new_tz = NULL, *old_tz, *s = str; in parse_date()
64 if (!strncmp(str, "TZ=\"", 4)) { in parse_date()
66 new_tz = str+4; in parse_date()
67 if (!(str = strchr(new_tz, '"'))) xvali_date(0, s); in parse_date()
68 *str++ = 0; in parse_date()
69 while (isspace(*str)) str++; in parse_date()
77 xparsedate(str, t, &TT.nano, 1); in parse_date()
/third_party/toybox/toys/posix/
H A Ddate.c63 static void parse_date(char *str, time_t *t) in parse_date() argument
65 char *new_tz = NULL, *old_tz, *s = str; in parse_date()
67 if (!strncmp(str, "TZ=\"", 4)) { in parse_date()
69 new_tz = str+4; in parse_date()
70 if (!(str = strchr(new_tz, '"'))) xvali_date(0, s); in parse_date()
71 *str++ = 0; in parse_date()
72 while (isspace(*str)) str++; in parse_date()
80 xparsedate(str, t, &TT.nano, 1); in parse_date()
/third_party/vixl/test/aarch64/
H A Dtest-debugger-aarch64.h105 input_stream.str(input_stream.str() + cmd_str); \
125 if (!std::regex_search(ostream.str(), regex)) { \
126 printf("output = \n\"%s\"\n", ostream.str().c_str()); \
149 std::string str = ostream.str(); in GetInstructionAddress() local
153 if (std::regex_search(str, sub_matches, regex) && sub_matches.size() == 3) { in GetInstructionAddress()
154 return sub_matches[1].str() + sub_matches[2].str(); in GetInstructionAddress()
/third_party/skia/docs/examples/
H A DPaintDump.cpp5 static const char* str(SkPaint::Cap v) { in REG_FIDDLE() function
13 static const char* str(SkPaint::Join v) { in REG_FIDDLE() function
21 static const char* str(SkPaint::Style v) { in REG_FIDDLE() function
30 static const char* str(bool v) { return v ? "true" : "false"; } in REG_FIDDLE() function
46 s.appendf("p.setAntiAlias(%s);\n", str(p.isAntiAlias())); in REG_FIDDLE()
49 s.appendf("p.setDither(%s);\n", str(p.isDither())); in REG_FIDDLE()
52 s.appendf("p.setStrokeCap(%s);\n", str(p.getStrokeCap())); in REG_FIDDLE()
55 s.appendf("p.setStrokeJoin(%s);\n", str(p.getStrokeJoin())); in REG_FIDDLE()
58 s.appendf("p.setStyle(%s);\n", str(p.getStyle())); in REG_FIDDLE()
/third_party/NuttX/drivers/usbdev/gadget/
H A Df_dfu.c178 if (des->str == NULL || des->len <= 0) in set_manufacturer_string()
180 usb_err("%s failed, des->str is NULL or des->len is 0\n", __FUNCTION__); in set_manufacturer_string()
194 g_manufacturer_str.str = buf; in set_manufacturer_string()
199 (void)memcpy_s(buf + DFU_STRING_HEAD_LEN, (size_t)str_des->len, str_des->str, (size_t)str_des->len); in set_manufacturer_string()
214 if (des->str == NULL || des->len <= 0) in set_serial_number_string()
216 usb_err("%s failed, des->str is NULL or des->len is 0\n", __FUNCTION__); in set_serial_number_string()
230 g_serial_number_str.str = buf; in set_serial_number_string()
235 (void)memcpy_s(buf + DFU_STRING_HEAD_LEN, (size_t)str_des->len, str_des->str, (size_t)str_des->len); in set_serial_number_string()
250 if (des->str == NULL || des->len <= 0) in set_product_string()
252 usb_err("%s failed, des->str i in set_product_string()
398 struct string_des str; usbdev_dfu_dev_init() local
1193 const char *str; usbdev_dfu_mkstrdesc() local
[all...]
/third_party/libsnd/tests/
H A Dstring_test.c40 static const char STR_TEST_PREFIX[] = "str" ;
624 const char * str ; in string_rdwr_test() local
638 str = sf_get_string (file, SF_STR_TITLE) ; in string_rdwr_test()
639 exit_if_true (str == NULL, "\n\nLine %d : SF_STR_TITLE string is NULL.\n", __LINE__) ; in string_rdwr_test()
640 exit_if_true (strcmp (str, title) != 0, "\n\nLine %d : SF_STR_TITLE doesn't match what was written.\n", __LINE__) ; in string_rdwr_test()
649 str = sf_get_string (file, SF_STR_TITLE) ; in string_rdwr_test()
650 exit_if_true (str == NULL, "\n\nLine %d : SF_STR_TITLE string is NULL.\n", __LINE__) ; in string_rdwr_test()
656 str = sf_get_string (file, SF_STR_ARTIST) ; in string_rdwr_test()
657 exit_if_true (str == NULL, "\n\nLine %d : SF_STR_ARTIST string is NULL.\n", __LINE__) ; in string_rdwr_test()
658 exit_if_true (strcmp (str, artis in string_rdwr_test()
677 const char * str ; string_short_rdwr_test() local
788 const char * str ; string_rdwr_grow_test() local
846 const char * str ; string_header_update() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkmemorystream_fuzzer/
H A Dndkmemorystream_fuzzer.cpp48 char* str = new char[str_size]; in NativeDrawingMemoryStreamTest() local
50 str[i] = GetObject<char>(); in NativeDrawingMemoryStreamTest()
53 OH_Drawing_MemoryStream* memoryStream = OH_Drawing_MemoryStreamCreate(str, str_size, copyData); in NativeDrawingMemoryStreamTest()
56 if (str != nullptr) { in NativeDrawingMemoryStreamTest()
57 delete [] str; in NativeDrawingMemoryStreamTest()
58 str = nullptr; in NativeDrawingMemoryStreamTest()
/kernel/liteos_m/testsuites/sample/kernel/lms/
H A DIt_los_lms_004.c39 CHAR *str[PTR_NUM] = {NULL}; in TestCase() local
50 str[index] = (char *)LOS_MemAllocAlign(m_aucSysMem0, size[k], boundary); in TestCase()
51 ICUNIT_GOTO_NOT_EQUAL(str[index], NULL, str[index], EXIT); in TestCase()
55 (VOID)LOS_MemFree(m_aucSysMem0, str[i]); in TestCase()
62 (VOID)LOS_MemFree(m_aucSysMem0, str[i]); in TestCase()
H A DIt_los_lms_010.c40 CHAR *str = (CHAR *)LOS_MemAlloc(g_testLmsPool, size); in TestCase() local
41 ICUNIT_ASSERT_NOT_EQUAL(str, NULL, str); in TestCase()
42 PRINT_DEBUG("str = 0x%x,%d\n", str, __LINE__); in TestCase()
44 CHAR *newPtr = LOS_MemRealloc(g_testLmsPool, str, 0x8+0x2); /* reaSize 0x2 is not 4Align */ in TestCase()
70 (VOID)LOS_MemFree(g_testLmsPool, str); in TestCase()
/third_party/elfutils/tests/
H A Ddwarf-getstring.c56 const char *str = dwarf_getstring (NULL, offset, &len); in main() local
57 assert (str == NULL); in main()
60 str = dwarf_getstring (dbg, ~0UL, &len); in main()
61 assert (str == NULL); in main()
66 str = dwarf_getstring (dbg, offset, &len); in main()
67 puts (str); in main()
/third_party/alsa-utils/alsamixer/
H A Dmem.c52 char *str = strdup(s); in cstrdup() local
53 check(str); in cstrdup()
54 return str; in cstrdup()
60 char *str; in casprintf() local
63 if (vasprintf(&str, fmt, ap) < 0) in casprintf()
66 return str; in casprintf()
/third_party/icu/icu4c/source/samples/numfmt/
H A Dcapi.c16 static void uprintf(const UChar* str) { in uprintf() argument
18 u_austrcpy(buf, str); in uprintf()
26 UChar str[] = { 0x39, 0x38, 0x37, 0x36, 0x35, 0x34, 0x33, in capi() local
50 a = unum_parseDouble(fmt, str, u_strlen(str), NULL, &status); in capi()
58 uprintf(str); in capi()
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A D__freading.c29 char *str = "This is a test"; in __freading_0100() local
31 fputs(str, fp); in __freading_0100()
48 char *str = "This is a test"; in __freading_0200() local
50 fputs(str, fp); in __freading_0200()
69 char *str = "This is a test"; in __freading_0300() local
71 fputs(str, fp); in __freading_0300()
/third_party/skia/third_party/externals/angle2/src/tests/preprocessor_tests/
H A Dcomment_test.cpp18 const char *str = GetParam(); in TEST_P() local
21 lexSingleToken(str, &token); in TEST_P()
47 const char *str = "/*foo*/bar"; in TEST_F() local
50 lexSingleToken(str, &token); in TEST_F()
58 const char *str = "/*foo"; in TEST_F() local
63 preprocess(str); in TEST_F()
/third_party/skia/third_party/externals/icu/source/samples/numfmt/
H A Dcapi.c16 static void uprintf(const UChar* str) { in uprintf() argument
18 u_austrcpy(buf, str); in uprintf()
26 UChar str[] = { 0x39, 0x38, 0x37, 0x36, 0x35, 0x34, 0x33, in capi() local
50 a = unum_parseDouble(fmt, str, u_strlen(str), NULL, &status); in capi()
58 uprintf(str); in capi()
/third_party/skia/third_party/externals/icu/fuzzers/
H A Dicu_to_case_fuzzer.cc29 icu::UnicodeString str(UnicodeStringFromUtf32(data, size)); in LLVMFuzzerTestOneInput()
35 int32_t dest_size = (rng() % (str.length() + 3)); in LLVMFuzzerTestOneInput()
40 u_strToUpper(dest.get(), dest_size, (const UChar*)str.getBuffer(), in LLVMFuzzerTestOneInput()
41 str.length(), locale, &status); in LLVMFuzzerTestOneInput()
44 u_strToLower(dest.get(), dest_size, (const UChar*)str.getBuffer(), in LLVMFuzzerTestOneInput()
45 str.length(), locale, &status); in LLVMFuzzerTestOneInput()
/third_party/skia/bench/
H A DBenchLogger.h43 void logError(const SkString& str) { this->nativeLogError(str.c_str()); } in logError() argument
58 void logProgress(const SkString& str) { in logProgress() argument
59 this->nativeLogProgress(str.c_str()); in logProgress()
60 this->fileWrite(str.c_str(), str.size()); in logProgress()
/kernel/linux/linux-5.10/arch/mips/generic/
H A Dproc.c15 const char *str; in get_system_type() local
21 err = of_property_read_string(of_root, "model", &str); in get_system_type()
23 return str; in get_system_type()
25 err = of_property_read_string_index(of_root, "compatible", 0, &str); in get_system_type()
27 return str; in get_system_type()
/kernel/linux/linux-6.6/arch/mips/generic/
H A Dproc.c15 const char *str; in get_system_type() local
21 err = of_property_read_string(of_root, "model", &str); in get_system_type()
23 return str; in get_system_type()
25 err = of_property_read_string_index(of_root, "compatible", 0, &str); in get_system_type()
27 return str; in get_system_type()
/third_party/pulseaudio/src/modules/raop/
H A Draop-util.h32 int pa_raop_base64_encode(const void *data, int len, char **str);
33 int pa_raop_base64_decode(const char *str, void *data);
35 int pa_raop_md5_hash(const char *data, int len, char **str);
37 int pa_raop_basic_response(const char *user, const char *pwd, char **str);
39 const char *nonce, const char *uri, char **str);
/third_party/typescript/tests/baselines/reference/
H A DcapturedVarInLoop.js3 var str = 'x', len = str.length;
10 str = 'x', len = str.length;
14 var str, len; variable
/foundation/ability/ability_base/interfaces/kits/native/want/src/
H A Darray_wrapper.cpp152 auto func = [](const std::string &str) -> sptr<IInterface> { return String::Parse(str); }; in ParseString()
162 auto func = [](const std::string &str) -> sptr<IInterface> { return Boolean::Parse(str); }; in ParseBoolean()
172 auto func = [](const std::string &str) -> sptr<IInterface> { return Byte::Parse(str); }; in ParseByte()
182 auto func = [](const std::string &str) -> sptr<IInterface> { return Short::Parse(str); }; in ParseShort()
192 auto func = [](const std::string &str) -> sptr<IInterface> { return Integer::Parse(str); }; in ParseInteger()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_ethtool.c265 char str[ETH_GSTRING_LEN]; member
272 .str = "a_frames_transmitted_ok",
276 .str = "a_frames_received_ok",
280 .str = "a_frame_check_sequence_errors",
284 .str = "a_alignment_errors",
288 .str = "a_octets_transmitted_ok",
292 .str = "a_octets_received_ok",
296 .str = "a_multicast_frames_xmitted_ok",
300 .str = "a_broadcast_frames_xmitted_ok",
304 .str
564 char str[ETH_GSTRING_LEN]; global() member
[all...]
/third_party/python/Modules/
H A D_json.c687 const void *str; in _parse_object_unicode() local
699 str = PyUnicode_DATA(pystr); in _parse_object_unicode()
711 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind,str, idx))) idx++; in _parse_object_unicode()
714 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != '}') { in _parse_object_unicode()
719 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != '"') { in _parse_object_unicode()
736 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++; in _parse_object_unicode()
737 if (idx > end_idx || PyUnicode_READ(kind, str, idx) != ':') { in _parse_object_unicode()
742 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++; in _parse_object_unicode()
770 while (idx <= end_idx && IS_WHITESPACE(PyUnicode_READ(kind, str, idx))) idx++; in _parse_object_unicode()
773 if (idx <= end_idx && PyUnicode_READ(kind, str, id in _parse_object_unicode()
817 const void *str; _parse_array_unicode() local
920 const void *str; _match_number_unicode() local
1037 const void *str; scan_once_unicode() local
[all...]

Completed in 13 milliseconds

1...<<31323334353637383940>>...589