MarkdownDeep.StringScanner.SkipFootnoteID C# (CSharp) Method

SkipFootnoteID() public method

public SkipFootnoteID ( string &id ) : bool
id string
return bool
        public bool SkipFootnoteID(out string id)
        {
            int savepos = position;

            SkipLinespace();

            Mark();

            while (true)
            {
                char ch = current;
                if (char.IsLetterOrDigit(ch) || ch == '-' || ch == '_' || ch == ':' || ch == '.' || ch == ' ')
                    SkipForward(1);
                else
                    break;
            }

            if (position > mark)
            {
                id = Extract().Trim();
                if (!String.IsNullOrEmpty(id))
                {
                    SkipLinespace();
                    return true;
                }
            }

            position = savepos;
            id = null;
            return false;
        }