aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/UniConversion.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-05-02 19:27:38 +1000
committerNeil <nyamatongwe@gmail.com>2017-05-02 19:27:38 +1000
commitd2fb467ad88764cece87ddbb650fd6a22a2269f9 (patch)
tree68b539adff4c61e34206a7fb9c5ca9f4a5851d6d /src/UniConversion.h
parent9a99d2bd17b2931e95acde30bb7a5f97dce427ce (diff)
downloadscintilla-mirror-d2fb467ad88764cece87ddbb650fd6a22a2269f9.tar.gz
More consistent use of size_t when converting Unicode formats.
Diffstat (limited to 'src/UniConversion.h')
-rw-r--r--src/UniConversion.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/UniConversion.h b/src/UniConversion.h
index c5867a664..8011e05bb 100644
--- a/src/UniConversion.h
+++ b/src/UniConversion.h
@@ -16,12 +16,12 @@ const int UTF8MaxBytes = 4;
const int unicodeReplacementChar = 0xFFFD;
-unsigned int UTF8Length(const wchar_t *uptr, unsigned int tlen);
-void UTF8FromUTF16(const wchar_t *uptr, unsigned int tlen, char *putf, unsigned int len);
+size_t UTF8Length(const wchar_t *uptr, size_t tlen);
+void UTF8FromUTF16(const wchar_t *uptr, size_t tlen, char *putf, size_t len);
unsigned int UTF8CharLength(unsigned char ch);
size_t UTF16Length(const char *s, size_t len);
size_t UTF16FromUTF8(const char *s, size_t len, wchar_t *tbuf, size_t tlen);
-unsigned int UTF32FromUTF8(const char *s, unsigned int len, unsigned int *tbuf, unsigned int tlen);
+size_t UTF32FromUTF8(const char *s, size_t len, unsigned int *tbuf, size_t tlen);
unsigned int UTF16FromUTF32Character(unsigned int val, wchar_t *tbuf);
std::string FixInvalidUTF8(const std::string &text);