pikotools/utf8
Tomasz Sowa 39717a4dd2 fixed: in static size_t WideToInt(const wchar_t * wide_string, size_t string_len, int & z, bool & correct)
we didn't test UTF8_CheckRange()

added: functions for converting from a wide string into an utf8 c-string:
       bool WideToUTF8(const wchar_t * wide_string, size_t string_len, char * utf8, size_t utf8_len, size_t & utf8_written, int mode = 1);
       bool WideToUTF8(const wchar_t * wide_string,                    char * utf8, size_t utf8_len, size_t & utf8_written, int mode = 1);
       bool WideToUTF8(const std::wstring & wide_string,               char * utf8, size_t utf8_len, size_t & utf8_written, int mode = 1);

       bool WideToUTF8(const wchar_t * wide_string, size_t string_len, char * utf8, size_t utf8_len, int mode = 1);
       bool WideToUTF8(const wchar_t * wide_string,                    char * utf8, size_t utf8_len, int mode = 1);
       bool WideToUTF8(const std::wstring & wide_string,               char * utf8, size_t utf8_len, int mode = 1);




git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@962 e52654a7-88a9-db11-a3e9-0013d4bc506e
2014-10-04 11:18:33 +00:00
..
Makefile added: -I.. flag for Makefiles when compiling 2013-10-15 23:53:57 +00:00
Makefile.dep changed: Date::SerializeDay outputs the date in a form of YYYY-MM-DD (before was: YYYY.MM.DD) 2012-05-13 21:49:06 +00:00
Makefile.o.dep changed: Date::SerializeDay outputs the date in a form of YYYY-MM-DD (before was: YYYY.MM.DD) 2012-05-13 21:49:06 +00:00
utf8.cpp fixed: in static size_t WideToInt(const wchar_t * wide_string, size_t string_len, int & z, bool & correct) 2014-10-04 11:18:33 +00:00
utf8.h fixed: in static size_t WideToInt(const wchar_t * wide_string, size_t string_len, int & z, bool & correct) 2014-10-04 11:18:33 +00:00