1
- --- a/base/libs/androidfw/include/androidfw/StringPiece.h 2022-09-24 10:22:22.808291321 +0800
2
- +++ b/base/libs/androidfw/include/androidfw/StringPiece.h 2022-09-24 10:20:04.808277573 +0800
3
- @@ -68,13 +68,19 @@
4
- size_t size() const;
5
- bool empty() const;
6
- std::basic_string<TChar> to_string() const;
7
- +
8
- bool contains(const BasicStringPiece<TChar>& rhs) const;
9
- int compare(const BasicStringPiece<TChar>& rhs) const;
10
- bool operator<(const BasicStringPiece<TChar>& rhs) const;
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 {
11
20
bool operator>(const BasicStringPiece<TChar>& rhs) const;
12
21
bool operator==(const BasicStringPiece<TChar>& rhs) const;
13
22
bool operator!=(const BasicStringPiece<TChar>& rhs) const;
14
- -
15
23
+ // for std::basic_string
16
24
+ bool operator<(const std::basic_string<TChar>& rhs) const;
17
25
+ bool operator>(const std::basic_string<TChar>& rhs) const;
18
26
+ bool operator==(const std::basic_string<TChar>& rhs) const;
19
27
+ bool operator!=(const std::basic_string<TChar>& rhs) const;
20
- +
28
+
21
29
const_iterator begin() const;
22
30
const_iterator end() const;
23
-
24
- @@ -256,6 +262,26 @@
31
+ @@ -256,6 +261,26 @@ inline bool BasicStringPiece<TChar>::operator!=(const BasicStringPiece<TChar>& r
32
+ return compare(rhs) != 0;
25
33
}
26
34
27
- + template <typename TChar>
35
+ + template <typename TChar>
28
36
+ inline bool BasicStringPiece<TChar>::operator<(const std::basic_string<TChar>& rhs) const {
29
37
+ return compare(BasicStringPiece(rhs)) < 0;
30
38
+ }
44
52
+ return compare(BasicStringPiece(rhs)) != 0;
45
53
+ }
46
54
+
47
- template <typename TChar>
55
+ template <typename TChar>
48
56
inline typename BasicStringPiece<TChar>::const_iterator BasicStringPiece<TChar>::begin() const {
49
- return data_;
50
- }
57
+ return data_;
0 commit comments