private Boolean IsTagEnd()
{
if (this._flagMode != FlagMode.None && this._pos.Count == 0)
{
if (this._scanner.IsEnd())
{
return true;
}
if (this._scanner.Read() != '.')
{
if (this._flagMode == FlagMode.Full)
{
for (Int32 i = 0; i < this._suffix.Length; i++)
{
if (this._suffix[i] != this._scanner.Read(i))
{
return false;
}
}
return true;
}
#if ALLOWCOMMENT
else if (this._flagMode == FlagMode.Comment)
{
return this._scanner.Read() == '*' && this._scanner.Read(1) == this._flag;
}
#endif
else
{
Char value = this._scanner.Read();
if (((value == '(' || Common.Utility.IsWord(value)) && Common.Utility.IsWord(this._scanner.Read(-1)))
|| (Common.Utility.IsWord(value) && (this._scanner.Read(-1) == '.')))
{
return false;
}
return true;
}
}
//else if (value != '.' && value != '(')
//{
// if (Char.IsControl(value) || (Char.IsPunctuation(value) && value != '_') || Char.IsSeparator(value) || Char.IsSymbol(value) || Char.IsWhiteSpace(value) || (Int32)value > 167)
// {
// return true;
// }
//}
}
return false;
}
/// <summary>