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

Unified Diff: third_party/crashpad/crashpad/util/string/split_string.h

Issue 2478633002: Update Crashpad to b47bf6c250c6b825dee1c5fbad9152c2c962e828 (Closed)
Patch Set: mac comment 2 Created 4 years, 1 month 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
Index: third_party/crashpad/crashpad/util/string/split_string.h
diff --git a/third_party/crashpad/crashpad/util/string/split_string.h b/third_party/crashpad/crashpad/util/string/split_string.h
index bb729041a8647e00f62270265d141f17e2432fc0..4ea89d245939f7035f10002da61b5a83adf4a623 100644
--- a/third_party/crashpad/crashpad/util/string/split_string.h
+++ b/third_party/crashpad/crashpad/util/string/split_string.h
@@ -16,6 +16,7 @@
#define CRASHPAD_UTIL_STRING_SPLIT_STRING_H_
#include <string>
+#include <vector>
namespace crashpad {
@@ -31,10 +32,17 @@ namespace crashpad {
//! \return `true` if \a string was split successfully. `false` if \a string
//! did not contain a \delimiter character or began with a \delimiter
//! character.
-bool SplitString(const std::string& string,
- char delimiter,
- std::string* left,
- std::string* right);
+bool SplitStringFirst(const std::string& string,
+ char delimiter,
+ std::string* left,
+ std::string* right);
+
+//! \brief Splits a string into multiple parts on the given delimiter.
+//!
+//! \param[in] string The string to split.
+//! \param[in] delimiter The delimiter to split at.
+//! \return The individual parts of the string.
+std::vector<std::string> SplitString(const std::string& str, char delimiter);
} // namespace crashpad

Powered by Google App Engine
This is Rietveld 408576698