SILUBS.ScriptureChecks.ProcessMixedCapitalization.AddWord C# (CSharp) Method

AddWord() private method

private AddWord ( ITextToken tok, WordAndPunct wap, string desiredKey ) : void
tok ITextToken
wap SILUBS.SharedScrUtils.WordAndPunct
desiredKey string
return void
		private void AddWord(ITextToken tok, WordAndPunct wap, string desiredKey)
		{
			TextTokenSubstring tts = new TextTokenSubstring(tok, wap.Offset, wap.Word.Length);
			if (String.IsNullOrEmpty(desiredKey) || desiredKey == tts.InventoryText)
				m_result.Add(tts);
		}
	}