Lines Matching refs:i
220 for (size_t i = 0; i < n; ++i) in buffer_append_iovec() local
221 len += iov[i].iov_len; in buffer_append_iovec()
223 for (size_t i = 0; i < n; ++i) { in buffer_append_iovec() local
224 if (0 == iov[i].iov_len) continue; in buffer_append_iovec()
226 s = mempcpy(s, iov[i].iov_base, iov[i].iov_len); in buffer_append_iovec()
228 memcpy(s, iov[i].iov_base, iov[i].iov_len); in buffer_append_iovec()
229 s += iov[i].iov_len; in buffer_append_iovec()
271 for (size_t i = 0; i < len; ++i) in buffer_copy_string_len_lc() local
272 d[i] = (!light_isupper(s[i])) ? s[i] : s[i] | 0x20; in buffer_copy_string_len_lc()
385 for (int i = 0, ilen = (int)len; i < ilen; i+=2) { in li_hex2bin() local
386 int hi = hexstr[i]; in li_hex2bin()
387 int lo = hexstr[i+1]; in li_hex2bin()
394 bin[(i >> 1)] = (unsigned char)((hi << 4) | lo); in li_hex2bin()
402 for (size_t i = 0; i < len; ++i) { in buffer_eq_icase_ssn() local
403 unsigned int ca = ((unsigned char *)a)[i]; in buffer_eq_icase_ssn()
404 unsigned int cb = ((unsigned char *)b)[i]; in buffer_eq_icase_ssn()
442 for (size_t i = 0; i < s_len; ++i) { in li_tohex_lc() local
443 buf[2*i] = hex_chars_lc[(s[i] >> 4) & 0x0F]; in li_tohex_lc()
444 buf[2*i+1] = hex_chars_lc[s[i] & 0x0F]; in li_tohex_lc()
453 for (size_t i = 0; i < s_len; ++i) { in li_tohex_uc() local
454 buf[2*i] = hex_chars_uc[(s[i] >> 4) & 0x0F]; in li_tohex_uc()
455 buf[2*i+1] = hex_chars_uc[s[i] & 0x0F]; in li_tohex_uc()
483 for (size_t i = 0; i < len; ++i) { in buffer_append_string_encoded_hex_lc() local
484 p[(i<<1)] = hex_chars_lc[(s[i] >> 4) & 0x0F]; in buffer_append_string_encoded_hex_lc()
485 p[(i<<1)+1] = hex_chars_lc[(s[i]) & 0x0F]; in buffer_append_string_encoded_hex_lc()
491 for (size_t i = 0; i < len; ++i) { in buffer_append_string_encoded_hex_uc() local
492 p[(i<<1)] = hex_chars_uc[(s[i] >> 4) & 0x0F]; in buffer_append_string_encoded_hex_uc()
493 p[(i<<1)+1] = hex_chars_uc[(s[i]) & 0x0F]; in buffer_append_string_encoded_hex_uc()
989 for (uint_fast32_t i = 0; i < used; ++i) { in buffer_to_lower() local
990 if (light_isupper(s[i])) s[i] |= 0x20; in buffer_to_lower()
998 for (uint_fast32_t i = 0; i < used; ++i) { in buffer_to_upper() local
999 if (light_islower(s[i])) s[i] &= 0xdf; in buffer_to_upper()