Commit 8e2bb104 authored by Marco Bubke's avatar Marco Bubke

Sqlite: Add endsWith to UtfString

Change-Id: I82ea54a1e23625690192a967b5f33451cdc199af
Reviewed-by: default avatarNikolai Kosjar <>
parent 26cfe244
......@@ -153,6 +153,11 @@ bool Utf8String::startsWith(char character) const
return byteArray.startsWith(character);
bool Utf8String::endsWith(const Utf8String &text) const
return byteArray.endsWith(text.byteArray);
bool Utf8String::isEmpty() const
return byteArray.isEmpty();
......@@ -82,6 +82,7 @@ public:
bool startsWith(const Utf8String &text) const;
bool startsWith(const char *text) const;
bool startsWith(char character) const;
bool endsWith(const Utf8String &text) const;
bool isEmpty() const;
bool hasContent() const;
......@@ -176,6 +176,13 @@ TEST(Utf8, StartsWith)
TEST(Utf8, EndsWith)
Utf8String text(Utf8StringLiteral("/my/path"));
TEST(Utf8, Clear)
Utf8String text(Utf8StringLiteral("$column"));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment