[llvm-commits] CVS: llvm/include/llvm/ADT/StringExtras.h

Chris Lattner sabre at nondot.org
Tue Nov 28 14:32:52 PST 2006



Changes in directory llvm/include/llvm/ADT:

StringExtras.h updated: 1.34 -> 1.35
---
Log message:

Add a helper function


---
Diffs of the changes:  (+7 -0)

 StringExtras.h |    7 +++++++
 1 files changed, 7 insertions(+)


Index: llvm/include/llvm/ADT/StringExtras.h
diff -u llvm/include/llvm/ADT/StringExtras.h:1.34 llvm/include/llvm/ADT/StringExtras.h:1.35
--- llvm/include/llvm/ADT/StringExtras.h:1.34	Fri Jul 14 17:54:06 2006
+++ llvm/include/llvm/ADT/StringExtras.h	Tue Nov 28 16:32:35 2006
@@ -18,6 +18,7 @@
 #include <cctype>
 #include <cstdio>
 #include <string>
+#include <vector>
 
 namespace llvm {
 
@@ -129,6 +130,12 @@
 std::string getToken(std::string &Source,
                      const char *Delimiters = " \t\n\v\f\r");
 
+/// SplitString - Split up the specified string according to the specified
+/// delimiters, appending the result fragments to the output list.
+void SplitString(const std::string &Source,
+                 std::vector<std::string> &OutFragments,
+                 const char *Delimiters = " \t\n\v\f\r");
+
 /// UnescapeString - Modify the argument string, turning two character sequences
 /// like '\\' 'n' into '\n'.  This handles: \e \a \b \f \n \r \t \v \' \\ and
 /// \num (where num is a 1-3 byte octal value).






More information about the llvm-commits mailing list