Lines Matching refs:spec
43 // Given a pointer into the spec, this copies and canonicalizes the drive
45 // spec, it won't do anything. The index of the next character in the input
46 // spec is returned (after the colon when a drive spec is found, the begin
49 int FileDoDriveSpec(const CHAR* spec, int begin, int end,
53 int num_slashes = url_parse::CountConsecutiveSlashes(spec, begin, end);
56 if (!url_parse::DoesBeginWindowsDriveSpec(spec, after_slashes, end))
59 // A drive spec is the start of a path, so we need to add a slash for the
67 if (spec[after_slashes] >= 'a' && spec[after_slashes] <= 'z')
68 output->push_back(spec[after_slashes] - 'a' + 'A');
70 output->push_back(static_cast<char>(spec[after_slashes]));
80 bool DoFileCanonicalizePath(const CHAR* spec,
88 after_drive = FileDoDriveSpec(spec, path.begin, path.end(), output);
103 success = CanonicalizePath(spec, sub_path, output, &fake_output_path);
150 bool CanonicalizeFileURL(const char* spec,
157 URLComponentSource<char>(spec), parsed, query_converter,
161 bool CanonicalizeFileURL(const char16* spec,
168 URLComponentSource<char16>(spec), parsed, query_converter,
172 bool FileCanonicalizePath(const char* spec,
176 return DoFileCanonicalizePath<char, unsigned char>(spec, path,
180 bool FileCanonicalizePath(const char16* spec,
184 return DoFileCanonicalizePath<char16, char16>(spec, path,