Lines Matching +full:- +full:1
7 * http://www.apache.org/licenses/LICENSE-2.0
28 …for (size_t i = 0, j = 0; i < encodedRes.length() - 2; i += TRANSFORMED_CHAR_NUM, j += TO_TRANSFOR… in Base64Encode()
33 …encodedRes[i + 1] = base64CharSet[(inputString[j] & 0x03) << 4 | (inputString[j + 1] & 0xf0) >> 4]; in Base64Encode()
35 …encodedRes[i + 2] = base64CharSet[(inputString[j + 1] & 0x0f) << 2 | (inputString[j + 2] & 0xc0) >… in Base64Encode()
40 case 1: in Base64Encode()
41 encodedRes[encodedRes.length() - 2] = '='; in Base64Encode()
42 encodedRes[encodedRes.length() - 1] = '='; in Base64Encode()
45 encodedRes[encodedRes.length() - 1] = '='; in Base64Encode()
56 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in Base64Decode()
57 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in Base64Decode()
58 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in Base64Decode()
59 -1, -1, -1, -1, -1, -1, -1, in Base64Decode()
61 -1, -1, -1, in Base64Decode()
64 -1, -1, -1, -1, -1, -1, -1, in Base64Decode()
65 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, in Base64Decode()
67 -1, -1, -1, -1, -1, -1, in Base64Decode()
75 decodedStrLen -= std::string("==").length(); in Base64Decode()
77 decodedStrLen -= std::string("=").length(); in Base64Decode()
84 … for (size_t i = 0, j = 0; i < strLen - 2; i += TRANSFORMED_CHAR_NUM, j += TO_TRANSFORM_CHAR_NUM) { in Base64Decode()
86 secondChar = decodeTable[static_cast<unsigned char>(base64String[i + 1])]; in Base64Decode()
90 if (firstChar == -1 || secondChar == -1) { 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()
95 if (j == decodedStrLen - 1) { in Base64Decode()
98 if (thirdChar == -1) { 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()
103 if (j + 1 == decodedStrLen - 1) { in Base64Decode()
106 if (fourthChar == -1) { in Base64Decode()