OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef skpdiff_util_DEFINED | 8 #ifndef skpdiff_util_DEFINED |
9 #define skpdiff_util_DEFINED | 9 #define skpdiff_util_DEFINED |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 bool get_directory(const char path[], SkTArray<SkString>* entries); | 42 bool get_directory(const char path[], SkTArray<SkString>* entries); |
43 | 43 |
44 /** | 44 /** |
45 * Gets the files that match the specified pattern in sorted order. | 45 * Gets the files that match the specified pattern in sorted order. |
46 * @param globPattern The pattern to use. Patterns must be valid paths, optiona
lly with wildcards (*) | 46 * @param globPattern The pattern to use. Patterns must be valid paths, optiona
lly with wildcards (*) |
47 * @param entries An array to return the results into | 47 * @param entries An array to return the results into |
48 * @return True on success, false otherwise | 48 * @return True on success, false otherwise |
49 */ | 49 */ |
50 bool glob_files(const char globPattern[], SkTArray<SkString>* entries); | 50 bool glob_files(const char globPattern[], SkTArray<SkString>* entries); |
51 | 51 |
| 52 /** |
| 53 * Gets the absolute version of the given path. |
| 54 * @param path The absolute or relative path to expand |
| 55 * @return The absolute path of the given path on success, or an empty stri
ng on failure. |
| 56 */ |
| 57 SkString get_absolute_path(const SkString& path); |
| 58 |
52 | 59 |
53 #endif | 60 #endif |
OLD | NEW |