48 for (
size_t i = 0, n = calls_.size(); i < n; ++i) {
56 size_t n,
const std::string& call_prefix)
const {
57 for (
size_t i = 0, num_calls = calls_.size(); i < num_calls; ++i) {
68 void TraceCallExtractor::CreateCallVector() {
69 const std::vector<std::string> raw_calls =
71 const size_t count = raw_calls.size();
73 calls_.reserve(count);
74 for (
size_t i = 0; i < count; ++i) {
79 const std::vector<std::string> args =
81 const size_t arg_count = args.size();
82 for (
size_t j = 0; j < arg_count; ++j) {
83 const size_t pos = args[j].find(
" = ");
84 std::string arg = args[j];
85 if (pos != std::string::npos)
86 arg = arg.substr(pos + 3, std::string::npos);
90 else if (j < arg_count - 1)
94 calls_.push_back(call);
bool StartsWith(const std::string &target, const std::string &start)
Returns whether target begins with start.
const size_t kInvalidIndex
kInvalidIndex is a size_t value that is very unlikely to be a valid index.
std::vector< std::string > ION_API SplitString(const std::string &str, const std::string &delimiters)
Splits a string into a vector of substrings, given a set of delimiter characters (expressed as a stri...
Copyright 2016 Google Inc.
std::string TrimStartWhitespace(const std::string &target)
Removes any whitespace characters at the beginning of the string.