Beispiel #1
0
        // Skip a Html entity (eg: &)
        public bool SkipHtmlEntity(ref string entity)
        {
            int savepos = position;

            if (!Utils.SkipHtmlEntity(str, ref pos, ref entity))
            {
                return(false);
            }
            if (pos > end)
            {
                pos = savepos;
                return(false);
            }
            return(true);
        }
Beispiel #2
0
        // Skip a Html entity (eg: &)
        public bool SkipHtmlEntity(ref string entity)
        {
            int savepos = Position;

            if (!Utils.SkipHtmlEntity(this._str, ref _pos, ref entity))
            {
                return(false);
            }
            if (_pos > _end)
            {
                _pos = savepos;
                return(false);
            }
            return(true);
        }
        // Skip a Html entity (eg: &)
        public bool SkipHtmlEntity(ref string entity)
        {
            var savePosition = Position;

            if (!Utils.SkipHtmlEntity(Input, ref _pos, ref entity))
            {
                return(false);
            }
            if (_pos <= _end)
            {
                return(true);
            }
            _pos = savePosition;
            return(false);
        }