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

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

Issue 2555353002: Update Crashpad to 32981a3ee9d7c2769fb27afa038fe2e194cfa329 (Closed)
Patch Set: fix readme Created 4 years 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.cc
diff --git a/third_party/crashpad/crashpad/util/string/split_string.cc b/third_party/crashpad/crashpad/util/string/split_string.cc
index 9d0d675aa99cb45656bc97d0b7af540df6304aa1..fe7a7eb4c6e312d788405e960adf7dc1430f47b4 100644
--- a/third_party/crashpad/crashpad/util/string/split_string.cc
+++ b/third_party/crashpad/crashpad/util/string/split_string.cc
@@ -32,21 +32,22 @@ bool SplitStringFirst(const std::string& string,
return true;
}
-std::vector<std::string> SplitString(const std::string& str, char delimiter) {
+std::vector<std::string> SplitString(const std::string& string,
+ char delimiter) {
std::vector<std::string> result;
- if (str.empty())
+ if (string.empty())
return result;
size_t start = 0;
while (start != std::string::npos) {
- size_t end = str.find_first_of(delimiter, start);
+ size_t end = string.find_first_of(delimiter, start);
std::string part;
if (end == std::string::npos) {
- part = str.substr(start);
+ part = string.substr(start);
start = std::string::npos;
} else {
- part = str.substr(start, end - start);
+ part = string.substr(start, end - start);
start = end + 1;
}
« no previous file with comments | « third_party/crashpad/crashpad/util/string/split_string.h ('k') | third_party/crashpad/crashpad/util/util.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698