Lines Matching refs:StringPiece
41 using ::android::StringPiece;
142 StringPiece GetStem(const StringPiece& path) { in GetStem()
147 return StringPiece(start, current - start); in GetStem()
153 StringPiece GetFilename(const StringPiece& path) { in GetFilename()
161 return StringPiece(last_dir_sep, end - last_dir_sep); in GetFilename()
164 StringPiece GetExtension(const StringPiece& path) { in GetExtension()
165 StringPiece filename = GetFilename(path); in GetExtension()
169 return StringPiece(c, end - c); in GetExtension()
174 bool IsHidden(const android::StringPiece& path) { in IsHidden()
178 void AppendPath(std::string* base, StringPiece part) { in AppendPath()
192 std::string BuildPath(std::vector<const StringPiece>&& args) { in BuildPath()
203 std::string PackageToPath(const StringPiece& package) { in PackageToPath()
205 for (const StringPiece& part : util::Tokenize(package, '.')) { in PackageToPath()
244 bool AppendArgsFromFile(const StringPiece& path, std::vector<std::string>* out_arglist, in AppendArgsFromFile()
254 for (StringPiece line : util::Tokenize(contents, ' ')) { in AppendArgsFromFile()
263 bool AppendSetArgsFromFile(const StringPiece& path, std::unordered_set<std::string>* out_argset, in AppendSetArgsFromFile()
273 for (StringPiece line : util::Tokenize(contents, ' ')) { in AppendSetArgsFromFile()
282 bool FileFilter::SetPattern(const StringPiece& pattern) { in SetPattern()
347 Maybe<std::vector<std::string>> FindFiles(const android::StringPiece& path, IDiagnostics* diag, in FindFiles()