SILUBS.ScriptureChecks.CapitalizationProcessor.GetLengthOfChar C# (CSharp) Method

GetLengthOfChar() private method

Gets the length of the character including any associated diacritics that follow the base character.
private GetLengthOfChar ( ITextToken tok, int iBaseCharacter ) : int
tok ITextToken The text token.
iBaseCharacter int The index of the base character in the text token.
return int
		private int GetLengthOfChar(ITextToken tok, int iBaseCharacter)
		{
			int charLength = 1;
			int iChar = iBaseCharacter + 1;
			while(iChar < tok.Text.Length && m_categorizer.IsDiacritic(tok.Text[iChar++]))
				charLength++;

			return charLength;
		}
		#endregion