ArvStr

ArvStr — String utilities

Functions

Description

Functions

arv_str_strip ()

char *
arv_str_strip (char *str,
               const char *illegal_chars,
               char replacement_char);

Remove any illegal_chars from str , and replace them by replacement_char if they are not at the end or at the beginning of str . Several consecutive illegal_chars are replaced by only one replacement_char . illegal_chars at the beginnig or at the end of str are simply removed.

If replacement_char is '\0', all illegal_chars are simply removed.

Parameters

str

a string.

[allow-none]

illegal_chars

illegal characters

 

replacement_char

replacement character

 

Returns

str

Since: 0.4.0


arv_str_is_uri ()

gboolean
arv_str_is_uri (const char *str);

arv_str_to_uri ()

char *
arv_str_to_uri (const char *str);

arv_str_parse_double ()

gboolean
arv_str_parse_double (char **str,
                      double *x);

arv_str_parse_double_list ()

unsigned int
arv_str_parse_double_list (char **str,
                           unsigned int n_values,
                           double *values);

arv_str_skip_char ()

void
arv_str_skip_char (char **str,
                   char c);

arv_str_skip_colon_and_spaces ()

void
arv_str_skip_colon_and_spaces (char **str);

arv_str_skip_comma_and_spaces ()

void
arv_str_skip_comma_and_spaces (char **str);

arv_str_skip_semicolon_and_spaces ()

void
arv_str_skip_semicolon_and_spaces (char **str);

arv_str_skip_spaces ()

void
arv_str_skip_spaces (char **str);

Types and Values