mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-01 20:24:40 +01:00
This change allows compiling the google-breakpad code using a global ::string class instead of std::string. For more details take a look at common/using_std_string.h
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@974 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
93cebf538e
commit
6de969a304
103 changed files with 521 additions and 385 deletions
|
|
@ -35,6 +35,8 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "common/using_std_string.h"
|
||||
|
||||
namespace google_breakpad {
|
||||
|
||||
// Splits line into at most max_tokens tokens, separated by any of the
|
||||
|
|
@ -49,12 +51,12 @@ namespace google_breakpad {
|
|||
// exact, as opposed to maximum, number of tokens.
|
||||
|
||||
bool Tokenize(char *line,
|
||||
const char *separators,
|
||||
int max_tokens,
|
||||
std::vector<char*> *tokens);
|
||||
const char *separators,
|
||||
int max_tokens,
|
||||
std::vector<char*> *tokens);
|
||||
// For convenience, since you need a char* to pass to Tokenize.
|
||||
// You can call StringToVector on a std::string, and use &vec[0].
|
||||
void StringToVector(const std::string &str, std::vector<char> &vec);
|
||||
// You can call StringToVector on a string, and use &vec[0].
|
||||
void StringToVector(const string &str, std::vector<char> &vec);
|
||||
|
||||
} // namespace google_breakpad
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue