Beispiel #1
0
        public EvaluationResult CheckChars(int pos, bool firstInstructionWasJump, Instruction oneOfTheseMustSucceed, int offset)
        {
            if (pos <= 0)
            {
                return(EvaluationResult.Inconclusive);
            }

            var result       = CheckCharsInternalHelper(firstInstructionWasJump, pos, new bool[Context.Count]);
            var failedChars  = result.FailingCharacters[offset];
            var matchedChars = result.MatchingCharacters[offset];

            return(InstructionHelper.CharCheckResult(Context, oneOfTheseMustSucceed, failedChars, matchedChars));
        }
Beispiel #2
0
 public EvaluationResult CheckChars(OptimizationContext context, Instruction instruction, int offset)
 {
     return(InstructionHelper.CharCheckResult(context, instruction, FailingCharacters[offset], MatchingCharacters[offset]));
 }