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 absoluate or relative path to expand | |
55 * @return A malloc'd string that contains the absolute path or NULL on fai lure. You must free | |
56 * it with free, unless it is NULL. | |
57 */ | |
58 char* get_absolute_path(const char path[]); | |
djsollen
2013/08/01 18:44:03
SkString ...(const SkString& path);
That way you
| |
59 | |
52 | 60 |
53 #endif | 61 #endif |
OLD | NEW |