diff options
Autocommit at 25.04.2022 @ 17:22
1 files changed, 8 insertions, 4 deletions
| -rw-r--r-- | src/String/String.cpp | 12 |
diff --git a/src/String/String.cpp b/src/String/String.cpp index 5169146..5cd8ca3 100644 --- a/src/String/String.cpp +++ b/src/String/String.cpp @@ -13,10 +13,6 @@ void String::copyFrom(const String& other) { length = other.length; } -void String::moveFrom(String&& other) { - -} - /* Public */ String::String(const char* str) { @@ -58,3 +54,11 @@ String& String::operator=(String&& other) { } return *this; } + +int String::compare(const String& other) { + return strcmp(str, other.str); +} + +char String::operator[](unsigned index) { + return str[index]; +} |
