Move Flag_To_Letter to core:text/regex/common

This commit is contained in:
Feoramund
2024-08-04 18:42:46 -04:00
parent d3a51e208d
commit babdc432e9
2 changed files with 11 additions and 11 deletions
+11
View File
@@ -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 = '-',
}
-11
View File
@@ -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.