Update impl of DN_Str8Is

This commit is contained in:
2026-07-14 21:55:46 +10:00
parent b24e1b0eb8
commit 1e4ae8138e
4 changed files with 76 additions and 48 deletions
+8 -5
View File
@@ -1,4 +1,4 @@
// Generated by the DN single header generator 2026-07-14 16:32:48
// Generated by the DN single header generator 2026-07-14 21:55:22
#if !defined(DN_H)
#define DN_H
@@ -1401,10 +1401,13 @@ enum DN_Str8EqCase
DN_Str8EqCase_Insensitive,
};
enum DN_Str8IsAllType
typedef DN_U32 DN_Str8IsFlags;
enum DN_Str8IsFlags_
{
DN_Str8IsAllType_Digits,
DN_Str8IsAllType_Hex,
DN_Str8IsFlags_Digits = 1 << 0,
DN_Str8IsFlags_Hex = 1 << 1, // String consists of [0x|0X] + <[digit|A-F|a-f]...>
DN_Str8IsFlags_Lowercase = 1 << 2, // String is all lowercase characters (case-ness is only checked for ASCII, non-ASCII is permitted always)
DN_Str8IsFlags_Uppercase = 1 << 3, // String is all uppercase characters (case-ness is only checked for ASCII, non-ASCII is permitted always)
};
typedef struct DN_Str8BSplitResult DN_Str8BSplitResult;
@@ -5009,7 +5012,7 @@ DN_API void DN_Str8x1024AppendFmt
DN_API void DN_Str8x1024AppendFmtV (DN_Str8x1024 *str, DN_FMT_ATTRIB char const *fmt, va_list args);
DN_API DN_Str8x32 DN_Str8x32FromU64 (DN_U64 val, char separator);
DN_API bool DN_Str8IsAll (DN_Str8 string, DN_Str8IsAllType is_all);
DN_API bool DN_Str8Is (DN_Str8 string, DN_Str8IsFlags flags);
DN_API char * DN_Str8End (DN_Str8 string);
DN_API DN_Str8 DN_Str8Subset (DN_Str8 string, DN_USize offset, DN_USize count);
DN_API DN_Str8 DN_Str8Advance (DN_Str8 string, DN_USize amount);