plugins/include/string.inc
changeset 257 583a23434070
parent 234 6bd6eca451bb
child 260 110d1d014b0c
     1.1 --- a/plugins/include/string.inc	Mon Jan 01 21:31:09 2007 +0000
     1.2 +++ b/plugins/include/string.inc	Mon Jan 01 21:46:33 2007 +0000
     1.3 @@ -75,6 +75,28 @@
     1.4  native StrCopy(String:dest[], destLen, const String:source[]);
     1.5  
     1.6  /**
     1.7 + * Formats a string according to the SourceMod format rules (see documentation).
     1.8 + *
     1.9 + * @param buffer		Destination string buffer.
    1.10 + * @param maxlength		Maximum length of output string buffer.
    1.11 + * @param format		Formatting rules.
    1.12 + * @param ...			Variable number of format parameters.
    1.13 + */
    1.14 +native Format(String:buffer[], maxlength, const String:format[], {Handle,Float,String,_}:...);
    1.15 +
    1.16 +/**
    1.17 + * Formats a string according to the SourceMod format rules (see documentation).
    1.18 + * @note This is the same as Format(), except none of the input buffers can overlap the same
    1.19 + *	    memory as the output buffer.  Since this security check is removed, it is slightly faster.
    1.20 + *
    1.21 + * @param buffer		Destination string buffer.
    1.22 + * @param maxlength		Maximum length of output string buffer.
    1.23 + * @param format		Formatting rules.
    1.24 + * @param ...			Variable number of format parameters.
    1.25 + */
    1.26 +native FormatEx(String:buffer[], maxlength, const String:format[], {Handle,Float,String,_}:...);
    1.27 +
    1.28 +/**
    1.29   * Converts a string to an integer.
    1.30   *
    1.31   * @param str			String to convert.