More buildfix

This commit is contained in:
Henrik Rydgård committed 2024-01-12 14:09:21 +01:00
1 parent 0fc3e2b777
commit 34d35dcf8b
4 files changed
+4 -3

No files matched your search

+2
View File
@@ -372,6 +372,8 @@ int u8_is_locale_utf8(const char *locale)
return 0;
}
UTF8::UTF8(const char *c) : c_(c), size_((int)strlen(c)), index_(0) {}
bool AnyEmojiInString(std::string_view str, size_t byteCount) {
int i = 0;
while (i < byteCount) {
+1 -1
View File
@@ -39,7 +39,7 @@ class UTF8 {
public:
static const uint32_t INVALID = (uint32_t)-1;
// TODO: Try to get rid of this constructor.
explicit UTF8(const char *c) : c_(c), size_((int)strlen(c)), index_(0) {}
explicit UTF8(const char *c);
explicit UTF8(std::string_view view) : c_(view.data()), size_((int)view.size()), index_(0) {}
explicit UTF8(std::string_view view, int index) : c_(view.data()), size_((int)view.size()), index_(index) {}
bool end() const { return index_ == size_; }
-1
View File
@@ -24,7 +24,6 @@ set(ALL_SOURCE_FILES
${SRC_DIR}/rc_compat.h
${SRC_DIR}/rc_compat.h
${SRC_DIR}/rc_compat.c
${SRC_DIR}/rc_util.h
${SRC_DIR}/rc_util.c
${SRC_DIR}/rc_client.c
${SRC_DIR}/rc_client_internal.h