diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2025-03-30 23:08:43 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2025-03-30 23:08:43 -0500 |
commit | cb9fa588ba8144fcdd52ba4b83d69d93fb18066f (patch) | |
tree | 214574ca68c1551ec76e7fbb9e0263793180231d /include/fud_string.hpp | |
parent | 1d357adfa19725ee69fb267a363f1fd217b1272f (diff) |
Add hash map.
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(); |