[Half-Life AMXX] / include / string.inc Repository:
ViewVC logotype

Diff of /include/string.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 16, Fri Nov 16 15:12:40 2007 UTC revision 17, Fri Nov 16 15:29:57 2007 UTC
# Line 11  Line 11 
11  #endif  #endif
12  #define _string_included  #define _string_included
13    
14    #define charsmax(%1) (sizeof(%1)-1)
15    
16  /* Checks if source contains string. On success function  /* Checks if source contains string. On success function
17  * returns position in source, on failure returns -1. */  * returns position in source, on failure returns -1. */
18  native contain(const source[],const string[]);  native contain(const source[],const string[]);
# Line 34  Line 36 
36   *  slower, so you should using a source string that is the same as   *  slower, so you should using a source string that is the same as
37   *  the destination.   *  the destination.
38   */   */
39  native format(output[] ,len ,const format[] , {Float,Sql,Result,_}:...);  native format(output[] ,len ,const format[] , any:...);
40    
41  /* Same as format(), except does not perform a "copy back" check.  /* Same as format(), except does not perform a "copy back" check.
42   * This means formatex() is faster, but DOES NOT ALLOW this type   * This means formatex() is faster, but DOES NOT ALLOW this type
# Line 45  Line 47 
47   * This is because the output is directly stored into "buffer",   * This is because the output is directly stored into "buffer",
48   *  rather than copied back at the end.   *  rather than copied back at the end.
49   */   */
50  native formatex(output[] ,len ,const format[] , {Float,Sql,Result,_}:...);  native formatex(output[] ,len ,const format[] , any:...);
51    
52  /* Replacement for format_args.  Much faster and %L compatible.  /* Replacement for format_args.  Much faster and %L compatible.
53   * This works exactly like vsnprintf() from C.   * This works exactly like vsnprintf() from C.

Legend:
Removed from v.16  
changed lines
  Added in v.17

Contact
ViewVC Help
Powered by ViewVC 1.0.4