diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-08-04 18:42:46 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-08-04 18:56:25 -0400 |
| commit | babdc432e963f2c6456b0d85102419c526600718 (patch) | |
| tree | fd37ef6264430f13a2a11eb09fd5e9fb4e0d30ef /core/text/regex/common/common.odin | |
| parent | d3a51e208d01d2ab59067018a219340d42a228fa (diff) | |
Move `Flag_To_Letter` to `core:text/regex/common`
Diffstat (limited to 'core/text/regex/common/common.odin')
| -rw-r--r-- | core/text/regex/common/common.odin | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/text/regex/common/common.odin b/core/text/regex/common/common.odin index f401658cb..1169bb3d4 100644 --- a/core/text/regex/common/common.odin +++ b/core/text/regex/common/common.odin @@ -25,3 +25,14 @@ Flag :: enum u8 { } Flags :: bit_set[Flag; u8] + +@(rodata) +Flag_To_Letter := #sparse[Flag]u8 { + .Global = 'g', + .Multiline = 'm', + .Case_Insensitive = 'i', + .Ignore_Whitespace = 'x', + .Unicode = 'u', + .No_Capture = 'n', + .No_Optimization = '-', +} |