Lines Matching refs:npos
44 // otherwise returns npos. This can only be true on Windows, when a pathname
46 // returns npos.
57 return StringType::npos;
65 if (a_letter_pos == StringType::npos || b_letter_pos == StringType::npos)
82 if (letter != StringType::npos) {
107 // Returns npos if it can't find an extension.
111 return StringType::npos;
124 if (last_dot == StringType::npos || last_dot == 0U)
132 if (penultimate_dot == StringType::npos ||
133 (last_separator != StringType::npos &&
178 if (nul_pos != StringType::npos)
179 path_.erase(nul_pos, StringType::npos);
243 if (letter != StringType::npos) {
272 if ((FindDriveLetter(*parent_comp) != StringType::npos) &&
273 (FindDriveLetter(*child_comp) != StringType::npos)) {
306 // support drive letters, letter will be npos, or -1, so the comparisons and
311 kSeparators, StringType::npos, kSeparatorsLength - 1);
312 if (last_separator == StringType::npos) {
341 if (letter != StringType::npos) {
348 kSeparators, StringType::npos, kSeparatorsLength - 1);
349 if (last_separator != StringType::npos &&
360 if (dot == StringType::npos)
363 return base.path_.substr(dot, StringType::npos);
369 if (dot == StringType::npos)
372 return base.path_.substr(dot, StringType::npos);
380 if (dot == StringType::npos)
391 if (dot == StringType::npos)
460 if (nul_pos != StringViewType::npos) {
542 if (path_.find(kParentDirectory) == StringType::npos) {
559 std::string::npos &&
560 component.find(kParentDirectory) != std::string::npos) {
608 StringType::size_type last_stripped = StringType::npos;