EST_Token.cc (speech_tools-2.4-release) | : | EST_Token.cc (speech_tools-2.5.0-release) | ||
---|---|---|---|---|
skipping to change at line 825 | skipping to change at line 825 | |||
// This doesn't really work if there are blank lines (and you want | // This doesn't really work if there are blank lines (and you want | |||
// to know about them) | // to know about them) | |||
if ((peek().whitespace().contains("\n")) || eof()) | if ((peek().whitespace().contains("\n")) || eof()) | |||
return TRUE; | return TRUE; | |||
else | else | |||
return FALSE; | return FALSE; | |||
} | } | |||
EST_Token &EST_TokenStream::peek(void) | ||||
{ | ||||
if (!peeked_tokp) get(); | ||||
peeked_tokp = TRUE; | ||||
return current_tok; | ||||
} | ||||
EST_String quote_string(const EST_String &s, | EST_String quote_string(const EST_String &s, | |||
const EST_String "e, | const EST_String "e, | |||
const EST_String &escape, | const EST_String &escape, | |||
int force) | int force) | |||
{ | { | |||
// Quotes s always if force true, or iff s contains whitespace, | // Quotes s always if force true, or iff s contains whitespace, | |||
// quotes or escapes force is false | // quotes or escapes force is false | |||
// Note quote and escape are assumed to be string of length 1 | // Note quote and escape are assumed to be string of length 1 | |||
EST_String quoted_form; | EST_String quoted_form; | |||
if ((force) || | if ((force) || | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 7 lines changed or added |