AMX Mod X - Half-Life 1 Scripting and Administration
Go to file
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
amxmodx Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
compiler Fix inc/dec operators not returning an iEXPRESSION (#429) 2017-04-29 23:33:09 +02:00
configs Add amx_searchcmd command in adminhelp plugin and do some clean up (#415) 2017-08-01 22:56:21 +02:00
editor/studio Add elog_message native (#451) 2017-08-01 15:14:53 +02:00
gamedata Cstrike: Get offset for m_bMapHasBombTarget (#443) 2017-06-21 10:07:26 +02:00
installer Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
modules Fix broken cs_set_user_model update_index parameter for the default engine (#450) 2017-07-29 17:01:34 +02:00
plugins Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
public Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
support Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
third_party Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
tools Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
.gitattributes Add gitattributes 2015-03-10 11:11:49 +02:00
.gitignore Update to the latest AMTL (#381) 2016-08-12 15:30:06 +02:00
.gitmodules Use upstream AMTL as a submodule 2015-03-09 22:53:58 +01:00
.travis.yml Update TravisCI build to use Clang 3.7 2016-03-20 23:02:15 +01:00
AMBuildScript Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
appveyor.yml Fix AppVeyor 2015-03-09 23:12:27 +01:00
configure.py Tweak build scripts so the vs build frontend will work. 2014-08-02 12:29:53 -07:00
product.version Bump version to 1.8.3-dev. 2013-02-14 23:30:38 -08:00
pushbuild.txt Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
README.md 💇 2014-06-03 12:19:43 +03:00

AMX Mod X

AMX Mod X - Half-Life 1 Scripting and Server Administration

General

Development