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[]); |
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 |
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. |