|
YAZ 5.35.1
|
Header for YAZ iconv interface. More...
Go to the source code of this file.
Functions | |
| int | yaz_matchstr (const char *s1, const char *s2) |
| match strings - independent of case and '-' | |
| int | yaz_strcmp_del (const char *a, const char *b, const char *b_del) |
| match a and b with some delimitor for b | |
| int | yaz_memcmp (const void *a, const void *b, size_t len_a, size_t len_b) |
| compares two buffers of different size | |
| int | yaz_strncasecmp (const char *s1, const char *s2, size_t n) |
| ala strncasecmp - no locale | |
| int | yaz_strcasecmp (const char *s1, const char *s2) |
| ala strcasecmp - no locale | |
| int | yaz_strcmp_null (const char *s1, const char *s2) |
| strcmp, null may be passed | |
Header for YAZ iconv interface.
Definition in file matchstr.h.
| int yaz_matchstr | ( | const char * | s1, |
| const char * | s2 | ||
| ) |
match strings - independent of case and '-'
| s1 | first string |
| s2 | second string (May include wildcard ? and .) |
| 0 | strings are similar |
| !=0 | strings are different |
Definition at line 42 of file matchstr.c.
References yaz_isupper, and yaz_tolower.
Referenced by get_form(), get_sru_mode_from_string(), my_search(), yaz_advancegreek_decoder(), yaz_advancegreek_encoder(), yaz_danmarc_decoder(), yaz_danmarc_encoder(), yaz_init_opt_encode(), yaz_iso5426_decoder(), yaz_iso_5428_decoder(), yaz_iso_5428_encoder(), yaz_iso_8859_1_decoder(), yaz_iso_8859_1_encoder(), yaz_marc8_decoder(), yaz_marc8_encoder(), yaz_marc_check_marc21_coding(), yaz_solr_sortkeys_to_sort_spec(), yaz_srw_str_to_pack(), yaz_string_to_oid(), yaz_ucs4_decoder(), yaz_ucs4_encoder(), yaz_utf8_decoder(), yaz_utf8_encoder(), yaz_wchar_decoder(), yaz_wchar_encoder(), and ztest_scan().
| int yaz_memcmp | ( | const void * | a, |
| const void * | b, | ||
| size_t | len_a, | ||
| size_t | len_b | ||
| ) |
compares two buffers of different size
| a | first buffer |
| b | second buffer |
| len_a | length of first buffer |
| len_b | length of second buffer |
| 0 | buffers are equal |
| >0 | a > b |
| <0 | a < b |
Definition at line 86 of file matchstr.c.
Referenced by compare_attr().
| int yaz_strcasecmp | ( | const char * | s1, |
| const char * | s2 | ||
| ) |
ala strcasecmp - no locale
| s1 | first buffer |
| s2 | second buffer |
| 0 | buffers are equal |
| >0 | a > b |
| <0 | a < b |
Definition at line 21 of file matchstr.c.
References yaz_strncasecmp().
Referenced by decode_headers_content(), yaz_encode_http_request(), yaz_encode_http_response(), z_HTTP_header_lookup(), z_HTTP_header_remove(), and z_HTTP_header_set().
| int yaz_strcmp_del | ( | const char * | a, |
| const char * | b, | ||
| const char * | b_del | ||
| ) |
match a and b with some delimitor for b
| a | first second |
| b | second string |
| b_del | delimitor for b |
| 0 | strings are similar |
| !=0 | strings are different |
Definition at line 72 of file matchstr.c.
Referenced by yaz_sru_decode(), yaz_srw_check_content_type(), and yaz_srw_decode().
| int yaz_strcmp_null | ( | const char * | s1, |
| const char * | s2 | ||
| ) |
strcmp, null may be passed
| s1 | first buffer or NULL |
| s2 | second buffer or NULL |
| 0 | buffers are equal |
| >0 | a > b |
| <0 | a < b |
Definition at line 95 of file matchstr.c.
Referenced by record_cache_add(), and ZOOM_record_cache_lookup_i().
| int yaz_strncasecmp | ( | const char * | s1, |
| const char * | s2, | ||
| size_t | n | ||
| ) |
ala strncasecmp - no locale
| s1 | first buffer |
| s2 | second buffer |
| n | number of bytes to compare |
| 0 | buffers are equal |
| >0 | a > b |
| <0 | a < b |
Definition at line 26 of file matchstr.c.
References yaz_isupper, and yaz_tolower.
Referenced by cs_complete_http(), and yaz_strcasecmp().