aboutsummaryrefslogtreecommitdiff
path: root/core/text/regex/common/common.odin
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-08-04 18:42:46 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-08-04 18:56:25 -0400
commitbabdc432e963f2c6456b0d85102419c526600718 (patch)
treefd37ef6264430f13a2a11eb09fd5e9fb4e0d30ef /core/text/regex/common/common.odin
parentd3a51e208d01d2ab59067018a219340d42a228fa (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.odin11
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 = '-',
+}