|
FlatImage
A configurable Linux containerization system
|
Compile-time string container with fixed size. More...
#include <string.hpp>
Public Member Functions | |
| constexpr | static_string (const char(&str)[N]) |
| Constructs a static string from a string literal. | |
| constexpr | static_string ()=default |
| Default constructor. | |
| constexpr | operator const char * () const |
| Implicit conversion to C-style string. | |
| constexpr | operator std::string_view () const |
| Implicit conversion to string_view. | |
| constexpr size_t | size () const |
| Returns the size of the string (excluding null terminator) | |
| template<auto... Strs> | |
| constexpr auto | join () const noexcept |
| Concatenates this string with other static strings. | |
Public Attributes | |
| char | data [N] |
Compile-time string container with fixed size.
| N | Size of the string including null terminator |
Definition at line 34 of file string.hpp.
|
inlineconstexpr |
Constructs a static string from a string literal.
| str | String literal to copy |
Definition at line 42 of file string.hpp.
|
inlineconstexprnoexcept |
Concatenates this string with other static strings.
| Strs | Static strings to concatenate |
Definition at line 68 of file string.hpp.
|
inlineconstexpr |
Implicit conversion to C-style string.
Definition at line 51 of file string.hpp.
|
inlineconstexpr |
Implicit conversion to string_view.
Definition at line 54 of file string.hpp.
|
inlineconstexpr |
Returns the size of the string (excluding null terminator)
Definition at line 60 of file string.hpp.
| char ns_string::static_string< N >::data[N] |
Definition at line 36 of file string.hpp.