| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef BASE_I18N_FILE_UTIL_ICU_H_ | 5 #ifndef BASE_I18N_FILE_UTIL_ICU_H_ |
| 6 #define BASE_I18N_FILE_UTIL_ICU_H_ | 6 #define BASE_I18N_FILE_UTIL_ICU_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 // File utilities that use the ICU library go in this file. | 8 // File utilities that use the ICU library go in this file. |
| 10 | 9 |
| 11 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 12 #include "base/i18n/base_i18n_export.h" | 11 #include "base/i18n/base_i18n_export.h" |
| 13 #include "base/string16.h" | 12 #include "base/string16.h" |
| 14 | 13 |
| 15 namespace file_util { | 14 namespace file_util { |
| 16 | 15 |
| 17 // Returns true if file_name does not have any illegal character. The input | 16 // Returns true if file_name does not have any illegal character. The input |
| (...skipping 17 matching lines...) Expand all Loading... |
| 35 BASE_I18N_EXPORT bool LocaleAwareCompareFilenames(const FilePath& a, | 34 BASE_I18N_EXPORT bool LocaleAwareCompareFilenames(const FilePath& a, |
| 36 const FilePath& b); | 35 const FilePath& b); |
| 37 | 36 |
| 38 // Calculates the canonical file-system representation of |file_name| base name. | 37 // Calculates the canonical file-system representation of |file_name| base name. |
| 39 // Modifies |file_name| in place. No-op if not on ChromeOS. | 38 // Modifies |file_name| in place. No-op if not on ChromeOS. |
| 40 BASE_I18N_EXPORT void NormalizeFileNameEncoding(FilePath* file_name); | 39 BASE_I18N_EXPORT void NormalizeFileNameEncoding(FilePath* file_name); |
| 41 | 40 |
| 42 } // namespace file_util | 41 } // namespace file_util |
| 43 | 42 |
| 44 #endif // BASE_I18N_FILE_UTIL_ICU_H_ | 43 #endif // BASE_I18N_FILE_UTIL_ICU_H_ |
| OLD | NEW |