Lines Matching refs:i
80 UINT i; in _nx_utility_string_length_check() local
90 for (i = 0; input_string[i]; i++) in _nx_utility_string_length_check()
94 if (i >= max_string_length) in _nx_utility_string_length_check()
105 *string_length = i; in _nx_utility_string_length_check()
154 UINT i; in _nx_utility_string_to_uint() local
170 i = 0; in _nx_utility_string_to_uint()
174 while (i < string_length) in _nx_utility_string_to_uint()
178 if ((input_string[i] >= '0') && (input_string[i] <= '9')) in _nx_utility_string_to_uint()
182 if (((*number == 429496729) && (input_string[i] > '5')) || in _nx_utility_string_to_uint()
189 *number = (*number * 10) + (UINT) (input_string[i] - '0'); in _nx_utility_string_to_uint()
196 i++; in _nx_utility_string_to_uint()
251 UINT i; in _nx_utility_uint_to_string() local
262 i = 0; in _nx_utility_uint_to_string()
270 for (i = size; i != 0; i--) in _nx_utility_uint_to_string()
274 string_buffer[i] = string_buffer[i-1]; in _nx_utility_uint_to_string()
364 UINT i, j; in _nx_utility_base64_encode() local
413 i = 0; in _nx_utility_base64_encode()
422 base64name[j++] = (UCHAR)_nx_utility_base64_array[((UCHAR)name[i]) >> 2]; in _nx_utility_base64_encode()
429 if ((i + 1) < input_name_size) in _nx_utility_base64_encode()
431 …name[j++] = (UCHAR)_nx_utility_base64_array[((((UCHAR)name[i]) & 0x3) << 4) | (((UCHAR)name[i + 1]… in _nx_utility_base64_encode()
437 base64name[j++] = (UCHAR)_nx_utility_base64_array[(((UCHAR)name[i]) & 0x3) << 4]; in _nx_utility_base64_encode()
439 i++; in _nx_utility_base64_encode()
446 if ((i + 1) < input_name_size) in _nx_utility_base64_encode()
448 …name[j++] = (UCHAR)_nx_utility_base64_array[((((UCHAR)name[i]) & 0xF) << 2) | (((UCHAR)name[i + 1]… in _nx_utility_base64_encode()
454 base64name[j++] = (UCHAR)_nx_utility_base64_array[(((UCHAR)name[i]) & 0xF) << 2]; in _nx_utility_base64_encode()
456 i++; in _nx_utility_base64_encode()
463 base64name[j++] = (UCHAR)_nx_utility_base64_array[(((UCHAR)name[i]) & 0x3F)]; in _nx_utility_base64_encode()
464 i++; in _nx_utility_base64_encode()
535 UINT i, j; in _nx_utility_base64_decode() local
576 i = 0; in _nx_utility_base64_decode()
577 while ((j < base64name_size) && (base64name[i]) && (base64name[i] != '=')) in _nx_utility_base64_decode()
581 if ((base64name[i] >= 'A') && (base64name[i] <= 'Z')) in _nx_utility_base64_decode()
582 value1 = (UINT) (base64name[i] - 'A'); in _nx_utility_base64_decode()
583 else if ((base64name[i] >= 'a') && (base64name[i] <= 'z')) in _nx_utility_base64_decode()
584 value1 = (UINT) (base64name[i] - 'a') + 26; in _nx_utility_base64_decode()
585 else if ((base64name[i] >= '0') && (base64name[i] <= '9')) in _nx_utility_base64_decode()
586 value1 = (UINT) (base64name[i] - '0') + 52; in _nx_utility_base64_decode()
587 else if ((base64name[i] == '+') || in _nx_utility_base64_decode()
588 (base64name[i] == '-')) /* Base64 URL. */ in _nx_utility_base64_decode()
590 else if ((base64name[i] == '/') || in _nx_utility_base64_decode()
591 (base64name[i] == '_')) /* Base64 URL. */ in _nx_utility_base64_decode()
597 if ((base64name[i + 1] >= 'A') && (base64name[i + 1] <= 'Z')) in _nx_utility_base64_decode()
598 value2 = (UINT) (base64name[i+1] - 'A'); in _nx_utility_base64_decode()
599 else if ((base64name[i + 1] >= 'a') && (base64name[i + 1] <= 'z')) in _nx_utility_base64_decode()
600 value2 = (UINT) (base64name[i+1] - 'a') + 26; in _nx_utility_base64_decode()
601 else if ((base64name[i + 1] >= '0') && (base64name[i + 1] <= '9')) in _nx_utility_base64_decode()
602 value2 = (UINT) (base64name[i+1] - '0') + 52; in _nx_utility_base64_decode()
603 else if ((base64name[i + 1] == '+') || in _nx_utility_base64_decode()
604 (base64name[i + 1] == '-')) /* Base64 URL. */ in _nx_utility_base64_decode()
606 else if ((base64name[i + 1] == '/') || in _nx_utility_base64_decode()
607 (base64name[i + 1] == '_')) /* Base64 URL. */ in _nx_utility_base64_decode()
618 i++; in _nx_utility_base64_decode()
626 i++; in _nx_utility_base64_decode()
634 i++; in _nx_utility_base64_decode()
635 i++; in _nx_utility_base64_decode()