From babdc432e963f2c6456b0d85102419c526600718 Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Sun, 4 Aug 2024 18:42:46 -0400 Subject: [PATCH] Move `Flag_To_Letter` to `core:text/regex/common` --- core/text/regex/common/common.odin | 11 +++++++++++ core/text/regex/regex.odin | 11 ----------- 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.