aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon/Sdk/Ngc/Detail/MatchDelimitedState.cs
blob: 309658198b7f09e36f2433572eb8e4b3c92875d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace Ryujinx.Horizon.Sdk.Ngc.Detail
{
    struct MatchDelimitedState
    {
        public bool Matched;
        public readonly bool PrevCharIsWordSeparator;
        public readonly bool NextCharIsWordSeparator;
        public readonly Sbv NoSeparatorMap;
        public readonly AhoCorasick DelimitedWordsTrie;

        public MatchDelimitedState(
            bool prevCharIsWordSeparator,
            bool nextCharIsWordSeparator,
            Sbv noSeparatorMap,
            AhoCorasick delimitedWordsTrie)
        {
            Matched = false;
            PrevCharIsWordSeparator = prevCharIsWordSeparator;
            NextCharIsWordSeparator = nextCharIsWordSeparator;
            NoSeparatorMap = noSeparatorMap;
            DelimitedWordsTrie = delimitedWordsTrie;
        }
    }
}