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

Function skip_str_matching

gl/lib/skipchars.h:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 call if OK is false. */
29
30SKIPCHARS_INLINE char *
31skip_str_matching (char const *str, bool (*predicate) (mcel_t), bool ok)
32{
33 char const *s = str;
34 for (mcel_t g; *s && predicate (g = mcel_scanz (s)) == ok;
35 s += g.len)
36 continue;
37 return (char *) s;
38}
39
40/* Return the address just past the leading sequence of possibly
41 multi-byte characters or encoding errors G in BUF (which ends at LIM)

Callers 4

add_field_listFunction · 0.85
simple_strtod_humanFunction · 0.85
process_suffixed_numberFunction · 0.85
next_fieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected