diff options
author | Michael Wright <michaelwr@google.com> | 2016-05-16 15:06:22 +0100 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2016-05-16 15:06:22 +0100 |
commit | 2a9a993af99585af0bce6eca6d92c86370977a27 (patch) | |
tree | a91bec16022b9d29174f69418b206fe2a2af3e47 /libutils/String16.cpp | |
parent | a0c90085ecd2477e8ccdcc7155e92ab38a8e928c (diff) | |
parent | 8b452b876b90dcfff1dab9012b65b5e67c4531a4 (diff) |
Merge commit '8b452b876b90dcfff1dab9012b65b5e67c4531a4' into manual_merge_8b452b8
Change-Id: Iacdc2d521f669661b4979c03b0476512abdb37c7
Diffstat (limited to 'libutils/String16.cpp')
-rw-r--r-- | libutils/String16.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libutils/String16.cpp b/libutils/String16.cpp index 87eda1b35..ac12d8aa7 100644 --- a/libutils/String16.cpp +++ b/libutils/String16.cpp @@ -344,6 +344,11 @@ bool String16::startsWith(const char16_t* prefix) const return strncmp16(mString, prefix, ps) == 0; } +bool String16::contains(const char16_t* chrs) const +{ + return strstr16(mString, chrs) != nullptr; +} + status_t String16::makeLower() { const size_t N = size(); |