Mirror reflection library - Puddle compile-time layer 0.5.13
|
A compile time string of characters. More...
#include <puddle/doc/concepts.hpp>
Public Member Functions | |
const char * | c_str (void) const |
Returns a C-string. | |
Boolean | empty (void) const |
Testing for emptyness. | |
Integer | size (void) const |
Returns the size of the string. | |
Character | front (void) const |
Returns the first character in the string. | |
Character | at (Integer index) const |
Returns the character at the specified index . | |
template<int Index> | |
Character | at_c (void) const |
Returns the character at the specified Index . | |
Boolean | starts_with (CompileTimeString str) const |
Returns true if this string starts with the passed string. | |
Boolean | ends_with (CompileTimeString str) const |
Returns true if this string ends with the passed string. | |
Boolean | contains (CompileTimeString str) const |
Returns true if this string contains the passed string. | |
CompileTimeString | step_front (void) const |
Returns this string without the first character. | |
CompileTimeString | skip_front (Integer n) const |
Returns this string without the first n characters. | |
template<int N> | |
CompileTimeString | skip_front_c (void) const |
Returns this string without the first N characters. | |
CompileTimeString | head (Integer n) const |
Returns the first n characters from this string. | |
template<int N> | |
CompileTimeString | head_c (void) const |
Returns the first N characters from this string. | |
CompileTimeString | tail (Integer n) const |
Returns the last n characters from this string. | |
template<int N> | |
CompileTimeString | tail_c (void) const |
Returns the last N characters from this string. | |
CompileTimeString | find (CompileTimeString str) const |
Returns a substring starting with str or empty string. | |
Friends | |
Boolean | operator== (CompileTimeString, CompileTimeString) |
Equality comparison. | |
Boolean | operator!= (CompileTimeString, CompileTimeString) |
Nonequality comparison. | |
CompileTimeString | operator+ (CompileTimeString, CompileTimeString) |
Concatenation operator. |
A compile time string of characters.