aboutsummaryrefslogtreecommitdiff
path: root/core/text
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
parentd3a51e208d01d2ab59067018a219340d42a228fa (diff)
Move `Flag_To_Letter` to `core:text/regex/common`
Diffstat (limited to 'core/text')
-rw-r--r--core/text/regex/common/common.odin11
-rw-r--r--core/text/regex/regex.odin11
2 files changed, 11 insertions, 11 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 = '-',
+}
diff --git a/core/text/regex/regex.odin b/core/text/regex/regex.odin
index 9da7e9246..a4bd4292e 100644
--- a/core/text/regex/regex.odin
+++ b/core/text/regex/regex.odin
@@ -36,17 +36,6 @@ Regular_Expression :: struct {
}
-@(rodata)
-Flag_To_Letter := #sparse[Flag]u8 {
- .Global = 'g',
- .Multiline = 'm',
- .Case_Insensitive = 'i',
- .Ignore_Whitespace = 'x',
- .Unicode = 'u',
- .No_Capture = 'n',
- .No_Optimization = '-',
-}
-
/*
Create a regular expression from a string pattern and a set of flags.