mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Move Flag_To_Letter to core:text/regex/common
This commit is contained in:
@@ -25,3 +25,14 @@ Flag :: enum u8 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Flags :: bit_set[Flag; 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 = '-',
|
||||||
|
}
|
||||||
|
|||||||
@@ -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.
|
Create a regular expression from a string pattern and a set of flags.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user