|
| constexpr | FixedString ()=default |
| |
| constexpr | FixedString (const char(&str)[N]) |
| |
| constexpr | ~FixedString ()=default |
| |
| constexpr const char * | c_str () const |
| |
| constexpr void | append (const char *str) |
| |
| constexpr void | append (char c) |
| |
| constexpr void | append (char c, size_t count) |
| |
| constexpr void | append (std::string_view sv) |
| |
| constexpr std::string_view | view () const |
| |
| constexpr | operator std::string_view () const |
| |
| constexpr size_t | length () const |
| |
| constexpr std::optional< size_t > | find (char c, size_t start=0) const |
| |
| constexpr std::optional< size_t > | find_first_of (const char *chars, size_t start=0) const |
| |
| constexpr std::string_view | get_next_word (size_t pos) const |
| | Get the next word from the string starting at position pos.
|
| |
template<size_t N>
struct XGetOpt::Helpers::FixedString< N >
A fixed-size string class for compile-time string manipulation.
- Template Parameters
-
| N | The maximum size of the string (including NUL terminator) |