Lines Matching refs:c_str
120 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { in RemoveExtension()
121 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); in RemoveExtension()
130 const char* const last_sep = strrchr(c_str(), kPathSeparator); in FindLastPathSeparator()
132 const char* const last_alt_sep = strrchr(c_str(), kAlternatePathSeparator); in FindLastPathSeparator()
163 dir = String(c_str(), last_sep + 1 - c_str()); in RemoveFileName()
182 file = String::Format("%s.%s", base_name.c_str(), extension); in MakeFileName()
184 file = String::Format("%s_%d.%s", base_name.c_str(), number, extension); in MakeFileName()
196 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator, in ConcatPaths()
197 relative_path.c_str())); in ConcatPaths()
204 LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str()); in FileOrDirectoryExists()
210 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
228 LPCWSTR unicode = String::AnsiToUtf16(path.c_str()); in DirectoryExists()
237 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
253 return pathname_.length() == 1 && IsPathSeparator(pathname_.c_str()[0]); in IsRootDirectory()
259 const char* const name = pathname_.c_str(); in IsAbsolutePath()
295 IsPathSeparator(pathname_.c_str()[pathname_.length() - 1]); in IsDirectory()
321 LPCWSTR unicode = String::AnsiToUtf16(removed_sep.c_str()); in CreateFolder()
325 int result = _mkdir(pathname_.c_str()); in CreateFolder()
327 int result = mkdir(pathname_.c_str(), 0777); in CreateFolder()
341 ? FilePath(String(pathname_.c_str(), pathname_.length() - 1)) in RemoveTrailingPathSeparator()
350 if (pathname_.c_str() == NULL) { in Normalize()
354 const char* src = pathname_.c_str(); in Normalize()