MCPcopy Create free account
hub / github.com/coreutils/coreutils / c32issep

Function c32issep

src/system.h:176–185  ·  view source on GitHub ↗

c32isblank() is too variable on non GLIBC platforms. E.g., does not include \u3000 ideographic space on musl. E.g., does include non-breaking space on Solaris and NetBSD. This equivalent is more consistent across systems. */

Source from the content-addressed store, hash-verified

174 E.g., does include non-breaking space on Solaris and NetBSD.
175 This equivalent is more consistent across systems. */
176ATTRIBUTE_PURE
177static inline bool
178c32issep (char32_t wc)
179{
180#if defined __GLIBC__
181 return !! c32isblank (wc);
182#else
183 return c32isspace (wc) && ! c32isvertspace (wc) && ! c32isnbspace (wc);
184#endif
185}
186
187/* Return true if the current charset is UTF-8. */
188static inline bool

Callers 9

newline_or_blankFunction · 0.85
comma_or_blankFunction · 0.85
newline_or_blankFunction · 0.85
expandFunction · 0.85
newline_or_blankFunction · 0.85
simple_strtod_humanFunction · 0.85
unexpandFunction · 0.85
fold_fileFunction · 0.85
mcel_isblankFunction · 0.85

Calls 2

c32isvertspaceFunction · 0.85
c32isnbspaceFunction · 0.85

Tested by

no test coverage detected