MCPcopy Create free account
hub / github.com/F-Stack/f-stack / blocked

Function blocked

freebsd/contrib/openzfs/module/unicode/u8_textprep.c:1031–1044  ·  view source on GitHub ↗

* The blocked() function checks on the combining class values of previous * characters in this sequence and return whether it is blocked or not. */

Source from the content-addressed store, hash-verified

1029 * characters in this sequence and return whether it is blocked or not.
1030 */
1031static boolean_t
1032blocked(uchar_t *comb_class, size_t last)
1033{
1034 uchar_t my_comb_class;
1035 size_t i;
1036
1037 my_comb_class = comb_class[last];
1038 for (i = 1; i < last; i++)
1039 if (comb_class[i] >= my_comb_class ||
1040 comb_class[i] == U8_COMBINING_CLASS_STARTER)
1041 return (B_TRUE);
1042
1043 return (B_FALSE);
1044}
1045
1046/*
1047 * The do_composition() reads the character string pointed by 's' and

Callers 1

do_compositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected