8#ifndef HPP_ALIB_STRINGS_UTIL_TOKEN
9#define HPP_ALIB_STRINGS_UTIL_TOKEN 1
11#if !defined(HPP_ALIB) && !defined(ALIB_DOX)
15#if !defined (HPP_ALIB_STRINGS_SUBSTRING)
19#if !defined (HPP_ALIB_STRINGS_LOCALSTRING)
23#if ALIB_CAMP && !defined(HPP_ALIB_LANG_CAMP)
27#if ALIB_BOXING && !defined(HPP_ALIB_BOXING_BOXING)
32namespace alib {
namespace strings::util {
252 int8_t minLength3= -1, int8_t minLength4= -1, int8_t minLength5= -1,
253 int8_t minLength6= -1, int8_t minLength7= -1 );
269 Define( definition, separator );
314 "Error in token definition. Use DbgGetError in debug-compilations!" )
330 "Error {} in definition of token {!Q}. "
331 "Use DbgGetError in debug-compilations!",
337 "\". Use DbgGetError in debug-compilations!" )
420 #if ALIB_ENUMS && ALIB_CAMP
421 #if defined(ALIB_DOX)
462 const NString& resourceCategory,
471 const NString& resourceCategory,
481 #if defined(ALIB_DOX)
518 target,
ALIB_DBG(dbgSizeVerifier,) outerSeparator, innerSeparator );
545namespace alib {
namespace strings {
547 namespace APPENDABLES {
resources::ResourcePool & GetResourcePool()
NCString ResourceCategory
ALIB_API void detectFormat()
DbgDefinitionError DbgGetError()
lang::Case Sensitivity() const
static void LoadResourcedTokens(lang::Camp &module, const NString &resourceName, strings::util::Token *target, int dbgSizeVerifier, character outerSeparator=',', character innerSeparator=' ')
static constexpr Formats ignoreCase
const String & GetRawName() const
Token(const String &definition, character separator=';')
Formats GetFormat() const
ALIB_API void Define(const String &definition, character separator=';')
@ CamelCase
UpperCamelCase or lowerCamelCase.
@ SnakeCase
snake_case using underscores.
@ Normal
Normal, optionally abbreviated words.
@ KebabCase
kebab-case using hyphens.
static ALIB_API void LoadResourcedTokens(lang::resources::ResourcePool &resourcePool, const NString &resourceCategory, const NString &resourceName, strings::util::Token *target, int dbgSizeVerifier, character outerSeparator=',', character innerSeparator=' ')
@ ErrorReadingSensitivity
Sensitivity value not found.
@ TooManyMinLengthsGiven
A maximum of 7 minimum length values was exceeded.
@ EmptyName
No token name found.
@ ZeroMinLengthAndNotLastCamelHump
@ ErrorReadingMinLengths
Error parsing the list of minimum lengths.
@ DefinitionStringNotConsumed
The definition string was not completely consumed.
@ MinLenExceedsSegmentLength
int8_t GetMinLength(int idx) const
ALIB_API bool Match(const String &needle)
#define ALIB_WARNINGS_RESTORE
#define ALIB_BOXING_VTABLE_DECLARE(TMapped, Identifier)
#define ALIB_ASSERT_ERROR(cond,...)
#define ALIB_WARNINGS_ALLOW_UNSAFE_BUFFER_USAGE
#define ALIB_REL_DBG(releaseCode,...)
NLocalString< 128 > NString128
Type alias name for TLocalString<nchar,128> .
NLocalString< 64 > NString64
Type alias name for TLocalString<nchar,64> .
NLocalString< 256 > NString256
Type alias name for TLocalString<nchar,256> .
characters::character character
Type alias in namespace alib.
ALIB_API void operator()(AString &target, const strings::util::Token &src)