mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-09-11 13:46:27 -05:00
Implement NGC service (#5681)
* Implement NGC service * Use raw byte arrays instead of string for _wordSeparators * Silence IDE0230 for _wordSeparators * Try to silence warning about _rangeValuesCount not being read on SparseSet * Make AcType enum private * Add abstract methods and one TODO that I forgot * PR feedback * More PR feedback * More PR feedback
This commit is contained in:
24
src/Ryujinx.Horizon/Sdk/Ngc/Detail/MatchDelimitedState.cs
Normal file
24
src/Ryujinx.Horizon/Sdk/Ngc/Detail/MatchDelimitedState.cs
Normal file
@@ -0,0 +1,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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user