• Home
  • Raw
  • Download

Lines Matching +full:2 +full:i

28 …for (size_t i = 0, j = 0; i < encodedRes.length() - 2; i += TRANSFORMED_CHAR_NUM, j += TO_TRANSFOR…  in Base64Encode()  local
31 encodedRes[i] = base64CharSet[(inputString[j] & 0xff) >> 2]; in Base64Encode()
32 // 00 + the last 2 bits of the first char + the first 4 bits of the second char in Base64Encode()
33 …encodedRes[i + 1] = base64CharSet[(inputString[j] & 0x03) << 4 | (inputString[j + 1] & 0xf0) >> 4]; in Base64Encode()
34 // 00 + last 4 bits of the second char + the first 2 bits of the third char in Base64Encode()
35 …encodedRes[i + 2] = base64CharSet[(inputString[j + 1] & 0x0f) << 2 | (inputString[j + 2] & 0xc0) >… in Base64Encode()
37 encodedRes[i + 3] = base64CharSet[inputString[j + 2] & 0x3f]; in Base64Encode()
41 encodedRes[encodedRes.length() - 2] = '='; in Base64Encode()
44 case 2: in Base64Encode()
65 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, in Base64Decode()
84 … for (size_t i = 0, j = 0; i < strLen - 2; i += TRANSFORMED_CHAR_NUM, j += TO_TRANSFORM_CHAR_NUM) { in Base64Decode() local
85 firstChar = decodeTable[static_cast<unsigned char>(base64String[i])]; in Base64Decode()
86 secondChar = decodeTable[static_cast<unsigned char>(base64String[i + 1])]; in Base64Decode()
87 thirdChar = decodeTable[static_cast<unsigned char>(base64String[i + 2])]; in Base64Decode()
88 fourthChar = decodeTable[static_cast<unsigned char>(base64String[i + 3])]; in Base64Decode()
93 // the last 6 bit of the first char + the 2~3 bit of the second char(first 4 bit - 00) in Base64Decode()
94 decodedRes[j] = (firstChar << 2) | (secondChar >> 4); in Base64Decode()
101 // the last 4 bit of the second char + the 2~5 bit of the third char(first 6 bit - 00) in Base64Decode()
102 decodedRes[j + 1] = (secondChar << 4) | (thirdChar >> 2); in Base64Decode()
109 // the last 2 bit of the third char + the last 6 bit of the fourth char in Base64Decode()
110 decodedRes[j + 2] = (thirdChar << 6) | fourthChar; in Base64Decode()