diff options
author | David Robillard <d@drobilla.net> | 2023-05-05 09:43:57 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 4711fdf527f416faee8ff19e15f050d4b48dcfb2 (patch) | |
tree | 6b18712ec44cce5713ddef1a21aec5f12651d901 /include/serd/string.h | |
parent | 248a874d7425749d29cf900a1c3783c624ea8d8c (diff) | |
download | serd-4711fdf527f416faee8ff19e15f050d4b48dcfb2.tar.gz serd-4711fdf527f416faee8ff19e15f050d4b48dcfb2.tar.bz2 serd-4711fdf527f416faee8ff19e15f050d4b48dcfb2.zip |
[WIP] Generalize node construction API
Diffstat (limited to 'include/serd/string.h')
-rw-r--r-- | include/serd/string.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/include/serd/string.h b/include/serd/string.h index 11e55e6e..028a1a29 100644 --- a/include/serd/string.h +++ b/include/serd/string.h @@ -18,19 +18,15 @@ SERD_BEGIN_DECLS */ /** - Decode a base64 string. + Compare two strings ignoring case. - This function can be used to decode a node created with serd_new_base64(). - - @param str Base64 string to decode. - @param len The length of `str`. - @param size Set to the size of the returned blob in bytes. - @return A newly allocated blob which must be freed with serd_free(). + @return Less than, equal to, or greater than zero if `s1` is less than, + equal to, or greater than `s2`, respectively. */ -SERD_API void* ZIX_ALLOCATED -serd_base64_decode(const char* ZIX_NONNULL str, - size_t len, - size_t* ZIX_NONNULL size); +SERD_PURE_API int +serd_strncasecmp(const char* ZIX_NONNULL s1, + const char* ZIX_NONNULL s2, + size_t n); /** @} |