Lines Matching refs:string
36 FileInfo::FileInfo(const string& filename) in FileInfo()
84 TrackedFile::TrackedFile(const string& file) in TrackedFile()
102 get_directory_contents(const string& name, map<string,FileInfo>* results) in get_directory_contents() argument
115 string subdir = name + "/" + entry->d_name; in get_directory_contents()
118 string filename(name + "/" + entry->d_name); in get_directory_contents()
127 directory_contents_differ(const map<string,FileInfo>& before, const map<string,FileInfo>& after) in directory_contents_differ() argument
132 map<string,FileInfo>::const_iterator b = before.begin(); in directory_contents_differ()
133 map<string,FileInfo>::const_iterator a = after.begin(); in directory_contents_differ()
147 string
150 string result; in escape_quotes()
162 string
179 string
180 trim(const string& str) in trim()
191 return string(str, begin, end-begin+1); in trim()
195 starts_with(const string& str, const string& prefix) in starts_with()
201 ends_with(const string& str, const string& suffix) in ends_with()
211 split_lines(vector<string>* result, const string& str) in split_lines()
220 result->push_back(string(str, begin, end-begin)); in split_lines()
226 result->push_back(string(str, begin, end-begin)); in split_lines()
230 string
231 read_file(const string& filename) in read_file()
235 return string(); in read_file()
246 return string(); in read_file()
249 string result(buf, size); in read_file()
258 is_executable(const string& filename) in is_executable()
271 string
272 dirname(const string& filename) in dirname()
275 if (slash == string::npos) { in dirname()
280 return string(filename, 0, slash); in dirname()
284 string
285 leafname(const string& filename) in leafname()
288 if (slash == string::npos) { in leafname()
293 return string(filename, slash + 1); in leafname()