Ryan C. Gordon
21b2fd39f2
Made PHYSFS_caseFold() a public API.
2017-08-20 02:02:08 -04:00
Ryan C. Gordon
9f8ecb91cb
unicode: Added UTF-16 and UCS-4 stricmp functions.
2017-08-20 01:18:41 -04:00
Ryan C. Gordon
b082bc3432
Removed __PHYSFS_stricmpASCII functions.
...
Nothing was using them, except one OS/2 thing that could live with stricmp.
2017-08-11 01:45:29 -04:00
Ryan C. Gordon
d1f2637ca8
utf8: big improvements to case-insensitive UTF-8 string compare.
...
- Dramatically reduce RAM usage: uses between 8 and 11 kilobytes less static
memory for its internal case-folding tables.
- Actually works now. It would fail unconditionally if a codepoint folded
into multiple codepoints, even if the compared string contained those exact
codepoints.
- Now a public API!
- Removed __PHYSFS_utf8strnicmp(): nothing was using it, it was incorrect
anyhow, and what does 'n' represent when either string might case-fold to
something larger in-flight, anyhow?
2017-08-11 01:39:22 -04:00
Ryan C. Gordon
f0eb5c0db9
Marked a bunch of things as "FIXME-3.0" that I want resolved before 3.0 ships.
2017-08-06 15:54:44 -04:00
Ryan C. Gordon
32d4f4541e
HTTPS all the things.
2016-02-25 02:51:28 -05:00
Ryan C. Gordon
4b906c1e5f
Short circuit case-insensitive compare of two equal Unicode codepoints.
2014-08-14 21:33:24 -04:00
Ryan C. Gordon
123313c3cd
Make __PHYSFS_utf8stricmp() work like you'd expect.
2012-11-28 01:30:29 -05:00
Ryan C. Gordon
53fe6d360a
Renamed __PHYSFS_utf8strcasecmp() to __PHYSFS_utf8stricmp().
...
This matches style of other function names we use.
2012-03-22 03:02:50 -04:00
Ryan C. Gordon
6a1aca5db5
Make sure utf8codepoint() advances the pointer even on bogus input.
...
This patch was from Francois Gouget, who found this bug in MojoSetup's copy
of this function.
2011-06-01 03:10:08 -04:00
Ryan C. Gordon
f871802f51
Cleaned up some #includes.
2010-09-06 19:35:01 -04:00
Ryan C. Gordon
8def2f8aaf
Fixed some single-line comments.
2010-08-24 14:17:07 -04:00
Ryan C. Gordon
c88d2c3746
Added UTF-16 support.
2010-08-20 02:38:32 -04:00
Ryan C. Gordon
acdfcfca04
Fixed incorrect comments.
2010-08-20 02:49:11 -04:00
Ryan C. Gordon
77d16c2bed
Zero-sized destination buffers when converting to UTF-8 shouldn't overflow.
2010-08-20 02:35:01 -04:00
Ryan C. Gordon
595ac1da39
Cleaned up returns that look like function calls for my updated coding style.
2010-01-28 02:27:45 -05:00
Ryan C. Gordon
5323b6a532
Fixed latin1 to UTF-8 conversion (sign conversion was broken).
2009-06-03 18:44:15 -04:00
Ryan C. Gordon
07e97a0166
Fixed some Sun Studio warnings about unreachable code.
2009-04-13 03:40:30 -04:00
Ryan C. Gordon
2a65060cde
Moved directory structure around.
2009-03-27 15:10:42 -04:00