feat(string): add null-terminated byte string handling functions and the corresponding testing

This commit is contained in:
2024-09-20 22:53:15 +08:00
parent 5210db43b3
commit d137170ccb
5 changed files with 648 additions and 34 deletions

View File

@ -59,7 +59,7 @@ NAMESPACE_PRIVATE_END
/** Templated literal struct to allow selection of string literals based on the character type provided, and not on compiler switches. */
#define LITERAL(CharType, StringLiteral) NAMESPACE_PRIVATE::TLiteral<CharType>::Select(StringLiteral, WTEXT(StringLiteral), U8TEXT(StringLiteral), U16TEXT(StringLiteral), U32TEXT(StringLiteral))
/** Set of utility functions operating on a single character. Implemented based on ISO 30112 "i18n" */
/** Set of utility functions operating on a single character. Implemented based on ISO 30112 "i18n". */
template <CCharType T>
struct TChar
{