Home
last modified time | relevance | path

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

12345678910>>...604

/external/pigweed/pw_tokenizer/public/pw_tokenizer/internal/
Dpw_tokenizer_65599_fixed_length_256_hash_macro.h30 #define PW_TOKENIZER_65599_FIXED_LENGTH_256_HASH(str) \ argument
31 (uint32_t)(sizeof(str "") - 1 + /* The argument must be a string literal. */ \
32 0x0001003full * (uint8_t)str[0] + \
33 0x007e0f81ull * (uint8_t)( 1 < sizeof(str) ? str[ 1] : 0) + \
34 0x2e86d0bfull * (uint8_t)( 2 < sizeof(str) ? str[ 2] : 0) + \
35 0x43ec5f01ull * (uint8_t)( 3 < sizeof(str) ? str[ 3] : 0) + \
36 0x162c613full * (uint8_t)( 4 < sizeof(str) ? str[ 4] : 0) + \
37 0xd62aee81ull * (uint8_t)( 5 < sizeof(str) ? str[ 5] : 0) + \
38 0xa311b1bfull * (uint8_t)( 6 < sizeof(str) ? str[ 6] : 0) + \
39 0xd319be01ull * (uint8_t)( 7 < sizeof(str) ? str[ 7] : 0) + \
[all …]
Dpw_tokenizer_65599_fixed_length_128_hash_macro.h30 #define PW_TOKENIZER_65599_FIXED_LENGTH_128_HASH(str) \ argument
31 (uint32_t)(sizeof(str "") - 1 + /* The argument must be a string literal. */ \
32 0x0001003full * (uint8_t)str[0] + \
33 0x007e0f81ull * (uint8_t)( 1 < sizeof(str) ? str[ 1] : 0) + \
34 0x2e86d0bfull * (uint8_t)( 2 < sizeof(str) ? str[ 2] : 0) + \
35 0x43ec5f01ull * (uint8_t)( 3 < sizeof(str) ? str[ 3] : 0) + \
36 0x162c613full * (uint8_t)( 4 < sizeof(str) ? str[ 4] : 0) + \
37 0xd62aee81ull * (uint8_t)( 5 < sizeof(str) ? str[ 5] : 0) + \
38 0xa311b1bfull * (uint8_t)( 6 < sizeof(str) ? str[ 6] : 0) + \
39 0xd319be01ull * (uint8_t)( 7 < sizeof(str) ? str[ 7] : 0) + \
[all …]
Dpw_tokenizer_65599_fixed_length_96_hash_macro.h30 #define PW_TOKENIZER_65599_FIXED_LENGTH_96_HASH(str) \ argument
31 (uint32_t)(sizeof(str "") - 1 + /* The argument must be a string literal. */ \
32 0x0001003full * (uint8_t)str[0] + \
33 0x007e0f81ull * (uint8_t)( 1 < sizeof(str) ? str[ 1] : 0) + \
34 0x2e86d0bfull * (uint8_t)( 2 < sizeof(str) ? str[ 2] : 0) + \
35 0x43ec5f01ull * (uint8_t)( 3 < sizeof(str) ? str[ 3] : 0) + \
36 0x162c613full * (uint8_t)( 4 < sizeof(str) ? str[ 4] : 0) + \
37 0xd62aee81ull * (uint8_t)( 5 < sizeof(str) ? str[ 5] : 0) + \
38 0xa311b1bfull * (uint8_t)( 6 < sizeof(str) ? str[ 6] : 0) + \
39 0xd319be01ull * (uint8_t)( 7 < sizeof(str) ? str[ 7] : 0) + \
[all …]
Dpw_tokenizer_65599_fixed_length_80_hash_macro.h30 #define PW_TOKENIZER_65599_FIXED_LENGTH_80_HASH(str) \ argument
31 (uint32_t)(sizeof(str "") - 1 + /* The argument must be a string literal. */ \
32 0x0001003full * (uint8_t)str[0] + \
33 0x007e0f81ull * (uint8_t)( 1 < sizeof(str) ? str[ 1] : 0) + \
34 0x2e86d0bfull * (uint8_t)( 2 < sizeof(str) ? str[ 2] : 0) + \
35 0x43ec5f01ull * (uint8_t)( 3 < sizeof(str) ? str[ 3] : 0) + \
36 0x162c613full * (uint8_t)( 4 < sizeof(str) ? str[ 4] : 0) + \
37 0xd62aee81ull * (uint8_t)( 5 < sizeof(str) ? str[ 5] : 0) + \
38 0xa311b1bfull * (uint8_t)( 6 < sizeof(str) ? str[ 6] : 0) + \
39 0xd319be01ull * (uint8_t)( 7 < sizeof(str) ? str[ 7] : 0) + \
[all …]
/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/cronet/tot/third_party/libc++/src/test/std/strings/basic.string/string.modifiers/string_replace/
Diter_iter_iter_iter.pass.cpp65 TEST_CONSTEXPR const char* str = "12345678901234567890"; variable
69 test(S(""), 0, 0, str, str + 0, S("")); in test0()
70 test(S(""), 0, 0, str, str + 0, S("")); in test0()
71 test(S(""), 0, 0, str, str + 1, S("1")); in test0()
72 test(S(""), 0, 0, str, str + 2, S("12")); in test0()
73 test(S(""), 0, 0, str, str + 4, S("1234")); in test0()
74 test(S(""), 0, 0, str, str + 5, S("12345")); in test0()
75 test(S(""), 0, 0, str, str + 0, S("")); in test0()
76 test(S(""), 0, 0, str, str + 1, S("1")); in test0()
77 test(S(""), 0, 0, str, str + 5, S("12345")); in test0()
[all …]
/external/cronet/stable/third_party/libc++/src/test/std/strings/basic.string/string.modifiers/string_replace/
Diter_iter_iter_iter.pass.cpp65 TEST_CONSTEXPR const char* str = "12345678901234567890"; variable
69 test(S(""), 0, 0, str, str + 0, S("")); in test0()
70 test(S(""), 0, 0, str, str + 0, S("")); in test0()
71 test(S(""), 0, 0, str, str + 1, S("1")); in test0()
72 test(S(""), 0, 0, str, str + 2, S("12")); in test0()
73 test(S(""), 0, 0, str, str + 4, S("1234")); in test0()
74 test(S(""), 0, 0, str, str + 5, S("12345")); in test0()
75 test(S(""), 0, 0, str, str + 0, S("")); in test0()
76 test(S(""), 0, 0, str, str + 1, S("1")); in test0()
77 test(S(""), 0, 0, str, str + 5, S("12345")); in test0()
[all …]
/external/cronet/stable/third_party/cpu_features/src/test/
Dstring_view_test.cc33 const auto view = str("test"); in TEST()
40 EXPECT_EQ(CpuFeatures_StringView_IndexOfChar(str("test"), 'e'), 1); in TEST()
41 EXPECT_EQ(CpuFeatures_StringView_IndexOfChar(str("test"), 't'), 0); in TEST()
42 EXPECT_EQ(CpuFeatures_StringView_IndexOfChar(str("beef"), 'e'), 1); in TEST()
44 EXPECT_EQ(CpuFeatures_StringView_IndexOfChar(str("test"), 'z'), -1); in TEST()
51 EXPECT_EQ(CpuFeatures_StringView_IndexOf(str("test"), str("es")), 1); in TEST()
52 EXPECT_EQ(CpuFeatures_StringView_IndexOf(str("test"), str("test")), 0); in TEST()
53 EXPECT_EQ(CpuFeatures_StringView_IndexOf(str("tesstest"), str("test")), 4); in TEST()
55 EXPECT_EQ(CpuFeatures_StringView_IndexOf(str("test"), str("aa")), -1); in TEST()
57 EXPECT_EQ(CpuFeatures_StringView_IndexOf(kEmptyStringView, str("aa")), -1); in TEST()
[all …]
/external/cronet/tot/third_party/cpu_features/src/test/
Dstring_view_test.cc33 const auto view = str("test"); in TEST()
40 EXPECT_EQ(CpuFeatures_StringView_IndexOfChar(str("test"), 'e'), 1); in TEST()
41 EXPECT_EQ(CpuFeatures_StringView_IndexOfChar(str("test"), 't'), 0); in TEST()
42 EXPECT_EQ(CpuFeatures_StringView_IndexOfChar(str("beef"), 'e'), 1); in TEST()
44 EXPECT_EQ(CpuFeatures_StringView_IndexOfChar(str("test"), 'z'), -1); in TEST()
51 EXPECT_EQ(CpuFeatures_StringView_IndexOf(str("test"), str("es")), 1); in TEST()
52 EXPECT_EQ(CpuFeatures_StringView_IndexOf(str("test"), str("test")), 0); in TEST()
53 EXPECT_EQ(CpuFeatures_StringView_IndexOf(str("tesstest"), str("test")), 4); in TEST()
55 EXPECT_EQ(CpuFeatures_StringView_IndexOf(str("test"), str("aa")), -1); in TEST()
57 EXPECT_EQ(CpuFeatures_StringView_IndexOf(kEmptyStringView, str("aa")), -1); in TEST()
[all …]
/external/cpu_features/test/
Dstring_view_test.cc33 const auto view = str("test"); in TEST()
40 EXPECT_EQ(CpuFeatures_StringView_IndexOfChar(str("test"), 'e'), 1); in TEST()
41 EXPECT_EQ(CpuFeatures_StringView_IndexOfChar(str("test"), 't'), 0); in TEST()
42 EXPECT_EQ(CpuFeatures_StringView_IndexOfChar(str("beef"), 'e'), 1); in TEST()
44 EXPECT_EQ(CpuFeatures_StringView_IndexOfChar(str("test"), 'z'), -1); in TEST()
51 EXPECT_EQ(CpuFeatures_StringView_IndexOf(str("test"), str("es")), 1); in TEST()
52 EXPECT_EQ(CpuFeatures_StringView_IndexOf(str("test"), str("test")), 0); in TEST()
53 EXPECT_EQ(CpuFeatures_StringView_IndexOf(str("tesstest"), str("test")), 4); in TEST()
55 EXPECT_EQ(CpuFeatures_StringView_IndexOf(str("test"), str("aa")), -1); in TEST()
57 EXPECT_EQ(CpuFeatures_StringView_IndexOf(kEmptyStringView, str("aa")), -1); in TEST()
[all …]
/external/python/pyyaml/tests/data/
Dyaml11.schema84 '!!str #empty': ['str', '', "''"]
85 '!!str +.INF': ['str', '+.INF', "'+.INF'"]
86 '!!str +.Inf': ['str', '+.Inf', "'+.Inf'"]
87 '!!str +.inf': ['str', '+.inf', "'+.inf'"]
88 '!!str +0': ['str', '+0', "'+0'"]
89 '!!str +0.3e+3': ['str', '+0.3e+3', "'+0.3e+3'"]
90 '!!str +0.3e3': ['str', '+0.3e3', "+0.3e3"]
91 '!!str +0100_200': ['str', '+0100_200', "'+0100_200'"]
92 '!!str +0b100': ['str', '+0b100', "'+0b100'"]
93 '!!str +190:20:30': ['str', '+190:20:30', "'+190:20:30'"]
[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 …]
/external/cronet/tot/third_party/libc++/src/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/
Dget_long.pass.cpp56 const char str[] = "123"; in main() local
61 f.get(cpp17_input_iterator<const char*>(str), in main()
62 cpp17_input_iterator<const char*>(str+sizeof(str)), in main()
64 assert(base(iter) == str+3); in main()
69 const char str[] = "-123"; in main() local
74 f.get(cpp17_input_iterator<const char*>(str), in main()
75 cpp17_input_iterator<const char*>(str+sizeof(str)), in main()
77 assert(base(iter) == str+4); in main()
82 const char str[] = "123"; in main() local
86 f.get(cpp17_input_iterator<const char*>(str), in main()
[all …]
Dget_long_double.pass.cpp42 const char str[] = "123"; in main() local
47 f.get(cpp17_input_iterator<const char*>(str), in main()
48 cpp17_input_iterator<const char*>(str+sizeof(str)), in main()
50 assert(base(iter) == str+sizeof(str)-1); in main()
55 const char str[] = "-123"; in main() local
58 f.get(cpp17_input_iterator<const char*>(str), in main()
59 cpp17_input_iterator<const char*>(str+sizeof(str)), in main()
61 assert(base(iter) == str+sizeof(str)-1); in main()
66 const char str[] = "123.5"; in main() local
69 f.get(cpp17_input_iterator<const char*>(str), in main()
[all …]
/external/cronet/stable/third_party/libc++/src/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/
Dget_long.pass.cpp56 const char str[] = "123"; in main() local
61 f.get(cpp17_input_iterator<const char*>(str), in main()
62 cpp17_input_iterator<const char*>(str+sizeof(str)), in main()
64 assert(base(iter) == str+3); in main()
69 const char str[] = "-123"; in main() local
74 f.get(cpp17_input_iterator<const char*>(str), in main()
75 cpp17_input_iterator<const char*>(str+sizeof(str)), in main()
77 assert(base(iter) == str+4); in main()
82 const char str[] = "123"; in main() local
86 f.get(cpp17_input_iterator<const char*>(str), in main()
[all …]
Dget_long_double.pass.cpp42 const char str[] = "123"; in main() local
47 f.get(cpp17_input_iterator<const char*>(str), in main()
48 cpp17_input_iterator<const char*>(str+sizeof(str)), in main()
50 assert(base(iter) == str+sizeof(str)-1); in main()
55 const char str[] = "-123"; in main() local
58 f.get(cpp17_input_iterator<const char*>(str), in main()
59 cpp17_input_iterator<const char*>(str+sizeof(str)), in main()
61 assert(base(iter) == str+sizeof(str)-1); in main()
66 const char str[] = "123.5"; in main() local
69 f.get(cpp17_input_iterator<const char*>(str), in main()
[all …]
Dget_float.pass.cpp42 const char str[] = "123"; in main() local
47 f.get(cpp17_input_iterator<const char*>(str), in main()
48 cpp17_input_iterator<const char*>(str+sizeof(str)), in main()
50 assert(base(iter) == str+sizeof(str)-1); in main()
55 const char str[] = "-123"; in main() local
58 f.get(cpp17_input_iterator<const char*>(str), in main()
59 cpp17_input_iterator<const char*>(str+sizeof(str)), in main()
61 assert(base(iter) == str+sizeof(str)-1); in main()
66 const char str[] = "123.5"; in main() local
69 f.get(cpp17_input_iterator<const char*>(str), in main()
[all …]
/external/executorch/backends/qualcomm/builders/
Dqnn_constants.py19 op_name: str = "Batchnorm"
24 op_name: str = "Cast"
29 op_name: str = "Concat"
30 param_axis: str = "axis"
35 namespace: str = "qaisw"
36 meta_ctx_bin: str = "qnn_context_binary"
41 op_name: str = "Conv2d"
42 param_stride: str = "stride"
43 param_pad_amount: str = "pad_amount"
44 param_group: str = "group"
[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/pytorch/test/
Dtest_jit_string.py10 …def test_str_is(s: str) -> Tuple[bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool]: argument
15 def test_str_to(s: str) -> Tuple[str, str, str, str, str]: argument
18 def test_str_strip(s: str) -> Tuple[str, str, str]: argument
25 def test_str_strip_char_set(s: str, char_set: str) -> Tuple[str, str, str]: argument
37 def test_str_center(i: int, s: str) -> str: argument
40 def test_str_center_fc(i: int, s: str) -> str: argument
43 def test_str_center_error(s: str) -> str: argument
46 def test_ljust(s: str, i: int) -> str: argument
49 def test_ljust_fc(s: str, i: int, fc: str) -> str: argument
52 def test_ljust_fc_err(s: str) -> str: argument
[all …]
/external/python/cpython3/Python/
Dmystrtoul.c101 PyOS_strtoul(const char *str, char **ptr, int base) in PyOS_strtoul() argument
108 while (*str && Py_ISSPACE(*str)) in PyOS_strtoul()
109 ++str; in PyOS_strtoul()
114 if (*str == '0') { in PyOS_strtoul()
115 ++str; in PyOS_strtoul()
116 if (*str == 'x' || *str == 'X') { in PyOS_strtoul()
118 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 16) { in PyOS_strtoul()
120 *ptr = (char *)str; in PyOS_strtoul()
123 ++str; in PyOS_strtoul()
125 } else if (*str == 'o' || *str == 'O') { in PyOS_strtoul()
[all …]
/external/angle/src/tests/preprocessor_tests/
Dif_test.cpp18 const char *str = in TEST_F() local
31 preprocess(str, expected); in TEST_F()
36 const char *str = in TEST_F() local
49 preprocess(str, expected); in TEST_F()
54 const char *str = in TEST_F() local
71 preprocess(str, expected); in TEST_F()
76 const char *str = in TEST_F() local
93 preprocess(str, expected); in TEST_F()
98 const char *str = in TEST_F() local
127 preprocess(str, expected); in TEST_F()
[all …]
/external/cronet/stable/third_party/protobuf/src/google/protobuf/util/internal/
Djson_stream_parser_test.cc173 StringPiece str = "true"; in TEST_F() local
174 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
176 DoTest(str, i); in TEST_F()
181 StringPiece str = "false"; in TEST_F() local
182 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
184 DoTest(str, i); in TEST_F()
189 StringPiece str = "null"; in TEST_F() local
190 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
192 DoTest(str, i); in TEST_F()
198 StringPiece str = "{}"; in TEST_F() local
[all …]
/external/cronet/tot/third_party/protobuf/src/google/protobuf/util/internal/
Djson_stream_parser_test.cc173 StringPiece str = "true"; in TEST_F() local
174 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
176 DoTest(str, i); in TEST_F()
181 StringPiece str = "false"; in TEST_F() local
182 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
184 DoTest(str, i); in TEST_F()
189 StringPiece str = "null"; in TEST_F() local
190 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
192 DoTest(str, i); in TEST_F()
198 StringPiece str = "{}"; in TEST_F() local
[all …]
/external/protobuf/src/google/protobuf/util/internal/
Djson_stream_parser_test.cc173 StringPiece str = "true"; in TEST_F() local
174 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
176 DoTest(str, i); in TEST_F()
181 StringPiece str = "false"; in TEST_F() local
182 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
184 DoTest(str, i); in TEST_F()
189 StringPiece str = "null"; in TEST_F() local
190 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
192 DoTest(str, i); in TEST_F()
198 StringPiece str = "{}"; in TEST_F() local
[all …]

12345678910>>...604