Lines Matching refs:component

1835     const std::string& component = components[i];  in VerifyImageLocation()  local
1836 DCHECK(!component.empty()); // Guaranteed by Split(). in VerifyImageLocation()
1837 const size_t profile_separator_pos = component.find(kProfileSeparator); in VerifyImageLocation()
1838 size_t wildcard_pos = component.find('*'); in VerifyImageLocation()
1843 component.c_str()); in VerifyImageLocation()
1847 if (component.find(kProfileSeparator, profile_separator_pos + 1u) != std::string::npos) { in VerifyImageLocation()
1848 *error_msg = StringPrintf("Multiple profile delimiters in %s", component.c_str()); in VerifyImageLocation()
1851 if (profile_separator_pos == 0u || profile_separator_pos + 1u == component.size()) { in VerifyImageLocation()
1853 component.c_str()); in VerifyImageLocation()
1856 if (component.back() == '/') { in VerifyImageLocation()
1858 component.c_str()); in VerifyImageLocation()
1863 profile_separator_pos != std::string::npos ? profile_separator_pos : component.size(); in VerifyImageLocation()
1864 if (component[component_name_length - 1u] == '/') { in VerifyImageLocation()
1866 component.c_str()); in VerifyImageLocation()
1872 component.c_str()); in VerifyImageLocation()
1879 if (wildcard_pos != component.size() - 1u) { in VerifyImageLocation()
1880 *error_msg = StringPrintf("Unsupported wildcard (*) position in %s", component.c_str()); in VerifyImageLocation()
1884 if (component.size() != 1u && component[wildcard_pos - 1u] != '/') { in VerifyImageLocation()
1886 component.c_str()); in VerifyImageLocation()
1890 *error_msg = StringPrintf("Primary component contains wildcard (*): %s", component.c_str()); in VerifyImageLocation()
1911 std::string component = named_components[i]; in MatchNamedComponents() local
1913 const size_t profile_separator_pos = component.find(kProfileSeparator); in MatchNamedComponents()
1915 profile_filename = component.substr(profile_separator_pos + 1u); in MatchNamedComponents()
1917 component.resize(profile_separator_pos); in MatchNamedComponents()
1918 DCHECK(!component.empty()); // Checked by VerifyImageLocation() in MatchNamedComponents()
1920 size_t slash_pos = component.rfind('/'); in MatchNamedComponents()
1926 base_name = component.substr(slash_pos + 1u); in MatchNamedComponents()
1927 base_location = component; in MatchNamedComponents()
1929 base_name = component; in MatchNamedComponents()
1930 base_location = GetBcpComponentPath(0u) + component; in MatchNamedComponents()
1936 base_location = component.substr(0u, slash_pos + 1u) + base_name; in MatchNamedComponents()
1937 to_match = component; in MatchNamedComponents()
1943 to_match = path + component; in MatchNamedComponents()
1952 component.c_str()); in MatchNamedComponents()