Commit Graph
23 Commits
Author SHA1 Message Date
F1F88 bea10f0fb1 Add native StringToI64 (#2449)
* Add native StringToInt64Ex

* Delete useless test code

* Rename native StringToInt64Ex to StringToI64

* Add documentation for out-of-bounds situations.
2026-09-03 21:42:52 -07:00
Peace-Maker e078b2b542 Add VFormat macro for backwards compatibility
SourcePawn 2 supports passing the variable arguments through to another function natively.

Instead of using `VFormat` you can just call `Format(buf, sizeof(buf), fmt, ...)` directly with the ellipsis `...`.

This broke plugins using VFormat. Add a macro to transparently replace `VFormat` with `Format` calls when compiling with the SourcePawn 2 compiler to keep the plugins from complaining about a missing `VFormat`.

Preprocessor macros are not affected by `#pragma deprecated` so we cannot warn about this yet.
2026-09-03 08:58:20 -07:00
David Anderson 65ce00763a Hide VFormat() for SourcePawn 2 plugins.
VFormat() does not work in the v2 VM. Instead, there is a new "spread"
operator, so regular Format or FormatEx will work instead.
2026-09-01 18:58:42 -07:00
Ayrton09 a3fb4dfe5e Add %lu & %li as format for int64 (#2421) 2026-04-09 15:58:35 +02:00
sappho d4da21b07f Add more context to Format etc documentation (#2079) 2023-11-06 16:07:00 +00:00
rtldg f307e44b79 Correct some function docs that return char count (#1721) 2022-02-25 15:20:12 -08:00
Vladimir f603b7aec3 Add StringToInt64() and Int64ToString() natives (#1511) 2021-06-28 21:51:49 +01:00
Natanel Shitrit d73f4e7eca Documentation corrections and additions (#1498)
* Added `@error` documentation for every function that's missing it.
* Changed tabs to spaces (text alignment)
2021-06-24 15:45:01 +01:00
JoinedSenses 81dc80fbd1 Correct Plugin API Documentation Formatting (#1019) 2019-05-28 18:38:58 -07:00
Michael Flaherty 64a6972757 Fix description for CharToLower and CharToUpper v2 (#750) 2018-02-02 23:30:12 +00:00
ErikMinekus 19db7aef46 Fixed description for CharToLower and CharToUpper (#564) 2016-12-04 09:08:13 -05:00
Nicholas Hastings 098a693c1a Fixed return doc on CharToLower, CharToUpper. 2016-10-03 19:35:49 -04:00
ErikMinekus 542bb59978 Update large includes for transitional syntax #2 (#511) 2016-05-21 09:16:49 -04:00
Asher Baker 4346e963e5 Correct spelling in API documentation. 2015-10-30 12:26:34 +00:00
David Anderson c37174cb97 Fix some syntax errors in include files. 2014-11-09 02:03:09 -08:00
Erik Minekus 0e167ee85b Numerous code documentation fixups (bug 5720, r=psychonic). 2013-08-01 09:26:34 -04:00
David Anderson c01101dbd0 Fix build. 2011-07-24 19:44:15 -07:00
Michael (LumiStance) f7364111f2 Fix corner cases with ExplodeString (bug 4629, r=dvander).
--HG--
extra : rebase_source : ebb338bc93d32544e66c16fcba4494d5eae7ee8e
2011-07-24 19:30:15 -07:00
Liam 4bdc495d01 Corrected a typo in the string.inc file. (bug 4207, r=fyren) 2010-02-13 01:49:39 -05:00
Fyren e04d2a4a10 Added case insensitivity search to ReplaceString (bug 3639, r=dvander). 2009-03-01 16:41:44 -05:00
David Anderson 2a11739e86 added amb1694 - FindCharInString()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402174
2008-05-24 05:02:35 +00:00
David Anderson d014010a99 added amb1610 - StripQuotes()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402063
2008-04-16 05:27:09 +00:00
Scott Ehlert 251cced1f8 Spring Cleaning, Part Ichi (1)
Various minor things done to project files
Updated sample extension project file and updated makefile to the new unified version (more changes likely on the way)
Updated regex project file and makefile

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401971
2008-03-30 07:00:22 +00:00