Пример #1
0
        public override bool IsMatch(ref PathReader pathReader)
        {
            var result = !_range.IsInRange(pathReader.CurrentText[0]);

            if (result)
            {
                pathReader.ConsumeInSegment(1);
            }

            return(result);
        }
        public override bool IsMatch(ref PathReader pathReader)
        {
            var c = pathReader.CurrentText[0];

            if (CharacterRangeSegment.IsAsciiUpper(c))
            {
                c = char.ToLowerInvariant(c);
            }

            var result = _range.IsInRange(c);

            if (result)
            {
                pathReader.ConsumeInSegment(1);
            }

            return(result);
        }