added to utf8:

bool UTF8ToWide(const char * utf8, size_t utf8_len, WTextStream & res, bool clear = true, int mode = 1);
bool UTF8ToWide(const char * utf8,                  WTextStream & res, bool clear = true, int mode = 1);
bool UTF8ToWide(const std::string & utf8,           WTextStream & res, bool clear = true, int mode = 1);
bool UTF8ToWide(std::istream & utf8,                WTextStream & res, bool clear = true, int mode = 1);

void WideToUTF8(PT::WTextStream & buffer,                       std::string & utf8,  bool clear = true, int mode = 1);
void WideToUTF8(PT::WTextStream & buffer,                       std::ostream & utf8, int mode = 1);

these functions need some testing yet




git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@1156 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2018-11-24 13:30:45 +00:00
parent 8b3ae14d9a
commit da4ed9c1f8
8 changed files with 215 additions and 74 deletions

View File

@@ -1,4 +1,7 @@
# DO NOT DELETE
mainspaceparser.o: mainspaceparser.h ../space/space.h ../textstream/types.h
mainspaceparser.o: ../utf8/utf8.h
mainspaceparser.o: ../utf8/utf8.h ../textstream/textstream.h ../date/date.h
mainspaceparser.o: ../convert/convert.h ../convert/inttostr.h
mainspaceparser.o: ../convert/strtoint.h ../convert/text.h ../convert/misc.h
mainspaceparser.o: ../membuffer/membuffer.h ../textstream/types.h