Lines Matching refs:offset

983 char_offset_until_fn_false(const char* url, int32 len, int32 offset,
986 while (offset < len && fn(url[offset]))
987 offset++;
989 return offset;
1007 int32 offset = 0;
1017 while (offset < length) {
1023 offset, explode_is_protocol_char);
1026 SetProtocol(BString(&url_c[offset], end_protocol - offset));
1028 offset = end_protocol;
1033 offset = 0;
1041 if (url[offset] == ':') {
1042 offset++;
1047 offset = 0;
1057 if (strncmp(&url_c[offset], "//", 2) == 0) {
1062 offset += 2;
1072 offset, explode_is_authority_char);
1073 SetAuthority(BString(&url_c[offset], end_authority - offset));
1075 offset = end_authority;
1081 int end_path = char_offset_until_fn_false(url_c, length, offset,
1083 BString path(&url_c[offset], end_path - offset);
1090 offset = end_path;
1096 if (url_c[offset] == '?') {
1097 offset++;
1099 offset, explode_is_request_char);
1100 SetRequest(BString(&url_c[offset], end_request - offset));
1101 offset = end_request;
1113 if (url_c[offset] == '#') {
1114 offset++;
1115 SetFragment(BString(&url_c[offset], length - offset));
1116 offset = length;
1193 int32 offset = 0;
1197 while (AUTHORITY_COMPLETE != state && offset < length) {
1205 authority_c, length, offset, _IsUsernameChar);
1207 SetUserName(BString(&authority_c[offset],
1208 end_username - offset));
1211 offset = end_username;
1220 if (hasUsernamePassword && ':' == authority[offset]) {
1221 offset++; // move past the delimiter
1223 authority_c, length, offset, _IsPasswordChar);
1225 SetPassword(BString(&authority_c[offset],
1226 end_password - offset));
1228 offset = end_password;
1234 if (authority_c[offset] == '@') {
1235 offset++;
1248 if (authority_c[offset] == '[') {
1250 authority_c, length, offset + 1, _IsIPV6Char);
1253 SetHost(BString(&authority_c[offset],
1254 (end_ipv6_host - offset) + 1));
1256 offset = end_ipv6_host + 1;
1264 authority_c, length, offset, _IsHostChar);
1266 SetHost(BString(&authority_c[offset], end_host - offset));
1268 offset = end_host;
1276 if (authority_c[offset] == ':') {
1277 offset++;
1279 authority_c, length, offset, _IsPortChar);
1280 SetPort(atoi(&authority_c[offset]));
1281 offset = end_port;
1362 BUrl::_IsHostIPV6Valid(size_t offset, int32 length) const
1365 char c = fHost[offset + i];