|
| 1 | +Submodule src/base contains modified content |
| 2 | +diff --git a/src/base/libs/androidfw/ResourceTypes.cpp b/src/base/libs/androidfw/ResourceTypes.cpp |
| 3 | +index cae2d0bc16b3..13c5f8fc84e8 100644 |
| 4 | +--- a/src/base/libs/androidfw/ResourceTypes.cpp |
| 5 | ++++ b/src/base/libs/androidfw/ResourceTypes.cpp |
| 6 | +@@ -43,7 +43,7 @@ |
| 7 | + #include <utils/String16.h> |
| 8 | + #include <utils/String8.h> |
| 9 | + |
| 10 | +-#ifdef __ANDROID__ |
| 11 | ++#if 0 |
| 12 | + #include <binder/TextOutput.h> |
| 13 | + |
| 14 | + #endif |
| 15 | +diff --git a/src/base/libs/androidfw/include/androidfw/StringPiece.h b/src/base/libs/androidfw/include/androidfw/StringPiece.h |
| 16 | +index 921877dc4982..27e27e1c2b94 100644 |
| 17 | +--- a/src/base/libs/androidfw/include/androidfw/StringPiece.h |
| 18 | ++++ b/src/base/libs/androidfw/include/androidfw/StringPiece.h |
| 19 | +@@ -75,6 +75,11 @@ class BasicStringPiece { |
| 20 | + bool operator>(const BasicStringPiece<TChar>& rhs) const; |
| 21 | + bool operator==(const BasicStringPiece<TChar>& rhs) const; |
| 22 | + bool operator!=(const BasicStringPiece<TChar>& rhs) const; |
| 23 | ++ // for std::basic_string |
| 24 | ++ bool operator<(const std::basic_string<TChar>& rhs) const; |
| 25 | ++ bool operator>(const std::basic_string<TChar>& rhs) const; |
| 26 | ++ bool operator==(const std::basic_string<TChar>& rhs) const; |
| 27 | ++ bool operator!=(const std::basic_string<TChar>& rhs) const; |
| 28 | + |
| 29 | + const_iterator begin() const; |
| 30 | + const_iterator end() const; |
| 31 | +@@ -256,6 +261,26 @@ inline bool BasicStringPiece<TChar>::operator!=(const BasicStringPiece<TChar>& r |
| 32 | + return compare(rhs) != 0; |
| 33 | + } |
| 34 | + |
| 35 | ++template <typename TChar> |
| 36 | ++inline bool BasicStringPiece<TChar>::operator<(const std::basic_string<TChar>& rhs) const { |
| 37 | ++ return compare(BasicStringPiece(rhs)) < 0; |
| 38 | ++} |
| 39 | ++ |
| 40 | ++template <typename TChar> |
| 41 | ++inline bool BasicStringPiece<TChar>::operator>(const std::basic_string<TChar>& rhs) const { |
| 42 | ++ return compare(BasicStringPiece(rhs)) > 0; |
| 43 | ++} |
| 44 | ++ |
| 45 | ++template <typename TChar> |
| 46 | ++inline bool BasicStringPiece<TChar>::operator==(const std::basic_string<TChar>& rhs) const { |
| 47 | ++ return compare(BasicStringPiece(rhs)) == 0; |
| 48 | ++} |
| 49 | ++ |
| 50 | ++template <typename TChar> |
| 51 | ++inline bool BasicStringPiece<TChar>::operator!=(const std::basic_string<TChar>& rhs) const{ |
| 52 | ++ return compare(BasicStringPiece(rhs)) != 0; |
| 53 | ++} |
| 54 | ++ |
| 55 | + template <typename TChar> |
| 56 | + inline typename BasicStringPiece<TChar>::const_iterator BasicStringPiece<TChar>::begin() const { |
| 57 | + return data_; |
0 commit comments