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

Function find_not_quoted

parser/parser_f.h:83–96  ·  view source on GitHub ↗

* Find a character occurrence that is not quoted */

Source from the content-addressed store, hash-verified

81 * Find a character occurrence that is not quoted
82 */
83inline static char* find_not_quoted(str* _s, char _c)
84{
85 int quoted = 0, i;
86
87 for(i = 0; i < _s->len; i++) {
88 if (!quoted) {
89 if (_s->s[i] == '\"') quoted = 1;
90 else if (_s->s[i] == _c) return _s->s + i;
91 } else {
92 if ((_s->s[i] == '\"') && (_s->s[i - 1] != '\\')) quoted = 0;
93 }
94 }
95 return 0;
96}
97
98
99#endif /* parser_f_h */

Callers 4

is_rpid_user_e164Function · 0.85
assemble_msgFunction · 0.85
get_raw_uriFunction · 0.85
parse_nameaddrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected