Lines Matching defs:length
37 bool IsReplacementCharacter(const uint8_t* octets, int length) {
40 if (length != 3 || octets[0] != 0xEF || octets[1] != 0xBF ||
47 bool DecodeOctets(const uint8_t* octets, int length,
50 base::uc32 value = unibrow::Utf8::ValueOf(octets, length, &cursor);
52 !IsReplacementCharacter(octets, length)) {
145 int uri_length = uri->length();
284 int uri_length = uri->length();
329 int UnescapeChar(base::Vector<const Char> vector, int i, int length,
334 if (character == '%' && i <= length - 6 && vector[i + 1] == 'u' &&
339 } else if (character == '%' && i <= length - 3 &&
353 int length = string->length();
359 for (int i = start_index; i < length; unescaped_length++) {
361 if (UnescapeChar(vector, i, length, &step) >
369 DCHECK(start_index < length);
382 for (int i = start_index; i < length; dest_position++) {
385 UnescapeChar(vector, i, length, &step));
395 for (int i = start_index; i < length; dest_position++) {
398 UnescapeChar(vector, i, length, &step));
443 int length = string->length();
448 for (int i = 0; i < length; i++) {
458 // We don't allow strings that are longer than a maximal length.
464 // No length change implies no change. Return original string if no change.
465 if (escaped_length == length) return string;
476 for (int i = 0; i < length; i++) {