aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/UniConversion.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-01-13 09:44:35 +1100
committerNeil <nyamatongwe@gmail.com>2015-01-13 09:44:35 +1100
commit26d30bc6e730a3be9757b174da30ba756496521b (patch)
treeec37dad1f0043372a833459197ebd251dd3ec9b5 /src/UniConversion.h
parent8fae337a69f913cf46b4c5fce780b0920563e2e8 (diff)
downloadscintilla-mirror-26d30bc6e730a3be9757b174da30ba756496521b.tar.gz
Using size_t instead of unsigned int for conversions to UTF16 for 64-bit
compatibility and to lessen the number of casts.
Diffstat (limited to 'src/UniConversion.h')
-rw-r--r--src/UniConversion.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/UniConversion.h b/src/UniConversion.h
index 760f50476..8c7ac4a27 100644
--- a/src/UniConversion.h
+++ b/src/UniConversion.h
@@ -19,8 +19,8 @@ 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);
unsigned int UTF8CharLength(unsigned char ch);
-unsigned int UTF16Length(const char *s, unsigned int len);
-unsigned int UTF16FromUTF8(const char *s, unsigned int len, wchar_t *tbuf, unsigned int tlen);
+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);
unsigned int UTF16FromUTF32Character(unsigned int val, wchar_t *tbuf);