Searched refs:source_root_len (Results 1 – 1 of 1) sorted by relevance
372 size_t source_root_len = AbsPathLenWithNoTrailingSlash(source_root); in MakeAbsolutePathRelativeIfPossible() local374 if (source_root_len > path_len) in MakeAbsolutePathRelativeIfPossible()386 if (AreAbsoluteWindowsPathsEqual(source_root.substr(0, source_root_len), in MakeAbsolutePathRelativeIfPossible()387 path.substr(0, source_root_len))) { in MakeAbsolutePathRelativeIfPossible()388 after_common_index = source_root_len; in MakeAbsolutePathRelativeIfPossible()389 if (path_len == source_root_len) { in MakeAbsolutePathRelativeIfPossible()396 } else if (path[0] == '/' && source_root_len <= path_len - 1 && in MakeAbsolutePathRelativeIfPossible()399 if (AreAbsoluteWindowsPathsEqual(source_root.substr(0, source_root_len), in MakeAbsolutePathRelativeIfPossible()400 path.substr(1, source_root_len))) { in MakeAbsolutePathRelativeIfPossible()401 after_common_index = source_root_len + 1; in MakeAbsolutePathRelativeIfPossible()[all …]