1 if [ "$ENCODING" = "utf8" ]; then
3 ARRAYTYPE="UTF-8-encoded string"
9 ARRAYTYPE="codepoint array"
12 DATATYPE="uint_least32_t"
17 .Dt GRAPHEME_IS_$(printf "%s%s" "$CASE" "$SUFFIX" | tr [:lower:] [:upper:]) 3
20 .Nm grapheme_is_${CASE}${SUFFIX}
21 .Nd check if ${ARRAYTYPE} is ${CASE}
25 .Fn grapheme_is_${CASE}${SUFFIX} "const ${DATATYPE} *str" "size_t len" "size_t *caselen"
28 .Fn grapheme_is_${CASE}${SUFFIX}
29 function checks if the ${ARRAYTYPE}
31 is ${CASE} and writes the length of the matching ${CASE}-sequence to the integer pointed to by
42 (stdint.h is already included by grapheme.h) the ${ARRAYTYPE}
44 is interpreted to be NUL-terminated and processing stops when a
45 NUL-byte is encountered.
47 For $(if [ "$ENCODING" != "utf8" ]; then printf "UTF-8-encoded"; else printf "non-UTF-8"; fi) input data
48 .Xr grapheme_is_${CASE}${ANTISUFFIX} 3
52 .Fn grapheme_is_${CASE}${SUFFIX}
60 .Xr grapheme_is_${CASE}${ANTISUFFIX} 3 ,
63 .Fn grapheme_is_${CASE}${SUFFIX}
64 is compliant with the Unicode ${UNICODE_VERSION} specification.
66 .An Laslo Hunhold Aq Mt dev@frign.de