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
commitbcdda18c2aa062fea2f754cb600f0b4ef94b300b (patch)
tree2220dee16cde5dd5394521436e000a02a7d0d2df /src/UniConversion.h
parentae17fbc86661c895d08fad5416a1452bdef04d32 (diff)
downloadscintilla-mirror-bcdda18c2aa062fea2f754cb600f0b4ef94b300b.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);