Home
last modified time | relevance | path

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

12345678910>>...490

/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 0x0001003fu * (uint8_t)str[0] + \
33 0x007e0f81u * (uint8_t)( 1 < sizeof(str) ? str[ 1] : 0) + \
34 0x2e86d0bfu * (uint8_t)( 2 < sizeof(str) ? str[ 2] : 0) + \
35 0x43ec5f01u * (uint8_t)( 3 < sizeof(str) ? str[ 3] : 0) + \
36 0x162c613fu * (uint8_t)( 4 < sizeof(str) ? str[ 4] : 0) + \
37 0xd62aee81u * (uint8_t)( 5 < sizeof(str) ? str[ 5] : 0) + \
38 0xa311b1bfu * (uint8_t)( 6 < sizeof(str) ? str[ 6] : 0) + \
39 0xd319be01u * (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 0x0001003fu * (uint8_t)str[0] + \
33 0x007e0f81u * (uint8_t)( 1 < sizeof(str) ? str[ 1] : 0) + \
34 0x2e86d0bfu * (uint8_t)( 2 < sizeof(str) ? str[ 2] : 0) + \
35 0x43ec5f01u * (uint8_t)( 3 < sizeof(str) ? str[ 3] : 0) + \
36 0x162c613fu * (uint8_t)( 4 < sizeof(str) ? str[ 4] : 0) + \
37 0xd62aee81u * (uint8_t)( 5 < sizeof(str) ? str[ 5] : 0) + \
38 0xa311b1bfu * (uint8_t)( 6 < sizeof(str) ? str[ 6] : 0) + \
39 0xd319be01u * (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 0x0001003fu * (uint8_t)str[0] + \
33 0x007e0f81u * (uint8_t)( 1 < sizeof(str) ? str[ 1] : 0) + \
34 0x2e86d0bfu * (uint8_t)( 2 < sizeof(str) ? str[ 2] : 0) + \
35 0x43ec5f01u * (uint8_t)( 3 < sizeof(str) ? str[ 3] : 0) + \
36 0x162c613fu * (uint8_t)( 4 < sizeof(str) ? str[ 4] : 0) + \
37 0xd62aee81u * (uint8_t)( 5 < sizeof(str) ? str[ 5] : 0) + \
38 0xa311b1bfu * (uint8_t)( 6 < sizeof(str) ? str[ 6] : 0) + \
39 0xd319be01u * (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 0x0001003fu * (uint8_t)str[0] + \
33 0x007e0f81u * (uint8_t)( 1 < sizeof(str) ? str[ 1] : 0) + \
34 0x2e86d0bfu * (uint8_t)( 2 < sizeof(str) ? str[ 2] : 0) + \
35 0x43ec5f01u * (uint8_t)( 3 < sizeof(str) ? str[ 3] : 0) + \
36 0x162c613fu * (uint8_t)( 4 < sizeof(str) ? str[ 4] : 0) + \
37 0xd62aee81u * (uint8_t)( 5 < sizeof(str) ? str[ 5] : 0) + \
38 0xa311b1bfu * (uint8_t)( 6 < sizeof(str) ? str[ 6] : 0) + \
39 0xd319be01u * (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/llvm-project/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/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/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 …]
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/
Dget_long.pass.cpp61 const char str[] = "123"; in main() local
66 f.get(input_iterator<const char*>(str), in main()
67 input_iterator<const char*>(str+sizeof(str)), in main()
69 assert(iter.base() == str+3); in main()
74 const char str[] = "-123"; in main() local
79 f.get(input_iterator<const char*>(str), in main()
80 input_iterator<const char*>(str+sizeof(str)), in main()
82 assert(iter.base() == str+4); in main()
87 const char str[] = "123"; in main() local
91 f.get(input_iterator<const char*>(str), in main()
[all …]
Dget_long_double.pass.cpp42 const char str[] = "123"; in main() local
47 f.get(input_iterator<const char*>(str), in main()
48 input_iterator<const char*>(str+sizeof(str)), in main()
50 assert(iter.base() == str+sizeof(str)-1); in main()
55 const char str[] = "-123"; in main() local
58 f.get(input_iterator<const char*>(str), in main()
59 input_iterator<const char*>(str+sizeof(str)), in main()
61 assert(iter.base() == str+sizeof(str)-1); in main()
66 const char str[] = "123.5"; in main() local
69 f.get(input_iterator<const char*>(str), in main()
[all …]
Dget_double.pass.cpp53 const char str[] = "123"; in main() local
58 f.get(input_iterator<const char*>(str), in main()
59 input_iterator<const char*>(str+sizeof(str)), in main()
61 assert(iter.base() == str+sizeof(str)-1); in main()
66 const char str[] = "-123"; in main() local
69 f.get(input_iterator<const char*>(str), in main()
70 input_iterator<const char*>(str+sizeof(str)), in main()
72 assert(iter.base() == str+sizeof(str)-1); in main()
77 const char str[] = "123.5"; in main() local
80 f.get(input_iterator<const char*>(str), in main()
[all …]
Dget_float.pass.cpp42 const char str[] = "123"; in main() local
47 f.get(input_iterator<const char*>(str), in main()
48 input_iterator<const char*>(str+sizeof(str)), in main()
50 assert(iter.base() == str+sizeof(str)-1); in main()
55 const char str[] = "-123"; in main() local
58 f.get(input_iterator<const char*>(str), in main()
59 input_iterator<const char*>(str+sizeof(str)), in main()
61 assert(iter.base() == str+sizeof(str)-1); in main()
66 const char str[] = "123.5"; in main() local
69 f.get(input_iterator<const char*>(str), in main()
[all …]
/external/protobuf/src/google/protobuf/util/internal/
Djson_stream_parser_test.cc163 StringPiece str = "true"; in TEST_F() local
164 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
166 DoTest(str, i); in TEST_F()
171 StringPiece str = "false"; in TEST_F() local
172 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
174 DoTest(str, i); in TEST_F()
179 StringPiece str = "null"; in TEST_F() local
180 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
182 DoTest(str, i); in TEST_F()
188 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/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_stacktrace_printer_test.cpp19 InternalScopedString str(128); in TEST() local
20 RenderSourceLocation(&str, "/dir/file.cc", 10, 5, false, ""); in TEST()
21 EXPECT_STREQ("/dir/file.cc:10:5", str.data()); in TEST()
23 str.clear(); in TEST()
24 RenderSourceLocation(&str, "/dir/file.cc", 11, 0, false, ""); in TEST()
25 EXPECT_STREQ("/dir/file.cc:11", str.data()); in TEST()
27 str.clear(); in TEST()
28 RenderSourceLocation(&str, "/dir/file.cc", 0, 0, false, ""); in TEST()
29 EXPECT_STREQ("/dir/file.cc", str.data()); in TEST()
31 str.clear(); in TEST()
[all …]
/external/harfbuzz_ng/src/
Dtest-number.cc35 const char str[] = "123"; in main() local
36 const char *pp = str; in main()
37 const char *end = str + 3; in main()
42 assert (pp - str == 3); in main()
48 const char str[] = "123"; in main() local
49 const char *pp = str; in main()
50 const char *end = str + strlen (str); in main()
55 assert (pp - str == 3); in main()
61 const char str[] = "12F"; in main() local
62 const char *pp = str; in main()
[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(*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/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/llvm-project/lldb/tools/debugserver/source/
DDNBRegisterInfo.cpp45 char str[1024]; in Dump() local
47 char *end = str + sizeof(str); in Dump()
51 snprintf(str, sizeof(str), "%s", in Dump()
55 snprintf(str, sizeof(str), "0x%2.2x", value.uint8); in Dump()
58 snprintf(str, sizeof(str), "0x%4.4x", value.uint16); in Dump()
61 snprintf(str, sizeof(str), "0x%8.8x", value.uint32); in Dump()
64 snprintf(str, sizeof(str), "0x%16.16llx", value.uint64); in Dump()
67 snprintf(str, sizeof(str), "0x%16.16llx%16.16llx", value.v_uint64[0], in Dump()
71 strlcpy(str, "0x", 3); in Dump()
72 pos = str + 2; in Dump()
[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/libtextclassifier/native/utils/strings/
Dstringpiece_test.cc44 StringPiece str("hello there!"); in TEST() local
45 EXPECT_TRUE(ConsumePrefix(&str, "hello ")); in TEST()
46 EXPECT_EQ(str.ToString(), "there!"); in TEST()
47 EXPECT_TRUE(ConsumePrefix(&str, "there")); in TEST()
48 EXPECT_EQ(str.ToString(), "!"); in TEST()
49 EXPECT_FALSE(ConsumePrefix(&str, "!!")); in TEST()
50 EXPECT_TRUE(ConsumePrefix(&str, "")); in TEST()
51 EXPECT_TRUE(ConsumePrefix(&str, "!")); in TEST()
52 EXPECT_EQ(str.ToString(), ""); in TEST()
53 EXPECT_TRUE(ConsumePrefix(&str, "")); in TEST()
[all …]

12345678910>>...490