Index: include/utils/SkOSPathUtils.h |
diff --git a/include/utils/SkOSPathUtils.h b/include/utils/SkOSPathUtils.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..db97ae61f8248e57bef56045518721102d0e9e5b |
--- /dev/null |
+++ b/include/utils/SkOSPathUtils.h |
@@ -0,0 +1,25 @@ |
+/* |
+ * Copyright 2013 Google Inc. |
epoger
2013/05/22 17:33:58
You might want to get Mike's blessing before addin
scroggo
2013/05/23 15:29:33
I believe we only need to add SK_API if code outsi
|
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+class SkString; |
+ |
+/** |
+ * Assembles rootPath and relativePath into a single path, like this: |
+ * rootPath/relativePath |
+ * |
+ * Uses SkPATH_SEPARATOR, to work on all platforms. |
+ */ |
+SkString SkPathJoin(const char *rootPath, const char *relativePath); |
+ |
+/** |
+ * Return the name of the file, ignoring the directory structure. |
+ * Does not create a new string. |
+ * @param fullPath Full path to the file. |
+ * @return string The basename of the file - anything beyond the |
+ * final slash, or the full name if there is no slash. |
+ */ |
+const char* SkBasename(const char* fullPath); |