Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: include/utils/SkOSPathUtils.h

Issue 15747004: Add path utils, plus a test for it. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Respond to comments. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 class SkString;
9
10 /**
11 * Assembles rootPath and relativePath into a single path, like this:
12 * rootPath/relativePath
13 *
14 * Uses SkPATH_SEPARATOR, to work on all platforms.
15 */
16 SkString SkPathJoin(const char *rootPath, const char *relativePath);
17
18 /**
19 * Return the name of the file, ignoring the directory structure.
20 * Behaves like python's os.path.basename. If the fullPath is
21 * /dir/subdir/, an empty string is returned.
22 * @param fullPath Full path to the file.
23 * @return SkString The basename of the file - anything beyond the
24 * final slash, or the full name if there is no slash.
25 */
26 SkString SkBasename(const char* fullPath);
OLDNEW
« no previous file with comments | « gyp/utils.gyp ('k') | src/utils/SkOSPathUtils.cpp » ('j') | tools/skimage_main.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698