|
YAZ
4.2.60
|
Implements URI utilities. More...
Go to the source code of this file.
Functions | |
| static int | hex_digit (int ch) |
| static void | encode_uri_char (char *dst, char ch) |
| void | yaz_encode_uri_component (char *dst, const char *uri) |
| encodes URI component | |
| static unsigned char | decode_uri_char (const char *path, size_t *len) |
| void | yaz_decode_uri_component (char *dst, const char *uri, size_t len) |
| decodes URI component | |
| void | yaz_array_to_uri (char **path, ODR o, char **name, char **value) |
| int | yaz_uri_to_array (const char *path, ODR o, char ***name, char ***val) |
| char * | yaz_uri_val (const char *path, const char *name, ODR o) |
| deprecated | |
Implements URI utilities.
Definition in file uri.c.
|
static |
Definition at line 55 of file uri.c.
References hex_digit().
Referenced by yaz_decode_uri_component(), yaz_uri_to_array(), and yaz_uri_val().
|
static |
Definition at line 29 of file uri.c.
Referenced by yaz_encode_uri_component().
|
static |
Definition at line 18 of file uri.c.
Referenced by decode_uri_char().
| void yaz_array_to_uri | ( | char ** | path, |
| ODR | o, | ||
| char ** | name, | ||
| char ** | value | ||
| ) |
Definition at line 98 of file uri.c.
References odr_malloc(), and yaz_encode_uri_component().
Referenced by yaz_solr_encode_request(), yaz_sru_get_encode(), and yaz_sru_post_encode().
| void yaz_decode_uri_component | ( | char * | dst, |
| const char * | uri, | ||
| size_t | len | ||
| ) |
decodes URI component
| dst | destination string (should be at least strlen(uri)+1) |
| uri | URI component buffer (source) |
| len | number of bytes to decode from uri |
Definition at line 86 of file uri.c.
References decode_uri_char().
| void yaz_encode_uri_component | ( | char * | dst, |
| const char * | uri | ||
| ) |
encodes URI component
| dst | destination string (should be at least 3*strlen(uri)+1) |
| uri | URI component C-string (source) |
Definition at line 45 of file uri.c.
References encode_uri_char().
Referenced by yaz_array_to_uri().
| int yaz_uri_to_array | ( | const char * | path, |
| ODR | o, | ||
| char *** | name, | ||
| char *** | val | ||
| ) |
Definition at line 121 of file uri.c.
References decode_uri_char(), odr_malloc(), and odr_strdup().
Referenced by yaz_encode_sru_extra(), yaz_sru_decode(), and ztest_search().
| char* yaz_uri_val | ( | const char * | path, |
| const char * | name, | ||
| ODR | o | ||
| ) |
deprecated
Definition at line 185 of file uri.c.
References decode_uri_char(), and odr_malloc().
Referenced by yaz_uri_val_int().
1.8.1.2