Home | History | Annotate | Download | only in base

Lines Matching defs: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
85 FilePath::StringType::size_type letter = FindDriveLetter(path);
86 if (letter != FilePath::StringType::npos) {
88 return path.length() > letter + 1 &&
89 FilePath::IsSeparator(path[letter + 1]);
148 // Capture drive letter, if any.
150 StringType::size_type letter = FindDriveLetter(dir.value());
151 if (letter != FilePath::StringType::npos) {
152 ret_val.push_back(FilePath::StringType(dir.value(), 0, letter + 1));
232 // The drive letter, if any, always needs to remain in the output. If there
233 // is no drive letter, as will always be the case on platforms which do not
234 // support drive letters, letter will be npos, or -1, so the comparisons and
235 // resizes below using letter will still be valid.
236 StringType::size_type letter = FindDriveLetter(new_path.path_);
243 new_path.path_.resize(letter + 1);
244 } else if (last_separator == letter + 1) {
246 new_path.path_.resize(letter + 2);
247 } else if (last_separator == letter + 2 &&
248 IsSeparator(new_path.path_[letter + 1])) {
249 // path_ is in "//" (possibly with a drive letter); leave the double
251 new_path.path_.resize(letter + 3);
268 // The drive letter, if any, is always stripped.
269 StringType::size_type letter = FindDriveLetter(new_path.path_);
270 if (letter != StringType::npos) {
271 new_path.path_.erase(0, letter + 1);
407 // Don't append a separator if the path is just a drive letter.
1093 // If there is no drive letter, start will be 1, which will prevent stripping
1095 // letter, start will be set appropriately to prevent stripping the first
1096 // separator following the drive letter, if a separator immediately follows
1097 // the drive letter.