| 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 LIBRARIES_NACL_IO_PATH_H_ | 5 #ifndef LIBRARIES_NACL_IO_PATH_H_ |
| 6 #define LIBRARIES_NACL_IO_PATH_H_ | 6 #define LIBRARIES_NACL_IO_PATH_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 static std::string Join(const StringArray_t& paths); | 54 static std::string Join(const StringArray_t& paths); |
| 55 static std::string Range(const StringArray_t& paths, size_t start, | 55 static std::string Range(const StringArray_t& paths, size_t start, |
| 56 size_t end); | 56 size_t end); |
| 57 static StringArray_t Split(const std::string& paths); | 57 static StringArray_t Split(const std::string& paths); |
| 58 // Operator versions | 58 // Operator versions |
| 59 Path& operator=(const Path& p); | 59 Path& operator=(const Path& p); |
| 60 Path& operator=(const std::string& str); | 60 Path& operator=(const std::string& str); |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 // Internal representation of the path stored an array of string representing | 63 // Internal representation of the path stored an array of string representing |
| 64 // the directory traversal. The first string is a "/" if this is an abolute | 64 // the directory traversal. The first string is a "/" if this is an absolute |
| 65 // path. | 65 // path. |
| 66 StringArray_t paths_; | 66 StringArray_t paths_; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 #endif // PACKAGES_LIBRARIES_NACL_IO_PATH_H_ | 69 #endif // PACKAGES_LIBRARIES_NACL_IO_PATH_H_ |
| OLD | NEW |