add new function

llvm-svn: 10638
This commit is contained in:
Chris Lattner 2003-12-29 05:06:38 +00:00
parent 9fbff9f66e
commit 19857d2c05
1 changed files with 10 additions and 0 deletions

View File

@ -97,6 +97,16 @@ static inline std::string ftostr(double V) {
return Buffer;
}
/// getToken - This function extracts one token from source, ignoring any
/// leading characters that appear in the Delimiters string, and ending the
/// token at any of the characters that appear in the Delimiters string. If
/// there are no tokens in the source string, an empty string is returned.
/// The Source source string is updated in place to remove the returned string
/// and any delimiter prefix from it.
std::string getToken(std::string &Source,
const char *Delimiters = " \t\n\v\f\r");
} // End llvm namespace
#endif