CalDavSynchronizer.Conversions.Msft.HtmlCssParser.ParseWord C# (CSharp) Метод

ParseWord() приватный статический Метод

private static ParseWord ( string word, string styleValue, int &nextIndex ) : bool
word string
styleValue string
nextIndex int
Результат bool
        private static bool ParseWord(string word, string styleValue, ref int nextIndex)
        {
            ParseWhiteSpace(styleValue, ref nextIndex);

            for (int i = 0; i < word.Length; i++)
            {
                if (!(nextIndex + i < styleValue.Length && word[i] == styleValue[nextIndex + i]))
                {
                    return false;
                }
            }

            if (nextIndex + word.Length < styleValue.Length && Char.IsLetterOrDigit(styleValue[nextIndex + word.Length]))
            {
                return false;
            }

            nextIndex += word.Length;
            return true;
        }