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,11 +1,19 @@
# DO NOT DELETE
jsontospaceparser.o: jsontospaceparser.h space.h ../textstream/types.h
jsontospaceparser.o: ../utf8/utf8.h
jsontospaceparser.o: ../utf8/utf8.h ../textstream/textstream.h
jsontospaceparser.o: ../space/space.h ../date/date.h ../convert/convert.h
jsontospaceparser.o: ../convert/inttostr.h ../convert/strtoint.h
jsontospaceparser.o: ../convert/text.h ../convert/misc.h
jsontospaceparser.o: ../membuffer/membuffer.h ../textstream/types.h
space.o: space.h ../textstream/types.h ../utf8/utf8.h
space.o: ../textstream/textstream.h ../space/space.h ../date/date.h
space.o: ../convert/convert.h ../convert/inttostr.h ../convert/strtoint.h
space.o: ../convert/text.h ../convert/misc.h ../membuffer/membuffer.h
space.o: ../textstream/types.h
spaceparser.o: spaceparser.h space.h ../textstream/types.h ../utf8/utf8.h
spaceparser.o: ../textstream/textstream.h ../space/space.h ../date/date.h
spaceparser.o: ../convert/convert.h ../convert/inttostr.h
spaceparser.o: ../convert/strtoint.h ../convert/text.h ../convert/misc.h
spaceparser.o: ../membuffer/membuffer.h ../textstream/types.h
spacetojson.o: spacetojson.h space.h ../textstream/types.h