MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / is_ws

Function is_ws

trim.h:28–35  ·  view source on GitHub ↗

whitespace */

Source from the content-addressed store, hash-verified

26
27/* whitespace */
28static inline int
29is_ws(unsigned char ch)
30{
31 const unsigned int mask = (1U << (' ' - 1)) | (1U << ('\r' - 1)) |
32 (1U << ('\n' - 1)) | (1U << ('\t' - 1));
33 ch--;
34 return ch < ' ' && ((1U << ch) & mask);
35}
36
37/*
38 * trim leading ws

Callers 15

parse_sdp_pv_indexFunction · 0.85
pv_get_sdp_lineFunction · 0.85
pv_get_sdp_streamFunction · 0.85
pv_get_sdp_sessionFunction · 0.85
parse_pvname_listFunction · 0.85
parse_transformationFunction · 0.85
tr_parse_nparamFunction · 0.85
tr_parse_sparamFunction · 0.85
mk_included_file_pathFunction · 0.85
_cfg_dump_contextFunction · 0.85
_tmrec_expr_check_strFunction · 0.85
tmrec_expr_parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected