Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 6507) sorted by relevance

12345678910>>...261

/external/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/
Diter_iter_iter_iter.pass.cpp56 const char* str = "12345678901234567890"; variable
61 test(S(""), 0, 0, str, str+0, S("")); in test0()
62 test(S(""), 0, 0, str, str+0, S("")); in test0()
63 test(S(""), 0, 0, str, str+1, S("1")); in test0()
64 test(S(""), 0, 0, str, str+2, S("12")); in test0()
65 test(S(""), 0, 0, str, str+4, S("1234")); in test0()
66 test(S(""), 0, 0, str, str+5, S("12345")); in test0()
67 test(S(""), 0, 0, str, str+0, S("")); in test0()
68 test(S(""), 0, 0, str, str+1, S("1")); in test0()
69 test(S(""), 0, 0, str, str+5, S("12345")); in test0()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/
Dget_long.pass.cpp52 const char str[] = "123"; in main() local
57 f.get(input_iterator<const char*>(str), in main()
58 input_iterator<const char*>(str+sizeof(str)), in main()
60 assert(iter.base() == str+3); in main()
65 const char str[] = "-123"; in main() local
70 f.get(input_iterator<const char*>(str), in main()
71 input_iterator<const char*>(str+sizeof(str)), in main()
73 assert(iter.base() == str+4); in main()
78 const char str[] = "123"; in main() local
82 f.get(input_iterator<const char*>(str), in main()
[all …]
Dget_long_double.pass.cpp45 const char str[] = "123"; in main() local
50 f.get(input_iterator<const char*>(str), in main()
51 input_iterator<const char*>(str+sizeof(str)), in main()
53 assert(iter.base() == str+sizeof(str)-1); in main()
58 const char str[] = "-123"; in main() local
61 f.get(input_iterator<const char*>(str), in main()
62 input_iterator<const char*>(str+sizeof(str)), in main()
64 assert(iter.base() == str+sizeof(str)-1); in main()
69 const char str[] = "123.5"; in main() local
72 f.get(input_iterator<const char*>(str), in main()
[all …]
Dget_double.pass.cpp58 const char str[] = "123"; in main() local
63 f.get(input_iterator<const char*>(str), in main()
64 input_iterator<const char*>(str+sizeof(str)), in main()
66 assert(iter.base() == str+sizeof(str)-1); in main()
71 const char str[] = "-123"; in main() local
74 f.get(input_iterator<const char*>(str), in main()
75 input_iterator<const char*>(str+sizeof(str)), in main()
77 assert(iter.base() == str+sizeof(str)-1); in main()
82 const char str[] = "123.5"; in main() local
85 f.get(input_iterator<const char*>(str), in main()
[all …]
Dget_float.pass.cpp45 const char str[] = "123"; in main() local
50 f.get(input_iterator<const char*>(str), in main()
51 input_iterator<const char*>(str+sizeof(str)), in main()
53 assert(iter.base() == str+sizeof(str)-1); in main()
58 const char str[] = "-123"; in main() local
61 f.get(input_iterator<const char*>(str), in main()
62 input_iterator<const char*>(str+sizeof(str)), in main()
64 assert(iter.base() == str+sizeof(str)-1); in main()
69 const char str[] = "123.5"; in main() local
72 f.get(input_iterator<const char*>(str), in main()
[all …]
/external/protobuf/src/google/protobuf/util/internal/
Djson_stream_parser_test.cc145 StringPiece str = "true"; in TEST_F() local
146 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
148 DoTest(str, i); in TEST_F()
153 StringPiece str = "false"; in TEST_F() local
154 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
156 DoTest(str, i); in TEST_F()
161 StringPiece str = "null"; in TEST_F() local
162 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
164 DoTest(str, i); in TEST_F()
170 StringPiece str = "{}"; in TEST_F() local
[all …]
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_stacktrace_printer_test.cc20 InternalScopedString str(128); in TEST() local
21 RenderSourceLocation(&str, "/dir/file.cc", 10, 5, false, ""); in TEST()
22 EXPECT_STREQ("/dir/file.cc:10:5", str.data()); in TEST()
24 str.clear(); in TEST()
25 RenderSourceLocation(&str, "/dir/file.cc", 11, 0, false, ""); in TEST()
26 EXPECT_STREQ("/dir/file.cc:11", str.data()); in TEST()
28 str.clear(); in TEST()
29 RenderSourceLocation(&str, "/dir/file.cc", 0, 0, false, ""); in TEST()
30 EXPECT_STREQ("/dir/file.cc", str.data()); in TEST()
32 str.clear(); in TEST()
[all …]
/external/python/cpython3/Python/
Dmystrtoul.c95 PyOS_strtoul(const char *str, char **ptr, int base) in PyOS_strtoul() argument
102 while (*str && Py_ISSPACE(Py_CHARMASK(*str))) in PyOS_strtoul()
103 ++str; in PyOS_strtoul()
108 if (*str == '0') { in PyOS_strtoul()
109 ++str; in PyOS_strtoul()
110 if (*str == 'x' || *str == 'X') { in PyOS_strtoul()
112 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 16) { in PyOS_strtoul()
114 *ptr = (char *)str; in PyOS_strtoul()
117 ++str; in PyOS_strtoul()
119 } else if (*str == 'o' || *str == 'O') { in PyOS_strtoul()
[all …]
/external/skia/src/utils/
DSkParse.cpp50 static const char* skip_ws(const char str[]) in skip_ws() argument
52 SkASSERT(str); in skip_ws()
53 while (is_ws(*str)) in skip_ws()
54 str++; in skip_ws()
55 return str; in skip_ws()
58 static const char* skip_sep(const char str[]) in skip_sep() argument
60 SkASSERT(str); in skip_sep()
61 while (is_sep(*str)) in skip_sep()
62 str++; in skip_sep()
63 return str; in skip_sep()
[all …]
/external/skqp/src/utils/
DSkParse.cpp50 static const char* skip_ws(const char str[]) in skip_ws() argument
52 SkASSERT(str); in skip_ws()
53 while (is_ws(*str)) in skip_ws()
54 str++; in skip_ws()
55 return str; in skip_ws()
58 static const char* skip_sep(const char str[]) in skip_sep() argument
60 SkASSERT(str); in skip_sep()
61 while (is_sep(*str)) in skip_sep()
62 str++; in skip_sep()
63 return str; in skip_sep()
[all …]
/external/u-boot/board/freescale/mx6sllevk/
Dplugin.S12 str r1, [r0, #0x550]
14 str r1, [r0, #0x534]
16 str r1, [r0, #0x2AC]
17 str r1, [r0, #0x548]
18 str r1, [r0, #0x52C]
20 str r1, [r0, #0x530]
22 str r1, [r0, #0x2B0]
23 str r1, [r0, #0x2B4]
24 str r1, [r0, #0x2B8]
25 str r1, [r0, #0x2BC]
[all …]
/external/python/cpython2/Python/
Dmystrtoul.c95 PyOS_strtoul(register char *str, char **ptr, int base) in PyOS_strtoul() argument
102 while (*str && isspace(Py_CHARMASK(*str))) in PyOS_strtoul()
103 ++str; in PyOS_strtoul()
108 if (*str == '0') { in PyOS_strtoul()
109 ++str; in PyOS_strtoul()
110 if (*str == 'x' || *str == 'X') { in PyOS_strtoul()
112 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 16) { in PyOS_strtoul()
114 *ptr = str; in PyOS_strtoul()
117 ++str; in PyOS_strtoul()
119 } else if (*str == 'o' || *str == 'O') { in PyOS_strtoul()
[all …]
/external/u-boot/board/freescale/mx7ulp_evk/
Dplugin.S11 str r3, [r2, #0xdc]
15 str r3, [r2, #0x40]
17 str r3, [r2, #0x500]
19 str r3, [r2, #0x50c]
21 str r3, [r2, #0x508]
23 str r3, [r2, #0x510]
25 str r3, [r2, #0x514]
27 str r3, [r2, #0x500]
37 str r3, [r2, #0x50c]
47 str r3, [r2, #0x30]
[all …]
/external/deqp-deps/SPIRV-Tools/test/val/
Dval_cfg_test.cpp104 out << ss.str(); in operator std::string()
123 return out.str(); in operator std::string()
188 std::string str = R"( in TEST_P() local
210 CompileSuccessfully(str); in TEST_P()
211 ASSERT_EQ(SPV_SUCCESS, ValidateInstructions()) << str; in TEST_P()
226 std::string str = R"( in TEST_P() local
256 CompileSuccessfully(str); in TEST_P()
258 << str << getDiagnosticString(); in TEST_P()
273 std::string str = header(GetParam()) + in TEST_P() local
279 str += entry >> loop; in TEST_P()
[all …]
Dval_data_test.cpp108 std::string str = header + R"( in TEST_F() local
112 CompileSuccessfully(str.c_str()); in TEST_F()
118 std::string str = header + R"( in TEST_F() local
122 CompileSuccessfully(str.c_str()); in TEST_F()
128 std::string str = header + R"( in TEST_F() local
132 CompileSuccessfully(str.c_str()); in TEST_F()
137 std::string str = header + R"( in TEST_F() local
141 CompileSuccessfully(str.c_str()); in TEST_F()
146 std::string str = header + R"( in TEST_F() local
150 CompileSuccessfully(str.c_str()); in TEST_F()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_cfg_test.cpp104 out << ss.str(); in operator std::string()
123 return out.str(); in operator std::string()
188 std::string str = R"( in TEST_P() local
210 CompileSuccessfully(str); in TEST_P()
211 ASSERT_EQ(SPV_SUCCESS, ValidateInstructions()) << str; in TEST_P()
226 std::string str = R"( in TEST_P() local
256 CompileSuccessfully(str); in TEST_P()
258 << str << getDiagnosticString(); in TEST_P()
273 std::string str = header(GetParam()) + in TEST_P() local
279 str += entry >> loop; in TEST_P()
[all …]
/external/u-boot/board/freescale/mx6ullevk/
Dplugin.S12 str r1, [r0, #0x4B4]
14 str r1, [r0, #0x4AC]
16 str r1, [r0, #0x27C]
18 str r1, [r0, #0x250]
19 str r1, [r0, #0x24C]
20 str r1, [r0, #0x490]
22 str r1, [r0, #0x288]
25 str r1, [r0, #0x270]
28 str r1, [r0, #0x260]
29 str r1, [r0, #0x264]
[all …]
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/
Dput_long_double_en_US.pass.cpp64 char str[100]; in main() local
65 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
67 std::string ex(str, iter.base()); in main()
72 char str[100]; in main() local
73 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
75 std::string ex(str, iter.base()); in main()
80 char str[100]; in main() local
81 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
83 std::string ex(str, iter.base()); in main()
88 char str[100]; in main() local
[all …]
Dput_long_double_zh_CN.pass.cpp70 char str[100]; in main() local
71 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
73 std::string ex(str, iter.base()); in main()
78 char str[100]; in main() local
79 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
81 std::string ex(str, iter.base()); in main()
86 char str[100]; in main() local
87 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
89 std::string ex(str, iter.base()); in main()
94 char str[100]; in main() local
[all …]
Dput_long_double_ru_RU.pass.cpp76 char str[100]; in main() local
77 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
79 std::string ex(str, iter.base()); in main()
84 char str[100]; in main() local
85 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
87 std::string ex(str, iter.base()); in main()
92 char str[100]; in main() local
93 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
95 std::string ex(str, iter.base()); in main()
100 char str[100]; in main() local
[all …]
Dput_string_en_US.pass.cpp64 char str[100]; in main() local
65 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
67 std::string ex(str, iter.base()); in main()
72 char str[100]; in main() local
73 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
75 std::string ex(str, iter.base()); in main()
80 char str[100]; in main() local
81 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
83 std::string ex(str, iter.base()); in main()
88 char str[100]; in main() local
[all …]
Dput_long_double_fr_FR.pass.cpp99 char str[100]; in main() local
100 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
102 std::string ex(str, iter.base()); in main()
107 char str[100]; in main() local
108 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
110 std::string ex(str, iter.base()); in main()
115 char str[100]; in main() local
116 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
118 std::string ex(str, iter.base()); in main()
123 char str[100]; in main() local
[all …]
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/
Dput2.pass.cpp34 char str[200]; in main() local
48 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'A'); in main()
49 std::string ex(str, iter.base()); in main()
53 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'a'); in main()
54 std::string ex(str, iter.base()); in main()
58 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'B'); in main()
59 std::string ex(str, iter.base()); in main()
63 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'b'); in main()
64 std::string ex(str, iter.base()); in main()
68 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'C'); in main()
[all …]
/external/mesa3d/src/util/
Dstring_buffer.c28 ensure_capacity(struct _mesa_string_buffer *str, uint32_t needed_capacity) in ensure_capacity() argument
30 if (needed_capacity <= str->capacity) in ensure_capacity()
34 uint32_t new_capacity = str->capacity * 2; in ensure_capacity()
38 str->buf = reralloc_array_size(str, str->buf, sizeof(char), new_capacity); in ensure_capacity()
39 if (str->buf == NULL) in ensure_capacity()
42 str->capacity = new_capacity; in ensure_capacity()
49 struct _mesa_string_buffer *str; in _mesa_string_buffer_create() local
50 str = ralloc(mem_ctx, struct _mesa_string_buffer); in _mesa_string_buffer_create()
52 if (str == NULL) in _mesa_string_buffer_create()
56 str->capacity = initial_capacity ? initial_capacity : 32; in _mesa_string_buffer_create()
[all …]
/external/pdfium/core/fxcrt/
Dfx_system.cpp16 IntType FXSYS_StrToInt(const CharType* str) { in FXSYS_StrToInt() argument
17 if (!str) in FXSYS_StrToInt()
21 bool neg = *str == '-'; in FXSYS_StrToInt()
22 if (neg || *str == '+') in FXSYS_StrToInt()
23 str++; in FXSYS_StrToInt()
26 while (*str && FXSYS_isDecimalDigit(*str)) { in FXSYS_StrToInt()
27 IntType val = FXSYS_DecimalCharToInt(*str); in FXSYS_StrToInt()
41 str++; in FXSYS_StrToInt()
50 STR_T FXSYS_IntToStr(T value, STR_T str, int radix) { in FXSYS_IntToStr() argument
52 str[0] = 0; in FXSYS_IntToStr()
[all …]

12345678910>>...261