Home
last modified time | relevance | path

Searched refs:strings_internal (Results 1 – 25 of 118) sorted by relevance

12345

/third_party/abseil-cpp/absl/strings/internal/
Dmemutil_test.cc45 if (absl::strings_internal::memcasecmp(match, pneedle, neelen) == 0) in memcasematch()
56 absl::strings_internal::memcat(a, 0, "hello", sizeof("hello") - 1); in TEST()
57 absl::strings_internal::memcat(a, 5, " there", sizeof(" there") - 1); in TEST()
59 EXPECT_EQ(absl::strings_internal::memcasecmp(a, "heLLO there", in TEST()
62 EXPECT_EQ(absl::strings_internal::memcasecmp(a, "heLLO therf", in TEST()
65 EXPECT_EQ(absl::strings_internal::memcasecmp(a, "heLLO therf", in TEST()
68 EXPECT_EQ(absl::strings_internal::memcasecmp(a, "whatever", 0), 0); in TEST()
70 char* p = absl::strings_internal::memdup("hello", 5); in TEST()
73 p = absl::strings_internal::memrchr("hello there", 'e', in TEST()
76 p = absl::strings_internal::memrchr("hello there", 'e', in TEST()
[all …]
Dchar_map_test.cc26 constexpr absl::strings_internal::Charmap everything_map =
27 ~absl::strings_internal::Charmap();
28 constexpr absl::strings_internal::Charmap nothing_map{};
31 const absl::strings_internal::Charmap also_nothing_map("", 0); in TEST()
41 const absl::strings_internal::Charmap symbols("&@#@^!@?", 5); in TEST()
53 const absl::strings_internal::Charmap lets("^abcde", 3); in TEST()
54 const absl::strings_internal::Charmap lets2("fghij\0klmnop", 10); in TEST()
55 const absl::strings_internal::Charmap lets3("fghij\0klmnop"); in TEST()
69 std::string Members(const absl::strings_internal::Charmap& m) { in Members()
90 constexpr absl::strings_internal::Charmap kEmpty = nothing_map; in TEST()
[all …]
Dostringstream_test.cc28 std::is_base_of<std::ostream, absl::strings_internal::OStringStream>(), in TEST()
34 absl::strings_internal::OStringStream strm(nullptr); in TEST()
40 absl::strings_internal::OStringStream strm(&s); in TEST()
47 absl::strings_internal::OStringStream strm(s.get()); in TEST()
54 absl::strings_internal::OStringStream strm(&s1); in TEST()
55 const absl::strings_internal::OStringStream& c_strm(strm); in TEST()
80 absl::strings_internal::OStringStream strm(&s); in TEST()
94 absl::strings_internal::OStringStream(&s) << ""; in TEST()
96 absl::strings_internal::OStringStream(&s) << 42; in TEST()
98 absl::strings_internal::OStringStream(&s) << 'x' << 'y'; in TEST()
Dutf8_test.cc40 &buf0[absl::strings_internal::EncodeUTF8Char(buf0, test.first)]; in TEST()
42 &buf1[absl::strings_internal::EncodeUTF8Char(buf1, test.first)]; in TEST()
55 EXPECT_LE(absl::strings_internal::EncodeUTF8Char(buf, 0x00110000), in TEST()
56 absl::strings_internal::kMaxEncodedUTF8Size); in TEST()
58 EXPECT_LE(absl::strings_internal::EncodeUTF8Char(buf2, -1), in TEST()
59 absl::strings_internal::kMaxEncodedUTF8Size); in TEST()
Dmemutil_benchmark.cc100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem()
109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium()
117 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemPathological()
128 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasemem()
137 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemcasememMedium()
145 benchmark::DoNotOptimize(absl::strings_internal::memcasemem( in BM_MemcasememPathological()
236 if (absl::strings_internal::memcasecmp(match, pneedle, neelen) == 0) in memcasematch()
247 absl::strings_internal::memmatch(kHaystack, kHaystackSize, "b", 1)); in BM_Memmatch()
256 absl::strings_internal::memmatch(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmatchMedium()
264 benchmark::DoNotOptimize(absl::strings_internal::memmatch( in BM_MemmatchPathological()
[all …]
Dcharconv_parse.cc298 strings_internal::ParsedFloat* out) { in ParseInfinityOrNan()
307 if (strings_internal::memcasecmp(begin + 1, "nf", 2) != 0) { in ParseInfinityOrNan()
310 out->type = strings_internal::FloatType::kInfinity; in ParseInfinityOrNan()
312 strings_internal::memcasecmp(begin + 3, "inity", 5) == 0) { in ParseInfinityOrNan()
324 if (strings_internal::memcasecmp(begin + 1, "an", 2) != 0) { in ParseInfinityOrNan()
327 out->type = strings_internal::FloatType::kNan; in ParseInfinityOrNan()
352 namespace strings_internal { namespace
355 strings_internal::ParsedFloat ParseFloat(const char* begin, const char* end, in ParseFloat()
357 strings_internal::ParsedFloat result; in ParseFloat()
486 result.type = strings_internal::FloatType::kNumber; in ParseFloat()
Dresize_uninitialized_test.cc57 absl::strings_internal::STLStringSupportsNontrashingResize(&rs)); in TEST()
60 absl::strings_internal::STLStringResizeUninitialized(&rs, 237); in TEST()
73 absl::strings_internal::STLStringSupportsNontrashingResize(&rus)); in TEST()
76 absl::strings_internal::STLStringResizeUninitialized(&rus, 237); in TEST()
Dchar_map_benchmark.cc23 absl::strings_internal::Charmap MakeBenchmarkMap() { in MakeBenchmarkMap()
24 absl::strings_internal::Charmap m; in MakeBenchmarkMap()
29 m = m | absl::strings_internal::Charmap::Char(i); in MakeBenchmarkMap()
38 const absl::strings_internal::Charmap benchmark_map = MakeBenchmarkMap(); in BM_Contains()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dmemutil_test.cc45 if (absl::strings_internal::memcasecmp(match, pneedle, neelen) == 0) in memcasematch()
56 absl::strings_internal::memcat(a, 0, "hello", sizeof("hello") - 1); in TEST()
57 absl::strings_internal::memcat(a, 5, " there", sizeof(" there") - 1); in TEST()
59 EXPECT_EQ(absl::strings_internal::memcasecmp(a, "heLLO there", in TEST()
62 EXPECT_EQ(absl::strings_internal::memcasecmp(a, "heLLO therf", in TEST()
65 EXPECT_EQ(absl::strings_internal::memcasecmp(a, "heLLO therf", in TEST()
68 EXPECT_EQ(absl::strings_internal::memcasecmp(a, "whatever", 0), 0); in TEST()
70 char* p = absl::strings_internal::memdup("hello", 5); in TEST()
73 p = absl::strings_internal::memrchr("hello there", 'e', in TEST()
76 p = absl::strings_internal::memrchr("hello there", 'e', in TEST()
[all …]
Dchar_map_test.cc26 constexpr absl::strings_internal::Charmap everything_map =
27 ~absl::strings_internal::Charmap();
28 constexpr absl::strings_internal::Charmap nothing_map{};
31 const absl::strings_internal::Charmap also_nothing_map("", 0); in TEST()
41 const absl::strings_internal::Charmap symbols("&@#@^!@?", 5); in TEST()
53 const absl::strings_internal::Charmap lets("^abcde", 3); in TEST()
54 const absl::strings_internal::Charmap lets2("fghij\0klmnop", 10); in TEST()
55 const absl::strings_internal::Charmap lets3("fghij\0klmnop"); in TEST()
69 std::string Members(const absl::strings_internal::Charmap& m) { in Members()
90 constexpr absl::strings_internal::Charmap kEmpty = nothing_map; in TEST()
[all …]
Dostringstream_test.cc28 std::is_base_of<std::ostream, absl::strings_internal::OStringStream>(), in TEST()
34 absl::strings_internal::OStringStream strm(nullptr); in TEST()
40 absl::strings_internal::OStringStream strm(&s); in TEST()
47 absl::strings_internal::OStringStream strm(s.get()); in TEST()
54 absl::strings_internal::OStringStream strm(&s1); in TEST()
55 const absl::strings_internal::OStringStream& c_strm(strm); in TEST()
80 absl::strings_internal::OStringStream strm(&s); in TEST()
94 absl::strings_internal::OStringStream(&s) << ""; in TEST()
96 absl::strings_internal::OStringStream(&s) << 42; in TEST()
98 absl::strings_internal::OStringStream(&s) << 'x' << 'y'; in TEST()
Dresize_uninitialized_test.cc61 absl::strings_internal::STLStringSupportsNontrashingResize(&rs)); in TEST()
64 absl::strings_internal::STLStringResizeUninitialized(&rs, 237); in TEST()
67 absl::strings_internal::STLStringResizeUninitializedAmortized(&rs, 1000); in TEST()
80 absl::strings_internal::STLStringSupportsNontrashingResize(&rus)); in TEST()
83 absl::strings_internal::STLStringResizeUninitialized(&rus, 237); in TEST()
86 absl::strings_internal::STLStringResizeUninitializedAmortized(&rus, 1000); in TEST()
97 absl::strings_internal::STLStringResizeUninitializedAmortized(&str, i); in TEST()
Dutf8_test.cc40 &buf0[absl::strings_internal::EncodeUTF8Char(buf0, test.first)]; in TEST()
42 &buf1[absl::strings_internal::EncodeUTF8Char(buf1, test.first)]; in TEST()
55 EXPECT_LE(absl::strings_internal::EncodeUTF8Char(buf, 0x00110000), in TEST()
56 absl::strings_internal::kMaxEncodedUTF8Size); in TEST()
58 EXPECT_LE(absl::strings_internal::EncodeUTF8Char(buf2, -1), in TEST()
59 absl::strings_internal::kMaxEncodedUTF8Size); in TEST()
Dmemutil_benchmark.cc100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem()
109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium()
117 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemPathological()
128 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasemem()
137 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemcasememMedium()
145 benchmark::DoNotOptimize(absl::strings_internal::memcasemem( in BM_MemcasememPathological()
236 if (absl::strings_internal::memcasecmp(match, pneedle, neelen) == 0) in memcasematch()
247 absl::strings_internal::memmatch(kHaystack, kHaystackSize, "b", 1)); in BM_Memmatch()
256 absl::strings_internal::memmatch(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmatchMedium()
264 benchmark::DoNotOptimize(absl::strings_internal::memmatch( in BM_MemmatchPathological()
[all …]
Dcharconv_parse.cc298 strings_internal::ParsedFloat* out) { in ParseInfinityOrNan()
307 if (strings_internal::memcasecmp(begin + 1, "nf", 2) != 0) { in ParseInfinityOrNan()
310 out->type = strings_internal::FloatType::kInfinity; in ParseInfinityOrNan()
312 strings_internal::memcasecmp(begin + 3, "inity", 5) == 0) { in ParseInfinityOrNan()
324 if (strings_internal::memcasecmp(begin + 1, "an", 2) != 0) { in ParseInfinityOrNan()
327 out->type = strings_internal::FloatType::kNan; in ParseInfinityOrNan()
352 namespace strings_internal { namespace
355 strings_internal::ParsedFloat ParseFloat(const char* begin, const char* end, in ParseFloat()
357 strings_internal::ParsedFloat result; in ParseFloat()
486 result.type = strings_internal::FloatType::kNumber; in ParseFloat()
Dchar_map_benchmark.cc23 absl::strings_internal::Charmap MakeBenchmarkMap() { in MakeBenchmarkMap()
24 absl::strings_internal::Charmap m; in MakeBenchmarkMap()
29 m = m | absl::strings_internal::Charmap::Char(i); in MakeBenchmarkMap()
38 const absl::strings_internal::Charmap benchmark_map = MakeBenchmarkMap(); in BM_Contains()
/third_party/abseil-cpp/absl/strings/
Dstr_join.h102 inline strings_internal::AlphaNumFormatterImpl AlphaNumFormatter() { in AlphaNumFormatter()
103 return strings_internal::AlphaNumFormatterImpl(); in AlphaNumFormatter()
109 inline strings_internal::StreamFormatterImpl StreamFormatter() { in StreamFormatter()
110 return strings_internal::StreamFormatterImpl(); in StreamFormatter()
119 inline strings_internal::PairFormatterImpl<FirstFormatter, SecondFormatter>
121 return strings_internal::PairFormatterImpl<FirstFormatter, SecondFormatter>( in PairFormatter()
127 inline strings_internal::PairFormatterImpl<
128 strings_internal::AlphaNumFormatterImpl,
129 strings_internal::AlphaNumFormatterImpl>
141 strings_internal::DereferenceFormatterImpl<Formatter> DereferenceFormatter( in DereferenceFormatter()
[all …]
Dstr_split.h222 namespace strings_internal {
292 inline strings_internal::MaxSplitsImpl<
293 typename strings_internal::SelectDelimiter<Delimiter>::type>
296 typename strings_internal::SelectDelimiter<Delimiter>::type DelimiterType;
297 return strings_internal::MaxSplitsImpl<DelimiterType>(
491 strings_internal::Splitter<
492 typename strings_internal::SelectDelimiter<Delimiter>::type, AllowEmpty>
493 StrSplit(strings_internal::ConvertibleToStringView text, Delimiter d) {
495 typename strings_internal::SelectDelimiter<Delimiter>::type;
496 return strings_internal::Splitter<DelimiterType, AllowEmpty>(
[all …]
Dcharconv.cc285 bool HandleEdgeCase(const strings_internal::ParsedFloat& input, bool negative, in HandleEdgeCase()
287 if (input.type == strings_internal::FloatType::kNan) { in HandleEdgeCase()
309 if (input.type == strings_internal::FloatType::kInfinity) { in HandleEdgeCase()
430 const strings_internal::ParsedFloat& parsed_decimal) { in MustRoundUp()
435 absl::strings_internal::BigUnsigned<84> exact_mantissa; in MustRoundUp()
449 absl::strings_internal::BigUnsigned<84>& lhs = exact_mantissa; in MustRoundUp()
453 absl::strings_internal::BigUnsigned<84> rhs(guess_mantissa); in MustRoundUp()
466 absl::strings_internal::BigUnsigned<84> rhs = in MustRoundUp()
467 absl::strings_internal::BigUnsigned<84>::FiveToTheNth(-exact_exponent); in MustRoundUp()
519 const strings_internal::ParsedFloat& parsed_hex) { in CalculateFromParsedHexadecimal()
[all …]
Dstr_replace.cc21 namespace strings_internal { namespace
31 std::vector<strings_internal::ViableSubstitution>* subs_ptr, in ApplySubstitutions()
72 strings_internal::FixedMapping replacements) { in StrReplaceAll()
73 return StrReplaceAll<strings_internal::FixedMapping>(s, replacements); in StrReplaceAll()
76 int StrReplaceAll(strings_internal::FixedMapping replacements, in StrReplaceAll()
78 return StrReplaceAll<strings_internal::FixedMapping>(replacements, target); in StrReplaceAll()
Dstr_cat.cc100 absl::strings_internal::STLStringResizeUninitialized(&result, in StrCat()
112 strings_internal::STLStringResizeUninitialized( in StrCat()
126 strings_internal::STLStringResizeUninitialized( in StrCat()
138 namespace strings_internal { namespace
145 strings_internal::STLStringResizeUninitialized(&result, total_size); in CatPieces()
177 strings_internal::STLStringResizeUninitialized(dest, total_size); in AppendPieces()
202 strings_internal::STLStringResizeUninitialized( in StrAppend()
217 strings_internal::STLStringResizeUninitialized( in StrAppend()
234 strings_internal::STLStringResizeUninitialized( in StrAppend()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dstr_join.h102 inline strings_internal::AlphaNumFormatterImpl AlphaNumFormatter() { in AlphaNumFormatter()
103 return strings_internal::AlphaNumFormatterImpl(); in AlphaNumFormatter()
109 inline strings_internal::StreamFormatterImpl StreamFormatter() { in StreamFormatter()
110 return strings_internal::StreamFormatterImpl(); in StreamFormatter()
119 inline strings_internal::PairFormatterImpl<FirstFormatter, SecondFormatter>
121 return strings_internal::PairFormatterImpl<FirstFormatter, SecondFormatter>( in PairFormatter()
127 inline strings_internal::PairFormatterImpl<
128 strings_internal::AlphaNumFormatterImpl,
129 strings_internal::AlphaNumFormatterImpl>
141 strings_internal::DereferenceFormatterImpl<Formatter> DereferenceFormatter( in DereferenceFormatter()
[all …]
Dstr_split.h222 namespace strings_internal {
292 inline strings_internal::MaxSplitsImpl<
293 typename strings_internal::SelectDelimiter<Delimiter>::type>
296 typename strings_internal::SelectDelimiter<Delimiter>::type DelimiterType;
297 return strings_internal::MaxSplitsImpl<DelimiterType>(
497 strings_internal::Splitter<
498 typename strings_internal::SelectDelimiter<Delimiter>::type, AllowEmpty,
500 StrSplit(strings_internal::ConvertibleToStringView text, Delimiter d) {
502 typename strings_internal::SelectDelimiter<Delimiter>::type;
503 return strings_internal::Splitter<DelimiterType, AllowEmpty,
[all …]
Dcharconv.cc285 bool HandleEdgeCase(const strings_internal::ParsedFloat& input, bool negative, in HandleEdgeCase()
287 if (input.type == strings_internal::FloatType::kNan) { in HandleEdgeCase()
309 if (input.type == strings_internal::FloatType::kInfinity) { in HandleEdgeCase()
430 const strings_internal::ParsedFloat& parsed_decimal) { in MustRoundUp()
435 absl::strings_internal::BigUnsigned<84> exact_mantissa; in MustRoundUp()
449 absl::strings_internal::BigUnsigned<84>& lhs = exact_mantissa; in MustRoundUp()
453 absl::strings_internal::BigUnsigned<84> rhs(guess_mantissa); in MustRoundUp()
466 absl::strings_internal::BigUnsigned<84> rhs = in MustRoundUp()
467 absl::strings_internal::BigUnsigned<84>::FiveToTheNth(-exact_exponent); in MustRoundUp()
519 const strings_internal::ParsedFloat& parsed_hex) { in CalculateFromParsedHexadecimal()
[all …]
Dstr_replace.cc21 namespace strings_internal { namespace
31 std::vector<strings_internal::ViableSubstitution>* subs_ptr, in ApplySubstitutions()
72 strings_internal::FixedMapping replacements) { in StrReplaceAll()
73 return StrReplaceAll<strings_internal::FixedMapping>(s, replacements); in StrReplaceAll()
76 int StrReplaceAll(strings_internal::FixedMapping replacements, in StrReplaceAll()
78 return StrReplaceAll<strings_internal::FixedMapping>(replacements, target); in StrReplaceAll()

12345