![]() |
ToyGine2 26.2.0
Game Engine for retro consoles
|
Shared compile-time validation for format patterns using {} and {N} placeholders.
More...
Go to the source code of this file.
Namespaces | |
| namespace | toy |
| Root namespace containing all engine modules. | |
Enumerations | |
| enum class | toy::FormatPatternValidationError { toy::FormatPatternValidationError::none , toy::FormatPatternValidationError::unmatchedBrace , toy::FormatPatternValidationError::invalidContent , toy::FormatPatternValidationError::mixedPlaceholders , toy::FormatPatternValidationError::argCountMismatch , toy::FormatPatternValidationError::indexOutOfRange } |
| Result of validating a format pattern against an expected argument count. More... | |
Functions | |
| constexpr FormatPatternValidationError | toy::validateFormatPattern (const CStringView &string, size_t argCount) noexcept |
Validates auto-indexed {} and positional {N} placeholders for argCount arguments. | |
Shared compile-time validation for format patterns using {} and {N} placeholders.
Declares toy::FormatPatternValidationError and toy::validateFormatPattern() used by toy::FormatString and runtime formatting APIs.