Lines Matching refs:c_str
105 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { in RemoveExtension()
106 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); in RemoveExtension()
118 const char* const last_sep = strrchr(c_str(), kPathSeparator); in RemoveDirectoryName()
129 const char* const last_sep = strrchr(c_str(), kPathSeparator); in RemoveFileName()
132 dir = String(c_str(), last_sep + 1 - c_str()); in RemoveFileName()
151 file = String::Format("%s.%s", base_name.c_str(), extension); in MakeFileName()
153 file = String::Format("%s_%d.%s", base_name.c_str(), number, extension); in MakeFileName()
165 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator, in ConcatPaths()
166 relative_path.c_str())); in ConcatPaths()
173 LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str()); in FileOrDirectoryExists()
179 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
197 LPCWSTR unicode = String::AnsiToUtf16(path.c_str()); in DirectoryExists()
206 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
228 const char* const name = pathname_.c_str(); in IsAbsolutePath()
289 LPCWSTR unicode = String::AnsiToUtf16(removed_sep.c_str()); in CreateFolder()
293 int result = _mkdir(pathname_.c_str()); in CreateFolder()
295 int result = mkdir(pathname_.c_str(), 0777); in CreateFolder()
309 ? FilePath(String(pathname_.c_str(), pathname_.length() - 1)) in RemoveTrailingPathSeparator()
317 if (pathname_.c_str() == NULL) { in Normalize()
321 const char* src = pathname_.c_str(); in Normalize()