Lines Matching +full:7 +full:- +full:1
1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors
24 static constexpr uint8_t utf8Reject = 1;
29 // clang-format off in decode()
33 …0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 00..1F in decode()
36 …0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 60..7F in decode()
37 …1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, //… in decode()
38 …7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, //… in decode()
43 …1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, //… in decode()
44 …1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, //… in decode()
45 …1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, //… in decode()
46 …1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 // … in decode()
49 // clang-format on in decode()
179 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) in dumpEscaped()
180 std::snprintf(&stringBuffer[bytes], 7, in dumpEscaped()
187 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) in dumpEscaped()
210 if (stringBuffer.size() - bytes < 13) in dumpEscaped()
222 case utf8Reject: // decode found invalid UTF-8 byte in dumpEscaped()
230 --i; in dumpEscaped()
253 default: // decode found yet incomplete multi-byte code point in dumpEscaped()
280 unsigned int nDigits = 1; in countDigits()
289 return nDigits + 1; in countDigits()
313 {'0', '0'}, {'0', '1'}, {'0', '2'}, {'0', '3'}, {'0', '4'}, {'0', '5'}, in dumpInteger()
314 {'0', '6'}, {'0', '7'}, {'0', '8'}, {'0', '9'}, {'1', '0'}, {'1', '1'}, in dumpInteger()
315 {'1', '2'}, {'1', '3'}, {'1', '4'}, {'1', '5'}, {'1', '6'}, {'1', '7'}, in dumpInteger()
316 {'1', '8'}, {'1', '9'}, {'2', '0'}, {'2', '1'}, {'2', '2'}, {'2', '3'}, in dumpInteger()
317 {'2', '4'}, {'2', '5'}, {'2', '6'}, {'2', '7'}, {'2', '8'}, {'2', '9'}, in dumpInteger()
318 {'3', '0'}, {'3', '1'}, {'3', '2'}, {'3', '3'}, {'3', '4'}, {'3', '5'}, in dumpInteger()
319 {'3', '6'}, {'3', '7'}, {'3', '8'}, {'3', '9'}, {'4', '0'}, {'4', '1'}, in dumpInteger()
320 {'4', '2'}, {'4', '3'}, {'4', '4'}, {'4', '5'}, {'4', '6'}, {'4', '7'}, in dumpInteger()
321 {'4', '8'}, {'4', '9'}, {'5', '0'}, {'5', '1'}, {'5', '2'}, {'5', '3'}, in dumpInteger()
322 {'5', '4'}, {'5', '5'}, {'5', '6'}, {'5', '7'}, {'5', '8'}, {'5', '9'}, in dumpInteger()
323 {'6', '0'}, {'6', '1'}, {'6', '2'}, {'6', '3'}, {'6', '4'}, {'6', '5'}, in dumpInteger()
324 {'6', '6'}, {'6', '7'}, {'6', '8'}, {'6', '9'}, {'7', '0'}, {'7', '1'}, in dumpInteger()
325 {'7', '2'}, {'7', '3'}, {'7', '4'}, {'7', '5'}, {'7', '6'}, {'7', '7'}, in dumpInteger()
326 {'7', '8'}, {'7', '9'}, {'8', '0'}, {'8', '1'}, {'8', '2'}, {'8', '3'}, in dumpInteger()
327 {'8', '4'}, {'8', '5'}, {'8', '6'}, {'8', '7'}, {'8', '8'}, {'8', '9'}, in dumpInteger()
328 {'9', '0'}, {'9', '1'}, {'9', '2'}, {'9', '3'}, {'9', '4'}, {'9', '5'}, in dumpInteger()
329 {'9', '6'}, {'9', '7'}, {'9', '8'}, {'9', '9'}, in dumpInteger()
350 *bufferPtr = '-'; in dumpInteger()
351 absValue = static_cast<uint64_t>(0 - number); in dumpInteger()
354 nChars = 1 + countDigits(absValue); in dumpInteger()
362 // spare 1 byte for '\0' in dumpInteger()
363 if (nChars >= numberbuffer.size() - 1) in dumpInteger()
370 std::advance(bufferPtr, nChars - 1); in dumpInteger()
373 // Alexandrescu See: https://www.youtube.com/watch?v=o4-CwDo2zpg in dumpInteger()
378 *bufferPtr = digitsTo99[digitsIndex][1]; in dumpInteger()
387 *bufferPtr = digitsTo99[digitsIndex][1]; in dumpInteger()
482 // first n-1 elements in dump()
483 for (auto i = val.cbegin(); i != val.cend() - 1; ++i) in dump()
588 "text/html;charset=UTF-8"); in prettyPrintJson()