MCPcopy Create free account
hub / github.com/boostorg/parser / scalar_value

Function scalar_value

include/boost/parser/detail/text/transcode_iterator.hpp:172–175  ·  view source on GitHub ↗

Returns true iff `c` is a valid Unicode scalar value. \see Unicode 3.9/D90 */

Source from the content-addressed store, hash-verified

170
171 \see Unicode 3.9/D90 */
172 inline constexpr bool scalar_value(char32_t c)
173 {
174 return c <= 0x10ffff && !surrogate(c);
175 }
176
177 /** Returns true iff `c` is a Unicode scalar value not in the reserved
178 range.

Callers 1

unreserved_scalar_valueFunction · 0.85

Calls 1

surrogateFunction · 0.85

Tested by

no test coverage detected