summaryrefslogtreecommitdiff
path: root/libutils/String16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libutils/String16.cpp')
-rw-r--r--libutils/String16.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libutils/String16.cpp b/libutils/String16.cpp
index 6a5273ff2..65396caca 100644
--- a/libutils/String16.cpp
+++ b/libutils/String16.cpp
@@ -345,6 +345,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();