Unicode: Improved UTF8 detection, less verbose

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6067 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
wizou 2010-04-20 15:29:55 +00:00
parent c8d77cd501
commit ca54cf728c
4 changed files with 38 additions and 79 deletions

View file

@ -34,7 +34,7 @@ class CValidateUnicode
};
// Make sure that the buffer contains valid UTF-8 encoding.
static bool ValidateUTF8(unsigned char* buf, size_t characters);
static int ValidateUTF8(unsigned char* buf, size_t characters);
// Make sure that the buffer contains valid UTF-16LE encoding.
static bool ValidateUTF16LE(unsigned char* buf, size_t bytes);