Lines Matching refs:begin

78         int i = auth.begin() + auth.length() - 1;
79 while (i > auth.begin() && spec[i] != '@')
84 parseUserInfo(spec, URLComponent(auth.begin(), i - auth.begin()), username, password);
85 parseServerInfo(spec, URLComponent::fromRange(i + 1, auth.begin() + auth.length()), host, port);
97 int begin = 0;
98 while (begin < specLength && shouldTrimFromURL(spec[begin]))
99 begin++;
100 if (begin == specLength)
104 for (int i = begin; i < specLength; i++) {
106 scheme = URLComponent::fromRange(begin, i);
118 // the colon) where we'll begin parsing.
153 int begin = 0;
154 trimURL(spec, begin, specLength);
164 afterScheme = begin;
183 int pathEnd = path.begin() + path.length();
187 for (int i = path.begin(); i < pathEnd; i++) {
227 if (fileEnd != path.begin())
228 filepath = URLComponent::fromRange(path.begin(), fileEnd);
248 int begin = 0;
249 trimURL(spec, begin, specLength);
253 if (begin == specLength) {
261 if (extractScheme(&spec[begin], specLength - begin, parsed.scheme)) {
263 parsed.scheme.setBegin(parsed.scheme.begin() + begin);
275 parsed.path = URLComponent::fromRange(begin, specLength);
293 int begin = 0;
294 trimURL(spec, begin, specLength);
298 if (begin == specLength) {
309 if (extractScheme(&spec[begin], specLength - begin, parsed.scheme)) {
311 parsed.scheme.setBegin(parsed.scheme.begin() + begin);
320 pathBegin = begin;
350 if (spec[component.begin() + i] != '0') {
351 nonZeroDigits = URLComponent::fromRange(component.begin() + i, component.end());
363 CHAR ch = spec[nonZeroDigits.begin() + i];
387 for (int i = path.end() - 1; i > path.begin(); --i) {
396 for (int i = fileEnd - 1; i >= path.begin(); --i) {
406 fileName = URLComponent::fromRange(path.begin(), fileEnd);
414 int start = query.begin();
423 key.setLength(current - key.begin());
433 value.setLength(current - value.begin());
459 // Given an already-initialized begin index and end index (the index after
462 static inline void trimURL(const CHAR* spec, int& begin, int& end)
465 while (begin < end && shouldTrimFromURL(spec[begin]))
466 ++begin;
471 while (end > begin && shouldTrimFromURL(spec[end - 1]))
512 while (colonOffset < user.length() && spec[user.begin() + colonOffset] != ':')
517 username = URLComponent(user.begin(), colonOffset);
518 password = URLComponent::fromRange(user.begin() + colonOffset + 1, user.begin() + user.length());
542 int ipv6Terminator = spec[serverInfo.begin()] == '[' ? serverInfo.end() : -1;
546 for (int i = serverInfo.begin(); i < serverInfo.end(); i++) {
561 host = URLComponent::fromRange(serverInfo.begin(), colon);