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

Function eat_lws_end

parser/parser_f.h:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41#define SP(_c) ((_c)=='\t' || (_c)==' ')
42inline static char* eat_lws_end(const char* p, const char* pend)
43{
44 while(p<pend) {
45 if (SP(*p)) p++;
46 /* BTW--I really dislike line folding; -jiri */
47 else if (*p=='\n' && p+1<pend && SP(*(p+1))) p+=2;
48 else if (*p=='\r' && p+2<pend && *(p+1)=='\n'
49 && SP(*(p+2))) p+=3;
50 else break; /* no whitespace encountered */
51 }
52 return (char *)p;
53}
54
55
56

Callers 6

extract_mangled_touriFunction · 0.85
extract_mangled_fromuriFunction · 0.85
get_hdr_field_auxFunction · 0.85
get_hdr_field_unparsedFunction · 0.85
parse_cseqFunction · 0.85
get_sdp_hdr_fieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected