aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/serd/string.h')
-rw-r--r--include/serd/string.h18
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);
/**
@}