Lines Matching refs:string
25 #include <string>
50 FileType GetFileType(const std::string& path) {
69 FileType GetFileType(const std::string& path) {
104 bool mkdirs(const std::string& path) {
109 while ((current_pos = path.find(sDirSep, current_pos)) != std::string::npos) {
110 std::string parent_path = path.substr(0, current_pos);
152 void AppendPath(std::string* base, StringPiece part) {
166 std::string PackageToPath(const StringPiece& package) {
167 std::string out_path;
174 Maybe<FileMap> MmapPath(const std::string& path, std::string* out_error) {
207 bool AppendArgsFromFile(const StringPiece& path, std::vector<std::string>* out_arglist,
208 std::string* out_error) {
209 std::string contents;
231 bool FileFilter::operator()(const std::string& filename, FileType type) const {
240 for (const std::string& token : pattern_tokens_) {
291 Maybe<std::vector<std::string>> FindFiles(const android::StringPiece& path, IDiagnostics* diag,
293 const std::string root_dir = path.to_string();
300 std::vector<std::string> files;
301 std::vector<std::string> subdirs;
307 std::string file_name = entry->d_name;
308 std::string full_path = root_dir;
326 for (const std::string& subdir : subdirs) {
327 std::string full_subdir = root_dir;
329 Maybe<std::vector<std::string>> subfiles = FindFiles(full_subdir, diag, filter);
334 for (const std::string& subfile : subfiles.value()) {
335 std::string new_file = subdir;