Home
last modified time | relevance | path

Searched refs:CharTraits (Results 1 – 16 of 16) sorted by relevance

/external/libchrome/base/strings/
Dchar_traits_unittest.cc12 static_assert(CharTraits<char>::compare("abc", "def", 3) == -1, ""); in TEST()
13 static_assert(CharTraits<char>::compare("def", "def", 3) == 0, ""); in TEST()
14 static_assert(CharTraits<char>::compare("ghi", "def", 3) == 1, ""); in TEST()
18 static_assert(CharTraits<char>::length("") == 0, ""); in TEST()
19 static_assert(CharTraits<char>::length("abc") == 3, ""); in TEST()
23 static_assert(CharTraits<char16_t>::compare(u"abc", u"def", 3) == -1, ""); in TEST()
24 static_assert(CharTraits<char16_t>::compare(u"def", u"def", 3) == 0, ""); in TEST()
25 static_assert(CharTraits<char16_t>::compare(u"ghi", u"def", 3) == 1, ""); in TEST()
29 static_assert(CharTraits<char16_t>::length(u"abc") == 3, ""); in TEST()
Dchar_traits.h21 struct CharTraits { struct
33 constexpr int CharTraits<T>::compare(const T* s1, in compare()
46 constexpr size_t CharTraits<T>::length(const T* s) noexcept { in length()
56 struct CharTraits<char> {
63 constexpr int CharTraits<char>::compare(const char* s1,
79 constexpr size_t CharTraits<char>::length(const char* s) noexcept {
Dstring_piece.h185 : ptr_(str), length_(!str ? 0 : CharTraits<value_type>::length(str)) {} in BasicStringPiece()
253 int r = CharTraits<value_type>::compare( in compare()
300 (CharTraits<value_type>::compare(this->ptr_, x.ptr_, x.length_) == 0)); in starts_with()
306 (CharTraits<value_type>::compare( in ends_with()
398 const int r = CharTraits<StringPiece::value_type>::compare(
421 return CharTraits<StringPiece16::value_type>::compare(x.data(), y.data(),
430 const int r = CharTraits<StringPiece16::value_type>::compare(
Dstring_util.cc731 using CharTraits = typename StringType::traits_type; in DoReplaceMatchesAfterOffset() typedef
756 CharTraits::copy(buffer + offset, replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset()
846 CharTraits::copy(buffer + write_offset, replace_with.data(), in DoReplaceMatchesAfterOffset()
857 CharTraits::move(buffer + write_offset, buffer + read_offset, length); in DoReplaceMatchesAfterOffset()
Dstring_piece.cc47 return CharTraits<StringPiece::value_type>::compare(x.data(), y.data(), in operator ==()
/external/protobuf/src/google/protobuf/io/
Dio_win32.cc80 struct CharTraits { struct
85 struct CharTraits<char> { struct
90 struct CharTraits<wchar_t> { struct
105 return CharTraits<char_type>::is_alpha(ch[0]) && ch[1] == ':'; in has_drive_letter()
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/test/
Dgoogletest-printers-test.cc711 template <typename Char, typename CharTraits>
712 std::basic_ostream<Char, CharTraits>& operator<<( in operator <<()
713 std::basic_ostream<Char, CharTraits>& os, in operator <<()
728 template <typename Char, typename CharTraits, typename T>
729 std::basic_ostream<Char, CharTraits>& operator<<( in operator <<()
730 std::basic_ostream<Char, CharTraits>& os, in operator <<()
749 template <typename Char, typename CharTraits, typename T>
750 std::basic_ostream<Char, CharTraits>& operator<<( in operator <<()
751 std::basic_ostream<Char, CharTraits>& os, in operator <<()
/external/googletest/googletest/test/
Dgoogletest-printers-test.cc943 template <typename Char, typename CharTraits>
944 std::basic_ostream<Char, CharTraits>& operator<<(
945 std::basic_ostream<Char, CharTraits>& os,
960 template <typename Char, typename CharTraits, typename T>
961 std::basic_ostream<Char, CharTraits>& operator<<(
962 std::basic_ostream<Char, CharTraits>& os,
981 template <typename Char, typename CharTraits, typename T>
982 std::basic_ostream<Char, CharTraits>& operator<<(
983 std::basic_ostream<Char, CharTraits>& os,
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/include/gtest/
Dgtest-printers.h230 template <typename Char, typename CharTraits, typename T>
231 ::std::basic_ostream<Char, CharTraits>& operator<<(
232 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
/external/libaom/libaom/third_party/googletest/src/googletest/include/gtest/
Dgtest-printers.h230 template <typename Char, typename CharTraits, typename T>
231 ::std::basic_ostream<Char, CharTraits> &operator<<(
232 ::std::basic_ostream<Char, CharTraits> &os, const T &x) {
/external/mesa3d/src/gtest/include/gtest/
Dgtest-printers.h231 template <typename Char, typename CharTraits, typename T>
232 ::std::basic_ostream<Char, CharTraits>& operator<<(
233 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
/external/llvm/utils/unittest/googletest/include/gtest/
Dgtest-printers.h198 template <typename Char, typename CharTraits, typename T>
199 ::std::basic_ostream<Char, CharTraits>& operator<<(
200 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
/external/llvm-project/llvm/utils/unittest/googletest/include/gtest/
Dgtest-printers.h203 template <typename Char, typename CharTraits, typename T>
204 ::std::basic_ostream<Char, CharTraits>& operator<<(
205 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/
Dgtest-printers.h231 template <typename Char, typename CharTraits, typename T>
232 ::std::basic_ostream<Char, CharTraits>& operator<<(
233 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
/external/fmtlib/test/gtest/
Dgtest.h9393 template <typename Char, typename CharTraits, typename T>
9394 ::std::basic_ostream<Char, CharTraits>& operator<<(
9395 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/test/gmock-1.8.0/gtest/
Dgtest.h10261 template <typename Char, typename CharTraits, typename T>
10262 ::std::basic_ostream<Char, CharTraits>& operator<<(
10263 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {