string GetVerbatim(int token, string end)
{
StringBuilder vb_text = new StringBuilder ();
int i = 0;
if (tokenizer.Value.Length > 1){
// May be we have a put_back token that is not a single character
vb_text.Append (tokenizer.Value);
token = tokenizer.get_token ();
}
while (token != Token.EOF){
if (Char.ToUpper ((char) token, CultureInfo.InvariantCulture) == end [i]){
if (++i >= end.Length)
break;
token = tokenizer.get_token ();
continue;
} else if (i > 0) {
for (int j = 0; j < i; j++)
vb_text.Append (end [j]);
i = 0;
}
vb_text.Append ((char) token);
token = tokenizer.get_token ();
}
return RemoveComments (vb_text.ToString ());
}