dfdffdfdfdfd commited on
Commit
afd96e0
·
verified ·
1 Parent(s): 8b7722f

Create string.inc

Browse files
Files changed (1) hide show
  1. string.inc +30 -0
string.inc ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* String functions
2
+ *
3
+ * (c) Copyright 2005, ITB CompuPhase
4
+ * This file is provided as is (no warranties).
5
+ */
6
+ #if defined _string_included
7
+ #endinput
8
+ #endif
9
+ #define _string_included
10
+ #pragma library String
11
+
12
+ native strlen(const string[]);
13
+ native strpack(dest[], const source[], maxlength=sizeof dest);
14
+ native strunpack(dest[], const source[], maxlength=sizeof dest);
15
+ native strcat(dest[], const source[], maxlength=sizeof dest);
16
+
17
+ native strmid(dest[], const source[], start, end, maxlength=sizeof dest);
18
+ native bool: strins(string[], const substr[], pos, maxlength=sizeof string);
19
+ native bool: strdel(string[], start, end);
20
+
21
+ native strcmp(const string1[], const string2[], bool:ignorecase=false, length=cellmax);
22
+ native strfind(const string[], const sub[], bool:ignorecase=false, pos=0);
23
+
24
+ native strval(const string[]);
25
+ native valstr(dest[], value, bool:pack=false);
26
+ native bool: ispacked(const string[]);
27
+
28
+ native uudecode(dest[], const source[], maxlength=sizeof dest);
29
+ native uuencode(dest[], const source[], numbytes, maxlength=sizeof dest);
30
+ native memcpy(dest[], const source[], index=0, numbytes, maxlength=sizeof dest);