summaryrefslogtreecommitdiffhomepage
path: root/include/stc/utf8.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-08-08 21:20:57 +0200
committerTyge Løvset <[email protected]>2022-08-08 21:20:57 +0200
commit8e2f3b4aef0b5e8de66d02ca6268c13846cc05a0 (patch)
tree928f33c35239fc6fd8beb1da0518bf619d3ef398 /include/stc/utf8.h
parentc9e0c46d29db9c2a85154c9c6a75ce0d2e2180ff (diff)
downloadSTC-modified-8e2f3b4aef0b5e8de66d02ca6268c13846cc05a0.tar.gz
STC-modified-8e2f3b4aef0b5e8de66d02ca6268c13846cc05a0.zip
Final fix on icmp().
Diffstat (limited to 'include/stc/utf8.h')
-rw-r--r--include/stc/utf8.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/utf8.h b/include/stc/utf8.h
index 4b87bc0b..2dd51927 100644
--- a/include/stc/utf8.h
+++ b/include/stc/utf8.h
@@ -16,7 +16,7 @@ extern uint32_t utf8_casefold(uint32_t c);
extern uint32_t utf8_tolower(uint32_t c);
extern uint32_t utf8_toupper(uint32_t c);
extern bool utf8_valid_n(const char* s, size_t nbytes);
-extern int utf8_icmp_sv(size_t u8max, csview s1, csview s2);
+extern int utf8_icmp_sv(csview s1, csview s2);
extern unsigned utf8_encode(char *out, uint32_t c);
extern uint32_t utf8_peek(const char *s, int u8pos);
@@ -35,7 +35,7 @@ STC_INLINE uint32_t utf8_decode(utf8_decode_t* d, const uint32_t byte) {
/* case-insensitive utf8 string comparison */
STC_INLINE int utf8_icmp(const char* s1, const char* s2) {
- return utf8_icmp_sv(~(size_t)0, c_sv(s1, ~(size_t)0), c_sv(s2, ~(size_t)0));
+ return utf8_icmp_sv(c_sv(s1, ~(size_t)0), c_sv(s2, ~(size_t)0));
}
STC_INLINE bool utf8_valid(const char* s) {