Lines Matching refs:U
55 void PrintASCII(const Unit &U, const char *PrintAfter) { in PrintASCII() argument
56 PrintASCII(U.data(), U.size(), PrintAfter); in PrintASCII()
73 bool IsASCII(const Unit &U) { return IsASCII(U.data(), U.size()); } in IsASCII() argument
81 bool ParseOneDictionaryEntry(const std::string &Str, Unit *U) { in ParseOneDictionaryEntry() argument
82 U->clear(); in ParseOneDictionaryEntry()
104 U->push_back(Str[Pos + 1]); in ParseOneDictionaryEntry()
114 U->push_back(static_cast<uint8_t>(strtol(Hex, nullptr, 16))); in ParseOneDictionaryEntry()
121 U->push_back(V); in ParseOneDictionaryEntry()
134 Unit U; in ParseDictionaryFile() local
143 if (ParseOneDictionaryEntry(S, &U)) { in ParseDictionaryFile()
144 Units->push_back(U); in ParseDictionaryFile()
155 std::string Base64(const Unit &U) { in Base64() argument
160 Buffer.resize(((U.size() + 2) / 3) * 4); in Base64()
163 for (size_t n = U.size() / 3 * 3; i < n; i += 3, j += 4) { in Base64()
164 uint32_t x = ((unsigned char)U[i] << 16) | ((unsigned char)U[i + 1] << 8) | in Base64()
165 (unsigned char)U[i + 2]; in Base64()
171 if (i + 1 == U.size()) { in Base64()
172 uint32_t x = ((unsigned char)U[i] << 16); in Base64()
177 } else if (i + 2 == U.size()) { in Base64()
178 uint32_t x = ((unsigned char)U[i] << 16) | ((unsigned char)U[i + 1] << 8); in Base64()