summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/src/KString.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dev/kernel/src/KString.cc')
-rw-r--r--dev/kernel/src/KString.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/dev/kernel/src/KString.cc b/dev/kernel/src/KString.cc
index c1a8db65..2f81ad3d 100644
--- a/dev/kernel/src/KString.cc
+++ b/dev/kernel/src/KString.cc
@@ -143,6 +143,18 @@ namespace Kernel
return true;
}
+ /// @note This is unsafe!!!
+ bool KStringBuilder::Equals(const Utf16Char* lhs, const Utf16Char* rhs)
+ {
+ for (Size index = 0; index[rhs] != 0; ++index)
+ {
+ if (rhs[index] != lhs[index])
+ return false;
+ }
+
+ return true;
+ }
+
bool KStringBuilder::Equals(const WideChar* lhs, const WideChar* rhs)
{
for (Size index = 0; rhs[index] != 0; ++index)