public static PatternScanResult GetFirstWord(char[] TextBuffer,
PatternCollection Patterns, int StartPosition)
{
PatternScanResult Result;
Result.Index = 0;
Result.Token = "";
// for (int i=StartPosition;i<TextBuffer.Length;i++)
// {
//
// //-----------------------------------------------
// if (c[i]==PatternBuffer[0])
// {
// bool found=true;
// for (int j=0;j<Pattern.Length;j++)
// {
// if (c[i+j]!=p[j])
// {
// found=false;
// break;
// }
// }
// if (found)
// {
// Result.Index =i+StartPosition;
// Result.Token = Text.Substring(i+StartPosition,this.Pattern.Length);
// return Result;
// }
// }
// //-----------------------------------------------
// }
return Result;
}
}