| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include <dirent.h> | 7 #include <dirent.h> |
| 8 #include <errno.h> | 8 #include <errno.h> |
| 9 #include <fcntl.h> | 9 #include <fcntl.h> |
| 10 #include <fnmatch.h> | 10 #include <fnmatch.h> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "base/basictypes.h" | 27 #include "base/basictypes.h" |
| 28 #include "base/eintr_wrapper.h" | 28 #include "base/eintr_wrapper.h" |
| 29 #include "base/file_path.h" | 29 #include "base/file_path.h" |
| 30 #include "base/lock.h" | 30 #include "base/lock.h" |
| 31 #include "base/logging.h" | 31 #include "base/logging.h" |
| 32 #include "base/scoped_ptr.h" | 32 #include "base/scoped_ptr.h" |
| 33 #include "base/singleton.h" | 33 #include "base/singleton.h" |
| 34 #include "base/string_util.h" | 34 #include "base/string_util.h" |
| 35 #include "base/sys_string_conversions.h" | 35 #include "base/sys_string_conversions.h" |
| 36 #include "base/time.h" | 36 #include "base/time.h" |
| 37 #include "base/utf_string_conversions.h" |
| 37 #include "unicode/coll.h" | 38 #include "unicode/coll.h" |
| 38 | 39 |
| 39 | 40 |
| 40 namespace { | 41 namespace { |
| 41 | 42 |
| 42 class LocaleAwareComparator { | 43 class LocaleAwareComparator { |
| 43 public: | 44 public: |
| 44 LocaleAwareComparator() { | 45 LocaleAwareComparator() { |
| 45 UErrorCode error_code = U_ZERO_ERROR; | 46 UErrorCode error_code = U_ZERO_ERROR; |
| 46 // Use the default collator. The default locale should have been properly | 47 // Use the default collator. The default locale should have been properly |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 munmap(data_, length_); | 745 munmap(data_, length_); |
| 745 if (file_ != -1) | 746 if (file_ != -1) |
| 746 close(file_); | 747 close(file_); |
| 747 | 748 |
| 748 data_ = NULL; | 749 data_ = NULL; |
| 749 length_ = 0; | 750 length_ = 0; |
| 750 file_ = -1; | 751 file_ = -1; |
| 751 } | 752 } |
| 752 | 753 |
| 753 } // namespace file_util | 754 } // namespace file_util |
| OLD | NEW |