| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |