diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-01-06 04:48:05 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-01-09 02:26:01 +0300 |
commit | 8ec3c350f54933d9237c63dd17a9a24472fce591 (patch) | |
tree | 26b36685870e5db3214c21c9bd114ea674dae151 /src/util.h | |
parent | 0c8dedd103f78e3f6f9cc907240b9beaabdf12c3 (diff) |
src: use generic helper for splitting strings
PR-URL: https://github.com/nodejs/node/pull/25363
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h index 1205f2d06b1..2fa16cadeac 100644 --- a/src/util.h +++ b/src/util.h @@ -523,7 +523,7 @@ struct FunctionDeleter { template <typename T, void (*function)(T*)> using DeleteFnPtr = typename FunctionDeleter<T, function>::Pointer; -std::set<std::string> ParseCommaSeparatedSet(const std::string& in); +std::vector<std::string> SplitString(const std::string& in, char delim); inline v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context, const std::string& str, |