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

Side by Side Diff: include/core/SkOSFile.h

Issue 428443002: Cleanup: Rename SkOSPath functions. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix Created 6 years, 4 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
« no previous file with comments | « gm/gmmain.cpp ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 // TODO: add unittests for all these operations 10 // TODO: add unittests for all these operations
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 class SkOSPath { 126 class SkOSPath {
127 public: 127 public:
128 /** 128 /**
129 * Assembles rootPath and relativePath into a single path, like this: 129 * Assembles rootPath and relativePath into a single path, like this:
130 * rootPath/relativePath. 130 * rootPath/relativePath.
131 * It is okay to call with a NULL rootPath and/or relativePath. A path 131 * It is okay to call with a NULL rootPath and/or relativePath. A path
132 * separator will still be inserted. 132 * separator will still be inserted.
133 * 133 *
134 * Uses SkPATH_SEPARATOR, to work on all platforms. 134 * Uses SkPATH_SEPARATOR, to work on all platforms.
135 */ 135 */
136 static SkString SkPathJoin(const char *rootPath, const char *relativePath); 136 static SkString Join(const char* rootPath, const char* relativePath);
137 137
138 /** 138 /**
139 * Return the name of the file, ignoring the directory structure. 139 * Return the name of the file, ignoring the directory structure.
140 * Behaves like python's os.path.basename. If the fullPath is 140 * Behaves like python's os.path.basename. If the fullPath is
141 * /dir/subdir/, an empty string is returned. 141 * /dir/subdir/, an empty string is returned.
142 * @param fullPath Full path to the file. 142 * @param fullPath Full path to the file.
143 * @return SkString The basename of the file - anything beyond the 143 * @return SkString The basename of the file - anything beyond the
144 * final slash, or the full name if there is no slash. 144 * final slash, or the full name if there is no slash.
145 */ 145 */
146 static SkString SkBasename(const char* fullPath); 146 static SkString Basename(const char* fullPath);
147 }; 147 };
148
148 #endif 149 #endif
OLDNEW
« no previous file with comments | « gm/gmmain.cpp ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698