Enno Rehling
12117776a0
ignore some code more points, but leave emoji intact.
2019-08-08 18:23:31 +02:00
Enno Rehling
55299346f8
use wint_t, not long.
2019-08-01 18:49:39 +02:00
Enno Rehling
0b226ba75e
fix farsi names containing nzwj symbol.
2017-04-10 17:32:32 +02:00
Enno Rehling
4e5f1d05ce
Be very strict about C standards.
...
Compile with -std=c89 in gcc.
remove all // comments (they are nice, but unnecessary).
variables only declared at start of block.
various pedantery.
backwards compatible va_copy for pre-C99 gcc.
2017-02-18 21:15:14 +01:00
Enno Rehling
534e5874e9
Merge branch 'gmtool' into develop
...
Conflicts:
src/util/unicode.test.c
2017-01-31 22:19:00 +01:00
Enno Rehling
9c69963477
change error message categories.
...
also removing some unused messages and code that supports them.
https://bugs.eressea.de/view.php?id=2270
2017-01-20 22:39:38 +01:00
Enno Rehling
ec4060cb9a
fix curse-vigour calculation math.
...
also fix a ton of small other niggles from pvs-studio.
2016-11-20 19:08:39 +01:00
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
5dcbb8a3f4
add a very simple tst for unicode comparisons
2016-08-07 10:28:09 +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