aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon/Sdk/Ngc/Detail/MatchDelimitedState.cs
blob: d9b82d422cff8119de10c790f3d7b6449007763f (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;
        }
    }
}