diff options
Diffstat (limited to 'include/fud_string.hpp')
-rw-r--r-- | include/fud_string.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/fud_string.hpp b/include/fud_string.hpp index 4b3dbe2..1d724f0 100644 --- a/include/fud_string.hpp +++ b/include/fud_string.hpp @@ -294,11 +294,11 @@ class String { /** \brief Returns the first character in the sequence if the length is * greater than zero. */ - [[nodiscard]] Option<utf8> front(); + [[nodiscard]] Option<utf8> front() const; /** \brief Returns the last character in the sequence if the length is * greater than zero. */ - [[nodiscard]] Option<utf8> back(); + [[nodiscard]] Option<utf8> back() const; /** \brief Append a character to the back of the string, growing it if necessary. */ FudStatus pushBack(char letter); @@ -338,7 +338,7 @@ class String { /** @copydoc String::drain(const char* source) */ DrainResult drain(StringView source); - [[nodiscard]] bool compare(const String& rhs) const; + [[nodiscard]] bool operator==(const String& rhs) const; FudStatus clear(); |