MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / convertPath

Function convertPath

tools/aapt/Main.cpp:31–39  ·  view source on GitHub ↗

* When running under Cygwin on Windows, this will convert slash-based * paths into back-slash-based ones. Otherwise the ApptAssets file comparisons * fail later as they use back-slash separators under Windows. * * This operates in-place on the path string. */

Source from the content-addressed store, hash-verified

29 * This operates in-place on the path string.
30 */
31void convertPath(char *path) {
32 if (path != NULL && OS_PATH_SEPARATOR != '/') {
33 for (; *path; path++) {
34 if (*path == '/') {
35 *path = OS_PATH_SEPARATOR;
36 }
37 }
38 }
39}
40
41/*
42 * Print usage info.

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected