| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "net/ftp/ftp_util.h" | 5 #include "net/ftp/ftp_util.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/i18n/case_conversion.h" | 10 #include "base/i18n/case_conversion.h" |
| 11 #include "base/i18n/char_iterator.h" | 11 #include "base/i18n/char_iterator.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_piece.h" | 15 #include "base/strings/string_piece.h" |
| 16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
| 17 #include "base/strings/string_tokenizer.h" | 17 #include "base/strings/string_tokenizer.h" |
| 18 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
| 20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
| 21 #include "third_party/icu/source/common/unicode/uchar.h" | 21 #include "third_party/icu/source/common/unicode/uchar.h" |
| 22 #include "third_party/icu/source/i18n/unicode/datefmt.h" | 22 #include "third_party/icu/source/i18n/unicode/datefmt.h" |
| 23 #include "third_party/icu/source/i18n/unicode/dtfmtsym.h" | 23 #include "third_party/icu/source/i18n/unicode/dtfmtsym.h" |
| 24 | 24 |
| 25 using base::ASCIIToUTF16; |
| 25 using base::StringPiece16; | 26 using base::StringPiece16; |
| 26 | 27 |
| 27 // For examples of Unix<->VMS path conversions, see the unit test file. On VMS | 28 // For examples of Unix<->VMS path conversions, see the unit test file. On VMS |
| 28 // a path looks differently depending on whether it's a file or directory. | 29 // a path looks differently depending on whether it's a file or directory. |
| 29 | 30 |
| 30 namespace net { | 31 namespace net { |
| 31 | 32 |
| 32 // static | 33 // static |
| 33 std::string FtpUtil::UnixFilePathToVMS(const std::string& unix_path) { | 34 std::string FtpUtil::UnixFilePathToVMS(const std::string& unix_path) { |
| 34 if (unix_path.empty()) | 35 if (unix_path.empty()) |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 while (!iter.end() && !u_isspace(iter.get())) | 364 while (!iter.end() && !u_isspace(iter.get())) |
| 364 iter.Advance(); | 365 iter.Advance(); |
| 365 } | 366 } |
| 366 | 367 |
| 367 base::string16 result(text.substr(iter.array_pos())); | 368 base::string16 result(text.substr(iter.array_pos())); |
| 368 TrimWhitespace(result, TRIM_ALL, &result); | 369 TrimWhitespace(result, TRIM_ALL, &result); |
| 369 return result; | 370 return result; |
| 370 } | 371 } |
| 371 | 372 |
| 372 } // namespace | 373 } // namespace |
| OLD | NEW |