| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef NET_FTP_FTP_UTIL_H_ | 5 #ifndef NET_FTP_FTP_UTIL_H_ |
| 6 #define NET_FTP_FTP_UTIL_H_ | 6 #define NET_FTP_FTP_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/string16.h" |
| 11 |
| 10 namespace net { | 12 namespace net { |
| 11 | 13 |
| 12 class FtpUtil { | 14 class FtpUtil { |
| 13 public: | 15 public: |
| 14 // Convert Unix file path to VMS path (must be a file, and not a directory). | 16 // Convert Unix file path to VMS path (must be a file, and not a directory). |
| 15 static std::string UnixFilePathToVMS(const std::string& unix_path); | 17 static std::string UnixFilePathToVMS(const std::string& unix_path); |
| 16 | 18 |
| 17 // Convert Unix directory path to VMS path (must be a directory). | 19 // Convert Unix directory path to VMS path (must be a directory). |
| 18 static std::string UnixDirectoryPathToVMS(const std::string& unix_path); | 20 static std::string UnixDirectoryPathToVMS(const std::string& unix_path); |
| 19 | 21 |
| 20 // Convert VMS path to Unix-style path. | 22 // Convert VMS path to Unix-style path. |
| 21 static std::string VMSPathToUnix(const std::string& vms_path); | 23 static std::string VMSPathToUnix(const std::string& vms_path); |
| 24 |
| 25 // Convert three-letter month abbreviation (like Nov) to its number (in range |
| 26 // 1-12). |
| 27 static bool ThreeLetterMonthToNumber(const string16& text, int* number); |
| 22 }; | 28 }; |
| 23 | 29 |
| 24 } // namespace net | 30 } // namespace net |
| 25 | 31 |
| 26 #endif // NET_FTP_FTP_UTIL_H_ | 32 #endif // NET_FTP_FTP_UTIL_H_ |
| OLD | NEW |