ToyGine2 26.2.0
Game Engine for retro consoles
Loading...
Searching...
No Matches
format_pattern.hpp File Reference

Shared compile-time validation for format patterns using {} and {N} placeholders. More...

This graph shows which files directly or indirectly include this file:

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.

Detailed Description

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.

Note
Included by core.hpp; do not include this file directly.