• Home
  • Raw
  • Download

Lines Matching refs:tokens

77 bool Command::ParseTargetInfoAndSourceInfo(const std::vector<std::string>& tokens,  in ParseTargetInfoAndSourceInfo()  argument
93 if (tokens.size() < 3) { in ParseTargetInfoAndSourceInfo()
99 RangeSet tgt_ranges = RangeSet::Parse(tokens[pos++]); in ParseTargetInfoAndSourceInfo()
107 const std::string& token = tokens[pos++]; in ParseTargetInfoAndSourceInfo()
117 if (tokens[pos] == "-") { in ParseTargetInfoAndSourceInfo()
121 src_ranges = RangeSet::Parse(tokens[pos++]); in ParseTargetInfoAndSourceInfo()
127 if (pos >= tokens.size()) { in ParseTargetInfoAndSourceInfo()
143 src_ranges_location = RangeSet::Parse(tokens[pos++]); in ParseTargetInfoAndSourceInfo()
152 while (pos < tokens.size()) { in ParseTargetInfoAndSourceInfo()
155 std::vector<std::string> pairs = android::base::Split(tokens[pos++], ":"); in ParseTargetInfoAndSourceInfo()
180 std::vector<std::string> tokens = android::base::Split(line, " "); in Parse() local
183 Type op = ParseType(tokens[pos++]); in Parse()
196 if (pos + 1 != tokens.size()) { in Parse()
198 tokens.size() - pos); in Parse()
201 RangeSet tgt_ranges = RangeSet::Parse(tokens[pos++]); in Parse()
209 if (pos + 2 != tokens.size()) { in Parse()
211 tokens.size() - pos); in Parse()
214 const std::string& id = tokens[pos++]; in Parse()
215 RangeSet src_ranges = RangeSet::Parse(tokens[pos++]); in Parse()
223 if (pos + 1 != tokens.size()) { in Parse()
225 tokens.size() - pos); in Parse()
228 stash_info = StashInfo(tokens[pos++], {}); in Parse()
231 if (pos + 1 > tokens.size()) { in Parse()
235 std::string hash = tokens[pos++]; in Parse()
237 std::vector<std::string>(tokens.cbegin() + pos, tokens.cend()), hash, &target_info, in Parse()
243 if (pos + 4 > tokens.size()) { in Parse()
245 tokens.size() - pos); in Parse()
250 if (!android::base::ParseUint(tokens[pos++], &offset) || in Parse()
251 !android::base::ParseUint(tokens[pos++], &length)) { in Parse()
257 std::string src_hash = tokens[pos++]; in Parse()
258 std::string dst_hash = tokens[pos++]; in Parse()
260 std::vector<std::string>(tokens.cbegin() + pos, tokens.cend()), dst_hash, &target_info, in Parse()
266 if (pos != tokens.size()) { in Parse()
268 tokens.size() - pos); in Parse()
273 if (pos + 5 != tokens.size()) { in Parse()
275 tokens.size() - pos); in Parse()
280 RangeSet hash_tree_ranges = RangeSet::Parse(tokens[pos++]); in Parse()
286 RangeSet source_ranges = RangeSet::Parse(tokens[pos++]); in Parse()
292 std::string hash_algorithm = tokens[pos++]; in Parse()
293 std::string salt_hex = tokens[pos++]; in Parse()
294 std::string root_hash = tokens[pos++]; in Parse()