Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: src/IceRangeSpec.h

Issue 1903553004: Subzero: Allow overriding command-line args from the browser. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceCompileServer.cpp ('k') | src/IceRangeSpec.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceRangeSpec.h
diff --git a/src/IceRangeSpec.h b/src/IceRangeSpec.h
index cdd9c35738794b69bf7699beccd2275088fdf655..244fe4ac9e70385ceb2a6ad70fc8b078c6bf5948 100644
--- a/src/IceRangeSpec.h
+++ b/src/IceRangeSpec.h
@@ -59,6 +59,12 @@ public:
// matching on function name works correctly. Note that this is not
// thread-safe, so we count on all this being handled by the startup thread.
static bool hasNames() { return HasNames; }
+ // Helper function to tokenize a string into a vector of string tokens, given
+ // a single delimiter character. An empty string produces an empty token
+ // vector. Zero-length tokens are allowed, e.g. ",a,,,b," may tokenize to
+ // {"","a","","","b",""}.
+ static std::vector<std::string> tokenize(const std::string &Spec,
+ char Delimiter);
private:
void include(const std::string &Token);
« no previous file with comments | « src/IceCompileServer.cpp ('k') | src/IceRangeSpec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698