Lines Matching refs:std
39 void format_string(std::string* str, const std::vector<std::pair<std::string, std::string>>& params… in format_string()
43 if (pos == std::string::npos) break; in format_string()
45 const std::string& token = param.first; in format_string()
46 const std::string& replacement = param.second; in format_string()
63 std::string dirname(const char* path) { in dirname()
71 return std::string(path, last_slash - path); in dirname()
75 bool normalize_path(const char* path, std::string* normalized_path) { in normalize_path()
119 bool file_is_in_dir(const std::string& file, const std::string& dir) { in file_is_in_dir()
129 bool file_is_under_dir(const std::string& file, const std::string& dir) { in file_is_under_dir()
140 bool parse_zip_path(const char* input_path, std::string* zip_path, std::string* entry_path) { in parse_zip_path()
141 std::string normalized_path; in parse_zip_path()
193 std::vector<std::string>* paths) { in split_path()
199 void resolve_paths(std::vector<std::string>& paths, in resolve_paths()
200 std::vector<std::string>* resolved_paths) { in resolve_paths()
207 std::string resolved = resolve_path(path); in resolve_paths()
209 resolved_paths->push_back(std::move(resolved)); in resolve_paths()
214 std::string resolve_path(const std::string& path) { in resolve_path()
229 std::string normalized_path; in resolve_path()
235 std::string zip_path; in resolve_path()
236 std::string entry_path; in resolve_path()
244 return std::string(resolved_path) + kZipFileSeparator + entry_path; in resolve_path()