trim.h File Reference

#include "str.h"

Include dependency graph for trim.h:

This graph shows which files directly or indirectly include this file:

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 Documentation

#define TRIM_SWITCH (  ) 

Definition at line 36 of file trim.h.

Referenced by trim_leading(), and trim_trailing().


Function Documentation

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().


Generated on Thu May 24 20:00:45 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6