Lines Matching refs:path
20 bool normalize_path(const char* path, std::string* normalized_path) { in normalize_path() argument
22 if (path[0] != '/') { in normalize_path()
23 PRINT("normalize_path - invalid input: \"%s\", the input path should be absolute", path); in normalize_path()
27 const size_t len = strlen(path) + 1; in normalize_path()
30 const char* in_ptr = path; in normalize_path()
91 const char* const path = normalized_path.c_str(); in parse_zip_path() local
92 TRACE("Trying zip file open from path \"%s\" -> normalized \"%s\"", input_path, path); in parse_zip_path()
98 const char* const separator = strstr(path, kZipFileSeparator); in parse_zip_path()
104 if (strlcpy(buf, path, sizeof(buf)) >= sizeof(buf)) { in parse_zip_path()
105 PRINT("Warning: ignoring very long library path: %s", path); in parse_zip_path()
109 buf[separator - path] = '\0'; in parse_zip_path()
112 *entry_path = &buf[separator - path + 2]; in parse_zip_path()