X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcommon%2Ftgttrans.h;h=e4f08f71a3bab4463db1ce3977e984a51a2c54a2;hb=30b418c734011a358d6c8c477dfc314c26f9fb40;hp=e11d80adb51634188b2cd795920f122a709abc4c;hpb=45cf0c2dd9538deb91c941720bcacc923003f02d;p=cc65 diff --git a/src/common/tgttrans.h b/src/common/tgttrans.h index e11d80adb..e4f08f71a 100644 --- a/src/common/tgttrans.h +++ b/src/common/tgttrans.h @@ -1,15 +1,15 @@ /*****************************************************************************/ /* */ -/* tgttrans.h */ +/* tgttrans.h */ /* */ -/* Character set translation */ +/* Character set translation */ /* */ /* */ /* */ -/* (C) 2000 Ullrich von Bassewitz */ -/* Wacholderweg 14 */ -/* D-70597 Stuttgart */ -/* EMail: uz@musoftware.de */ +/* (C) 2000-2012, Ullrich von Bassewitz */ +/* Roemerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -38,8 +38,13 @@ +/* common */ +#include "strbuf.h" + + + /*****************************************************************************/ -/* Code */ +/* Code */ /*****************************************************************************/ @@ -52,16 +57,19 @@ int TgtTranslateChar (int C); * system character set. */ -char* TgtTranslateStr (char* S); -/* Translate a complete string from the source character set into the target - * system character set. - */ - void TgtTranslateBuf (void* Buf, unsigned Len); /* Translate a buffer of the given length from the source character set into * the target system character set. */ +void TgtTranslateStrBuf (StrBuf* Buf); +/* Translate a string buffer from the source character set into the target + * system character set. + */ + +void TgtTranslateSet (unsigned Index, unsigned char C); +/* Set the translation code for the given character */ + /* End of tgttrans.h */