diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2025-01-04 12:02:45 -0600 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2025-01-04 12:02:45 -0600 |
commit | 1d357adfa19725ee69fb267a363f1fd217b1272f (patch) | |
tree | 8d8710ba8ba7dff0b3da6b073fbb94f1a7b03ec5 /include/fud_string_view.hpp | |
parent | 0b400af9519444deef4cc6ad2c43c30e2092ab4f (diff) |
Diffstat (limited to 'include/fud_string_view.hpp')
-rw-r--r-- | include/fud_string_view.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/fud_string_view.hpp b/include/fud_string_view.hpp index d8f67ba..f71919d 100644 --- a/include/fud_string_view.hpp +++ b/include/fud_string_view.hpp @@ -129,6 +129,11 @@ struct StringView { return m_data + m_length; } + /** \brief Checks if one past the length is the null terminator character. + * + * \par WARNING: This function may invoke UB if the pointer to data plus its + * length does not belong to the data sequence. + */ [[nodiscard]] bool nullTerminated() const; [[nodiscard]] bool utf8Valid() const; |