Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Side by Side Diff: base/file_util.cc

Issue 243102: Convert base dependencies to use sys_string_conversions instead of the ICU... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/base.gyp ('k') | base/file_util_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/file_util.h" 5 #include "base/file_util.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <io.h> 8 #include <io.h>
9 #endif 9 #endif
10 #include <stdio.h> 10 #include <stdio.h>
11 11
12 #include <fstream> 12 #include <fstream>
13 13
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/string_piece.h"
16 #include "base/string_util.h" 17 #include "base/string_util.h"
17 18 #include "base/utf_string_conversions.h"
18 #include "base/string_piece.h"
19 #include "base/sys_string_conversions.h"
20 19
21 namespace { 20 namespace {
22 21
23 const FilePath::CharType kExtensionSeparator = FILE_PATH_LITERAL('.'); 22 const FilePath::CharType kExtensionSeparator = FILE_PATH_LITERAL('.');
24 23
25 } // namespace 24 } // namespace
26 25
27 namespace file_util { 26 namespace file_util {
28 27
29 bool EndsWithSeparator(const FilePath& path) { 28 bool EndsWithSeparator(const FilePath& path) {
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 439
441 bool FileEnumerator::IsDot(const FilePath& path) { 440 bool FileEnumerator::IsDot(const FilePath& path) {
442 return FILE_PATH_LITERAL(".") == path.BaseName().value(); 441 return FILE_PATH_LITERAL(".") == path.BaseName().value();
443 } 442 }
444 443
445 bool FileEnumerator::IsDotDot(const FilePath& path) { 444 bool FileEnumerator::IsDotDot(const FilePath& path) {
446 return FILE_PATH_LITERAL("..") == path.BaseName().value(); 445 return FILE_PATH_LITERAL("..") == path.BaseName().value();
447 } 446 }
448 447
449 } // namespace 448 } // namespace
OLDNEW
« no previous file with comments | « base/base.gyp ('k') | base/file_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698