Home
last modified time | relevance | path

Searched refs:desired_length (Results 1 – 8 of 8) sorted by relevance

/external/icing/icing/util/
Di18n-utils.cc105 int SafeTruncateUtf8Length(const char* str, int desired_length) { in SafeTruncateUtf8Length() argument
106 while (desired_length > 0) { in SafeTruncateUtf8Length()
107 if (IsLeadUtf8Byte(str[desired_length])) { in SafeTruncateUtf8Length()
110 --desired_length; in SafeTruncateUtf8Length()
112 return desired_length; in SafeTruncateUtf8Length()
Di18n-utils.h58 int SafeTruncateUtf8Length(const char* str, int desired_length);
/external/abseil-cpp/absl/strings/
Dstr_split_benchmark.cc29 std::string MakeTestString(int desired_length) { in MakeTestString() argument
31 std::string test(desired_length * kAverageValueLen, 'x'); in MakeTestString()
49 std::string MakeMultiDelimiterTestString(int desired_length) { in MakeMultiDelimiterTestString() argument
51 std::string test(desired_length * kAverageValueLen, 'x'); in MakeMultiDelimiterTestString()
/external/libtextclassifier/abseil-cpp/absl/strings/
Dstr_split_benchmark.cc29 std::string MakeTestString(int desired_length) { in MakeTestString() argument
31 std::string test(desired_length * kAverageValueLen, 'x'); in MakeTestString()
49 std::string MakeMultiDelimiterTestString(int desired_length) { in MakeMultiDelimiterTestString() argument
51 std::string test(desired_length * kAverageValueLen, 'x'); in MakeMultiDelimiterTestString()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dstr_split_benchmark.cc29 std::string MakeTestString(int desired_length) { in MakeTestString() argument
31 std::string test(desired_length * kAverageValueLen, 'x'); in MakeTestString()
49 std::string MakeMultiDelimiterTestString(int desired_length) { in MakeMultiDelimiterTestString() argument
51 std::string test(desired_length * kAverageValueLen, 'x'); in MakeMultiDelimiterTestString()
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dstr_split_benchmark.cc29 std::string MakeTestString(int desired_length) { in MakeTestString() argument
31 std::string test(desired_length * kAverageValueLen, 'x'); in MakeTestString()
49 std::string MakeMultiDelimiterTestString(int desired_length) { in MakeMultiDelimiterTestString() argument
51 std::string test(desired_length * kAverageValueLen, 'x'); in MakeMultiDelimiterTestString()
/external/angle/third_party/abseil-cpp/absl/strings/
Dstr_split_benchmark.cc29 std::string MakeTestString(int desired_length) { in MakeTestString() argument
31 std::string test(desired_length * kAverageValueLen, 'x'); in MakeTestString()
49 std::string MakeMultiDelimiterTestString(int desired_length) { in MakeMultiDelimiterTestString() argument
51 std::string test(desired_length * kAverageValueLen, 'x'); in MakeMultiDelimiterTestString()
/external/openscreen/third_party/abseil/src/absl/strings/
Dstr_split_benchmark.cc29 std::string MakeTestString(int desired_length) { in MakeTestString() argument
31 std::string test(desired_length * kAverageValueLen, 'x'); in MakeTestString()
49 std::string MakeMultiDelimiterTestString(int desired_length) { in MakeMultiDelimiterTestString() argument
51 std::string test(desired_length * kAverageValueLen, 'x'); in MakeMultiDelimiterTestString()