| 19 | namespace crashpad { |
| 20 | |
| 21 | bool SplitStringFirst(const std::string& string, |
| 22 | char delimiter, |
| 23 | std::string* left, |
| 24 | std::string* right) { |
| 25 | size_t delimiter_pos = string.find(delimiter); |
| 26 | if (delimiter_pos == 0 || delimiter_pos == std::string::npos) { |
| 27 | return false; |
| 28 | } |
| 29 | |
| 30 | left->assign(string, 0, delimiter_pos); |
| 31 | right->assign(string, delimiter_pos + 1, std::string::npos); |
| 32 | return true; |
| 33 | } |
| 34 | |
| 35 | std::vector<std::string> SplitString(const std::string& string, |
| 36 | char delimiter) { |
no outgoing calls