public override char GetNextChar() {
if ( charEntityIndex == -1 ) {
return (char)0;
}
else {
Debug.Assert( charEntityIndex < charEntity.Length );
char ch = charEntity[charEntityIndex++];
if ( charEntityIndex == charEntity.Length ) {
charEntityIndex = -1;
}
return ch;
}
}