mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-26 12:14:56 +00:00
Move mg_ncasecmp and sister to common string utils
PUBLISHED_FROM=182c43c3bd82190cb816c8ebaddccc13a94950d0
This commit is contained in:
1 parent
81f738af3f
commit
fc635a9340
5 files changed
+29
-47
No files matched your search
+10
-10
@@ -1859,6 +1859,16 @@ char *strdup(const char *src);
|
||||
int64_t cs_to64(const char *s);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Cross-platform version of `strncasecmp()`.
|
||||
*/
|
||||
int mg_ncasecmp(const char *s1, const char *s2, size_t len);
|
||||
|
||||
/*
|
||||
* Cross-platform version of `strcasecmp()`.
|
||||
*/
|
||||
int mg_casecmp(const char *s1, const char *s2);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -3640,16 +3650,6 @@ extern "C" {
|
||||
const char *mg_skip(const char *s, const char *end_string,
|
||||
const char *delimiters, struct mg_str *v);
|
||||
|
||||
/*
|
||||
* Cross-platform version of `strncasecmp()`.
|
||||
*/
|
||||
int mg_ncasecmp(const char *s1, const char *s2, size_t len);
|
||||
|
||||
/*
|
||||
* Cross-platform version of `strcasecmp()`.
|
||||
*/
|
||||
int mg_casecmp(const char *s1, const char *s2);
|
||||
|
||||
/*
|
||||
* Decodes base64-encoded string `s`, `len` into the destination `dst`.
|
||||
* The destination has to have enough space to hold the decoded buffer.
|
||||
|
||||
Reference in new issue
Block a user