amxmodx/plugins
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
..
BinLogReader Update copyright year 2015-03-29 20:01:25 +02:00
cstrike Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
dod Remove support for %name% replacement in plmenu (bug 6578). 2017-01-21 22:58:03 -05:00
esf Added Corona Byte's EvolutionX core 2005-08-24 06:13:55 +00:00
include Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
lang Add amx_searchcmd command in adminhelp plugin and do some clean up (#415) 2017-08-01 22:56:21 +02:00
ns Remove support for %name% replacement in plmenu (bug 6578). 2017-01-21 22:58:03 -05:00
testsuite Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
tfc Remove support for %name% replacement in plmenu (bug 6578). 2017-01-21 22:58:03 -05:00
ts Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
admin.sma AutoExecConfig: Remove config code in admin.sma 2015-08-14 16:38:28 +02:00
adminchat.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
admincmd.sma Fix temporary ban flags, add lang keys (#440) 2017-05-27 21:47:24 +02:00
adminhelp.sma Add amx_searchcmd command in adminhelp plugin and do some clean up (#415) 2017-08-01 22:56:21 +02:00
adminslots.sma Add client_remove() forward and fix a bug with client not internally disconnected (#414) 2017-02-25 11:50:52 +01:00
adminvote.sma Quote custom vote winning value (bug 6578). 2017-01-21 22:57:37 -05:00
AMBuilder Compiler: Treat pawn warnings as errors when building 2014-09-29 15:55:16 +02:00
antiflood.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
cmdmenu.sma Update cmdmenu.sma 2015-05-17 19:50:42 +03:00
compile.exe Fixed error output on compiler 2005-07-30 00:31:42 +00:00
compile.sh Fix compile.sh script for OS X. 2014-05-18 20:37:44 -05:00
imessage.sma fix memory leaks 2015-07-11 00:39:34 +03:00
mapchooser.sma fix memory leaks 2015-07-11 00:39:34 +03:00
mapsmenu.sma fix memory leaks 2015-07-11 00:39:34 +03:00
menufront.sma Update menufront.sma 2015-02-23 02:21:20 +05:00
multilingual.sma Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
nextmap.sma Rename change_level to engine_changelevel 2015-01-23 16:55:16 +01:00
pausecfg.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
plmenu.sma Replace s/get_pdata* with s/get_ent_data* in plmenu.sma (#424) 2017-03-11 14:58:10 +01:00
pluginmenu.sma Normalize all the line endings 2015-03-10 16:51:45 +01:00
scrollmsg.sma Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
statscfg.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
telemenu.sma MAX_PLAYERS: Fix moar 2015-02-01 21:45:16 +01:00
timeleft.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00