amxmodx/plugins/include
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
..
amxconst.inc Values by reference in forwards 2016-04-05 18:51:18 +02:00
amxmisc.inc Fixed bug in cmd_access with usage printing (#434) 2017-05-02 12:54:07 +02:00
amxmodx_version.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
amxmodx.inc Add elog_message native (#451) 2017-08-01 15:14:53 +02:00
cellarray.inc Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
cellstack.inc cellarray/celltrie/cellstack: Documentation fixes and consistency updates 2015-03-09 19:41:16 +01:00
celltrie.inc Introduce Trie Iterators (#413) 2017-08-01 15:05:27 +02:00
core.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
csstats.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
cstrike_const.inc Fix missing CS_NORESET constant (#400) 2017-01-10 18:51:41 +01:00
cstrike.inc Merge pull request #342 from Arkshine/feature/cs_get_item_alias 2016-03-16 15:15:00 +01:00
csx.inc Merge pull request #215 from xPaw/no-version-check 2015-03-10 01:02:05 +01:00
cvars.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
datapack.inc Introduce a datapack position tag (#419) 2017-03-06 21:08:16 +01:00
dbi.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
dodconst.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
dodfun.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
dodstats.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
dodx.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
engine_const.inc engine_const: Add sections and comments 2015-05-10 14:37:36 +02:00
engine_stocks.inc Update engine_stocks.inc 2014-10-05 16:19:47 +06:00
engine.inc Engine: Add error path for remove_entity() and unsafe entity ids 2015-05-11 16:15:43 +02:00
esf_const.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
esf.inc Added Corona Byte's EvolutionX core 2005-08-24 06:13:55 +00:00
fakemeta_const.inc Add new natives to read/write on entity's private data based off class/member name available from gamedata files 2015-09-19 20:07:48 +02:00
fakemeta_stocks.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
fakemeta_util.inc Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
fakemeta.inc Refactor 2 - Duplicate get_member_* for each set of natives for consistency 2015-11-02 20:10:38 +01:00
file.inc VFS: Fix various things 2015-03-25 13:50:07 +01:00
float.inc Backed out changeset: 2bc36c43b15f 2013-09-10 09:04:52 +02:00
fun.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
gameconfig.inc Gameconfig: Add game configs natives 2015-07-11 13:16:45 +02:00
geoip.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
ham_const.inc Add basic kvd doc to fakemeta.inc and fix ham_const.inc lies 2015-05-05 11:16:26 +02:00
hamsandwich.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
hlsdk_const.inc Cstrike: Add more known constants from game 2015-11-03 10:45:44 +01:00
lang.inc Add %l format specifier and SetTranslationTarget() native 2015-03-26 22:42:55 +01:00
message_const.inc Fix typo in TE_STREAK_SPLASH description (#398) 2017-01-06 21:05:36 +01:00
message_stocks.inc message_stocks.inc: Cache messages id 2016-03-20 13:04:48 +01:00
messages.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
newmenus.inc Add menu pagination callback (#420) 2017-04-04 10:29:18 +02:00
ns_const.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
ns.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
nvault.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
regex.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
sockets.inc Update sockets module (#301) 2017-03-03 19:56:22 +01:00
sorting.inc Normalize all the line endings 2015-03-10 16:51:45 +01:00
sqlx.inc Fix missing SQL_SetCharset native in SQLite 2015-04-12 21:08:03 +02:00
string_const.inc Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
string_stocks.inc Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
string.inc Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
textparse_ini.inc Add a data argument in INI/SMC_ParseFile() to pass through to callbacks (bug 6228) 2015-07-29 22:23:13 +02:00
textparse_smc.inc Add a data argument in INI/SMC_ParseFile() to pass through to callbacks (bug 6228) 2015-07-29 22:23:13 +02:00
tfcconst.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tfcstats.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tfcx.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
time.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tsconst.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tsfun.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
tsstats.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tsx.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
vault.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
vector.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
xs.inc Add new xs stocks (#426) 2017-04-03 18:41:46 +02:00