#include "str.h"


Go to the source code of this file.
Defines | |
| #define | TRIM_SWITCH(c) |
Functions | |
| static void | trim (str *_s) |
| Do trim_leading and trim_trailing. | |
| static void | trim_leading (str *_s) |
| Remove any leading whitechars, like spaces, horizontal tabs, carriage returns and line feeds. | |
| static void | trim_trailing (str *_s) |
| Remove any trailing white char, like spaces, horizontal tabs, carriage returns and line feeds. | |
| #define TRIM_SWITCH | ( | c | ) |
| static void trim | ( | str * | _s | ) | [inline, static] |
Do trim_leading and trim_trailing.
WARNING: String structure will be modified ! Make a copy otherwise you might be unable to free _s->s for example !
Definition at line 91 of file trim.h.
References trim_leading(), and trim_trailing().
Referenced by dlg_bridge_tm_callback(), dlg_new_dialog(), ds_hash_authusername(), ds_hash_callid(), ds_hash_fromuri(), ds_hash_pvar(), ds_hash_touri(), find_content_type_application_sdp(), get_callid(), get_user_agent(), parse_aaa_avps(), parse_algorithm(), parse_contacts(), parse_qop(), pre_match_parse(), and tr_txt_parse_re().
| static void trim_leading | ( | str * | _s | ) | [inline, static] |
Remove any leading whitechars, like spaces, horizontal tabs, carriage returns and line feeds.
WARNING: String descriptor structure will be modified ! Make a copy otherwise you might be unable to free _s->s for example !
Definition at line 59 of file trim.h.
References _str::len, _str::s, and TRIM_SWITCH.
Referenced by contact_parser(), do_parse_rr_body(), etag_parser(), event_parser(), expires_parser(), get_cseq_value(), parse_contacts(), parse_digest_cred(), parse_digest_param(), parse_digest_params(), parse_methods(), parse_param_name(), parse_params(), parse_privacy(), and trim().
| static void trim_trailing | ( | str * | _s | ) | [inline, static] |
Remove any trailing white char, like spaces, horizontal tabs, carriage returns and line feeds.
WARNING: String descriptor structure will be modified ! Make a copy otherwise you might be unable to free _s->s for example !
Definition at line 76 of file trim.h.
References _str::len, _str::s, and TRIM_SWITCH.
Referenced by pack_ci(), parse_contacts(), and trim().
1.5.6