[llvm-commits] CVS: llvm/include/Support/StringExtras.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Dec 28 23:07:01 PST 2003
Changes in directory llvm/include/Support:
StringExtras.h updated: 1.11 -> 1.12
---
Log message:
add new function
---
Diffs of the changes: (+10 -0)
Index: llvm/include/Support/StringExtras.h
diff -u llvm/include/Support/StringExtras.h:1.11 llvm/include/Support/StringExtras.h:1.12
--- llvm/include/Support/StringExtras.h:1.11 Sun Nov 16 14:21:13 2003
+++ llvm/include/Support/StringExtras.h Sun Dec 28 23:06:38 2003
@@ -97,6 +97,16 @@
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
More information about the llvm-commits
mailing list