Пример #1
0
        public bool CheckIfOnlyContainsValidIdentifierAtomChars(out int characterWithError)
        {
            for (int i = 0; i < Length; i++)
            {
                if (!SymbolAtom.IsValidIdentifierAtomChar(this[i]))
                {
                    characterWithError = i;
                    return(false);
                }
            }

            characterWithError = -1;
            return(true);
        }
Пример #2
0
        public bool CheckIfOnlyContainsValidIdentifierAtomChars(out int characterWithError)
        {
            int end = m_index + Length;

            for (int i = m_index; i < end; i++)
            {
                if (!SymbolAtom.IsValidIdentifierAtomChar(m_value[i]))
                {
                    characterWithError = i;
                    return(false);
                }
            }

            characterWithError = -1;
            return(true);
        }