Esempio n. 1
0
        public bool CheckIfOnlyContainsValidPathAtomChars(out int characterWithError)
        {
            for (int i = 0; i < Length; i++)
            {
                if (!PathAtom.IsValidPathAtomChar(this[i]))
                {
                    characterWithError = i;
                    return(false);
                }
            }

            characterWithError = -1;
            return(true);
        }
Esempio n. 2
0
        public bool CheckIfOnlyContainsValidPathAtomChars(out int characterWithError)
        {
            int end = m_index + Length;

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

            characterWithError = -1;
            return(true);
        }