Lines Matching +full:- +full:1
7 * http://www.apache.org/licenses/LICENSE-2.0
28 // 2: the index do not exceed the range of encodedRes and form a complete four-character block in Base64Encode()
29 …for (size_t i = 0, j = 0; i < encodedRes.length() - 2; i += TRANSFORMED_CHAR_NUM, j += TO_TRANSFOR… in Base64Encode()
34 encodedRes[i + 1] = base64CharSet[(static_cast<unsigned int>(inputString[j]) & 0x03) << 4 | in Base64Encode()
35 (static_cast<unsigned int>(inputString[j + 1]) & 0xf0) >> 4]; in Base64Encode()
37 … encodedRes[i + 2] = base64CharSet[(static_cast<unsigned int>(inputString[j + 1]) & 0x0f) << 2 | in Base64Encode()
44 case 1: in Base64Encode()
45 // 1,2: the original character is one, and two characters are missing after conversion in Base64Encode()
46 encodedRes[encodedRes.length() - 2] = '='; in Base64Encode()
47 encodedRes[encodedRes.length() - 1] = '='; in Base64Encode()
50 // 1: the original character is two, and a character are missing after conversion in Base64Encode()
51 encodedRes[encodedRes.length() - 1] = '='; in Base64Encode()
62 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in Base64Decode()
63 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in Base64Decode()
64 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in Base64Decode()
65 -1, -1, -1, -1, -1, -1, -1, in Base64Decode()
67 -1, -1, -1, in Base64Decode()
70 -1, -1, -1, -1, -1, -1, -1, in Base64Decode()
71 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, in Base64Decode()
73 -1, -1, -1, -1, -1, -1, in Base64Decode()
81 decodedStrLen -= std::string("==").length(); in Base64Decode()
83 decodedStrLen -= std::string("=").length(); in Base64Decode()
90 // 2: the index do not exceed the range of encodedRes and form a complete four-character block in Base64Decode()
91 … for (size_t i = 0, j = 0; i < strLen - 2; i += TRANSFORMED_CHAR_NUM, j += TO_TRANSFORM_CHAR_NUM) { in Base64Decode()
92 // 1,2,3 is the nth character after the current position in Base64Decode()
94 secondChar = decodeTable[static_cast<unsigned char>(base64String[i + 1])]; in Base64Decode()
98 if (firstChar == -1 || secondChar == -1) { in Base64Decode()
101 // the last 6 bit of the first char + the 2~3 bit of the second char(first 4 bit - 00) in Base64Decode()
103 if (j == decodedStrLen - 1) { in Base64Decode()
106 if (thirdChar == -1) { in Base64Decode()
109 // the last 4 bit of the second char + the 2~5 bit of the third char(first 6 bit - 00) in Base64Decode()
110 …decodedRes[j + 1] = (static_cast<unsigned int>(secondChar) << 4) | (static_cast<unsigned int>(thir… in Base64Decode()
111 if (j + 1 == decodedStrLen - 1) { in Base64Decode()
114 if (fourthChar == -1) { in Base64Decode()