protected bool IsSymbol( string symbol, out int symbolSize )
{
// compare text at source+charpos with the symbol : limit testing to symbolsize
// assume failure
bool symbolFound = false;
symbolSize = symbol.Length;
if ( charPos + symbolSize <= endOfSource )
{
if ( string.Compare( source.Substring( charPos, symbolSize ), symbol ) == 0 )
{
symbolFound = true;
}
}
return symbolFound;
}