private static bool MatchWord(ref __DTString str, String target)
{
int length = target.Length;
if (length > (str.Value.Length - str.Index)) {
return false;
}
if (str.CompareInfo.Compare(str.Value, str.Index, length,
target, 0, length, CompareOptions.IgnoreCase)!=0) {
return (false);
}
int nextCharIndex = str.Index + target.Length;
if (nextCharIndex < str.Value.Length) {
char nextCh = str.Value[nextCharIndex];
if (Char.IsLetter(nextCh)) {
return (false);
}
}
str.Index = nextCharIndex;
if (str.Index < str.len) {
str.m_current = str.Value[str.Index];
}
return (true);
}