mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +00:00
54f2e417dc
Returning a string was a bad idea as it makes str_str difficult to use with str_mid. (actually, iirc, it was the only reason I moved all strings into progs memory... hmm).
22 lines
803 B
C
22 lines
803 B
C
#ifndef __ruamoko_string_h
|
|
#define __ruamoko_string_h
|
|
|
|
@extern int strlen (string s);
|
|
@extern string sprintf (string fmt, ...);
|
|
@extern string vsprintf (string fmt, @va_list args);
|
|
@extern string str_new (void);
|
|
@extern void str_free (string str);
|
|
@extern string str_hold (string str);
|
|
@extern int str_valid (string str);
|
|
@extern int str_mutable (string str);
|
|
@extern string str_copy (string dst, string src);
|
|
@extern string str_cat (string dst, string src);
|
|
@extern string str_clear (string str);
|
|
@extern @overload string str_mid (string str, int start);
|
|
@extern @overload string str_mid (string str, int start, int len);
|
|
int str_str (string haystack, string needle);
|
|
@extern int str_char (string str, int ind);
|
|
string str_quote (string str);
|
|
string str_lower (string str);
|
|
|
|
#endif//__ruamoko_string_h
|