mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
18 lines
699 B
C#
18 lines
699 B
C#
using System.Text.RegularExpressions;
|
|
|
|
namespace Flow.Launcher.Plugin.Calculator;
|
|
|
|
internal static partial class MainRegexHelper
|
|
{
|
|
[GeneratedRegex(@"[\(\)\[\]]", RegexOptions.Compiled)]
|
|
public static partial Regex GetRegBrackets();
|
|
|
|
[GeneratedRegex(@"-?[\d\.,]+", RegexOptions.Compiled)]
|
|
public static partial Regex GetNumberRegex();
|
|
|
|
[GeneratedRegex(@"\B(?=(\d{3})+(?!\d))", RegexOptions.Compiled)]
|
|
public static partial Regex GetThousandGroupRegex();
|
|
|
|
[GeneratedRegex(@"\bpow(\((?:[^()\[\]]|\((?<Depth>)|\)(?<-Depth>)|\[(?<Depth>)|\](?<-Depth>))*(?(Depth)(?!))\))", RegexOptions.Compiled | RegexOptions.RightToLeft)]
|
|
public static partial Regex GetPowRegex();
|
|
}
|