Lines Matching defs:state
394 std::uint8_t state = UTF8_ACCEPT;
405 switch (decode(state, codepoint, byte))
566 state = UTF8_ACCEPT;
590 if (JSON_HEDLEY_LIKELY(state == UTF8_ACCEPT))
883 result of the check is stored in the @a state parameter. The function must
884 be called initially with state 0 (accept). State 1 means the string must
886 completely processed, but the state is non-zero, the string ended
890 @param[in,out] state the state of the decoding
891 @param[in,out] codep codepoint (valid only if resulting state is UTF8_ACCEPT)
893 @return new state
900 static std::uint8_t decode(std::uint8_t& state, std::uint32_t& codep, const std::uint8_t byte) noexcept
925 codep = (state != UTF8_ACCEPT)
929 std::size_t index = 256u + static_cast<size_t>(state) * 16u + static_cast<size_t>(type);
931 state = utf8d[index];
932 return state;