/svarlang.lib/trunk/history.txt |
---|
1,4 → 1,8 |
20230628 |
- added support for \e sequences in translation strings |
- implemented svarlang_getver() |
20220314 |
- added support for flagging strings as being "dirty", eg: ?1.1:Hello, World |
/svarlang.lib/trunk/svarlang.txt |
---|
46,7 → 46,7 |
### ESCAPED CHARACTERS ### |
Translation strings may contain some escaped characters. At this time only the |
following escaped characters are supported: \r \n \t and \\ |
following escaped characters are supported: \e \r \n \t and \\ |
### DIRTY STRINGS ### |
/svarlang.lib/trunk/tlumacz.c |
---|
28,7 → 28,7 |
#include <stdlib.h> |
#include <string.h> |
#include "version.h" |
#include "svarlang.h" |
struct bitmap { |
113,6 → 113,9 |
strcpy(linebuff + i, linebuff + i + 1); |
if (linebuff[i] == 0) break; |
switch (linebuff[i]) { |
case 'e': |
linebuff[i] = 0x1B; /* ESC code, using hex because '\e' is not ANSI C */ |
break; |
case 'n': |
linebuff[i] = '\n'; |
break; |