Commit graph

14 commits

Author SHA1 Message Date
Enno Rehling
9ac74ceecc fix constant conversion error 2016-11-20 15:14:03 +01:00
Enno Rehling
55a0388eb2 fix truncated names that split a utf8 sequence. 2016-11-20 14:50:38 +01:00
Enno Rehling
f63baddd51 use memmove, not memcpy.
fix unicode_trim for windows.
remove unused unicode_mkname.
2016-11-13 15:49:26 +01:00
Enno Rehling
e0add2275f also remove trailing spaces. 2016-11-11 01:34:59 +01:00
Enno Rehling
97e91fd8eb fix bad names.
trim leading whitespace and non-printable characters from existing
unit, region and faction names/descriptions.
2016-11-11 00:30:49 +01:00
Enno Rehling
7b412399b7 delete leading spaces from names. 2016-11-09 22:03:46 +01:00
Enno Rehling
f03e8f3b62 return an error code if the string had any characters removed. 2016-11-09 14:58:51 +01:00
Enno Rehling
f68fcf40a6 custom function to make "valid" names.
remove any non-printable characters from a string.
TODO: test with utf-8 values.
TODO: remove leading/trainling whitespace.
2016-11-08 22:54:47 +01:00
Enno Rehling
75422e1ba6 fix gcc conversion warnings 2016-10-09 10:07:05 +02:00
Enno Rehling
fadf591a32 gcc appeasement (overflow in constant conversion). 2016-10-02 13:19:39 +02:00
Enno Rehling
693f1be6d1 fix endless loop in cp1252 search (wrong sort)
fix indentation
additional testing
2016-10-02 13:12:47 +02:00
Enno Rehling
8728fccaec fix an endless loop in unicode_utf8_to_cp437 for characters not in the table. 2016-10-02 12:46:07 +02:00
Enno Rehling
838cf3d938 try to allow visual studio to build with all warnings (/WAll) enabled. 2015-01-12 22:53:21 +01:00
Enno Rehling
eb1d73e2c2 basic test for tolower function. 2014-10-19 06:42:40 +02:00