amxmodx/public
Vincent Herbet ab854ec035 Improve UTF-8 support in some natives (bug 6475) (#407)
* Compile as static library, update AMBuildScript and link to core

* Update VS project files to include the library

* Add UTF-8 Rewind library (v1.5.1) to third_party directory

* Update ACKNOWLEDGEMENTS.txt

* Move AMXX buffer in its own function

* Move constants from string.inc to string_const.inc and update project files

* Move stocks from string.inc to string_stocks.inc and update project files

* Improve UTF-8 support in containi() and update documentation

* Improve UTF-8 support in strcmp() and update documentation

* Improve UTF-8 support in strfind() and update documentation

Worth to be noted that this native with ignorecase set was not working properly. So broken that no one reported the issue.
This adds also a safety check for "pos" parameter to not go < 0.

* Improve UTF-8 support in strncmp() and update documentation

* Improve UTF-8 support in equali() and update documentation

* Add an option to some UTF-8 Rewind functions for avoiding invalid data to be replaced

By default it replaces any invalid byte or sequence of bytes by 0xFFFD (3 bytes). It can be problematic when the input buffer is not changed (from a plugin) and that some natives need to calculate a position from the converted string. With such replacement, the position is displaced due the final string length being larger.

This compiles the library as C++, because I added some silly param with a default default value which is not supported by C.

* Improve UTF-8 support in replace_string/ex() and update documentation

* Add is_string_category() and update documentation

* Update a little testsuite plugin (and fix linux compilation)

* Add mb_strotolower/upper() and update documentation

* Add mb_ucfirst() and update documentation

* Add mb_strtotile() and update documentation

* Improve UTF-8 support in get_players() and find_player() with name/case insenstive flags set

* Fix KliPPy's complain
2017-08-05 10:32:16 +02:00
..
amtl@c91e8560fb Port code to AMTL (#427) 2017-04-14 19:36:59 +02:00
licenses Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
memtools SELinux compatibility: memalign -> mmap 2016-01-03 21:38:31 +03:00
resdk Ignore ReHLDS initialization on listenserver (#425) 2017-03-19 14:12:07 +01:00
sdk Values by reference in forwards 2016-04-05 18:51:18 +02:00
amxmodx_version.h Update versioning 2014-12-08 01:39:10 +01:00
auto-string.h Add basic ReHLDS and ReGameDLL support (#417) 2017-03-09 19:59:38 +01:00
engine_strucs.h Add basic ReHLDS and ReGameDLL support (#417) 2017-03-09 19:59:38 +01:00
HLTypeConversion.h Merge pull request #278 from Arkshine/feature/cstrike-update-2 2015-11-21 00:19:01 +01:00
IGameConfigs.h Modify game config parser to support more offset datas (type, size, etc.) 2015-08-10 18:05:59 +02:00
interface_helpers.h Add basic ReHLDS and ReGameDLL support (#417) 2017-03-09 19:59:38 +01:00
ITextParsers.h Remove inline comment support in multilingual INI parser 2016-03-16 19:50:46 +01:00
platform_helpers.h Add basic ReHLDS and ReGameDLL support (#417) 2017-03-09 19:59:38 +01:00
sh_list.h Update nvault module project files and use AMTL. 2014-08-10 18:29:19 +02:00
sh_stack.h Update fakemeta module project files and use AMTL. 2014-08-09 20:50:45 +02:00
sh_tinyhash.h Port code to AMTL (#427) 2017-04-14 19:36:59 +02:00
sm_memtable.h Cstrike: Import some memory tools from SourceMod 2014-05-28 22:51:14 +02:00
sm_namehashset.h Fix AMTL internal paths 2015-10-02 23:22:21 +02:00
sm_stringhashmap.h Update to the latest AMTL (#381) 2016-08-12 15:30:06 +02:00
sm_symtable.h Cstrike: Import some memory tools from SourceMod 2014-05-28 22:51:14 +02:00