Lines Matching refs:letter

42 // If this FilePath contains a drive letter specification, returns the
43 // position of the last character of the drive letter specification,
45 // begins with a letter followed by a colon. On other platforms, this always
81 StringType::size_type letter = FindDriveLetter(path);
82 if (letter != StringType::npos) {
84 return path.length() > letter + 1 &&
85 FilePath::IsSeparator(path[letter + 1]);
240 // Capture drive letter, if any.
242 StringType::size_type letter = FindDriveLetter(dir.value());
243 if (letter != StringType::npos) {
244 ret_val.push_back(StringType(dir.value(), 0, letter + 1));
304 // The drive letter, if any, always needs to remain in the output. If there
305 // is no drive letter, as will always be the case on platforms which do not
306 // support drive letters, letter will be npos, or -1, so the comparisons and
307 // resizes below using letter will still be valid.
308 StringType::size_type letter = FindDriveLetter(new_path.path_);
314 new_path.path_.resize(letter + 1);
315 } else if (last_separator == letter + 1) {
317 new_path.path_.resize(letter + 2);
318 } else if (last_separator == letter + 2 &&
319 IsSeparator(new_path.path_[letter + 1])) {
320 // path_ is in "//" (possibly with a drive letter); leave the double
322 new_path.path_.resize(letter + 3);
339 // The drive letter, if any, is always stripped.
340 StringType::size_type letter = FindDriveLetter(new_path.path_);
341 if (letter != StringType::npos) {
342 new_path.path_.erase(0, letter + 1);
488 // Don't append a separator if the path is just a drive letter.
601 // If there is no drive letter, start will be 1, which will prevent stripping
603 // letter, start will be set appropriately to prevent stripping the first
604 // separator following the drive letter, if a separator immediately follows
605 // the drive letter.