#include <string>#include <algorithm>#include <cstdint>#include <cstdio>#include <cstring>#include <promeki/core/namespace.h>#include <promeki/core/util.h>#include <promeki/core/error.h>#include <promeki/core/sharedptr.h>#include <promeki/core/char.h>#include <promeki/core/stringdata.h>

Go to the source code of this file.
Classes | |
| class | String |
| Encoding-aware string class with copy-on-write semantics. More... | |
| class | String::CharIterator |
| Random-access iterator over characters (Char values). More... | |
| class | CompiledString< N > |
| Compile-time string literal with encoding detection and UTF-8 decode. More... | |
| class | CompiledCodepoints< Count > |
| Right-sized codepoint array extracted from a CompiledString. More... | |
Namespaces | |
| namespace | literals |
| User-defined literal for convenient String construction. | |
Macros | |
| #define | PROMEKI_STRING(str) |
| Compile-time optimized String from any string literal. | |
Functions | |
| String | operator+ (const char *lhs, const String &rhs) |
| Concatenation with a C string on the left-hand side. | |
See LICENSE file in the project root folder for license information.
| #define PROMEKI_STRING | ( | str | ) |
Compile-time optimized String from any string literal.
Encoding detection and UTF-8 decoding happen entirely at compile time via consteval. At runtime both paths are zero-copy:
No heap allocation, no memcpy, no runtime decode for either path.