diff options
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; |