2002-08-15 21:00:51 +00:00
|
|
|
#ifndef __ruamoko_string_h
|
|
|
|
#define __ruamoko_string_h
|
2002-08-15 06:56:37 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern string ftos (float f);
|
|
|
|
@extern string vtos (vector v);
|
|
|
|
@extern float stof (string s);
|
|
|
|
@extern float strlen (string s);
|
|
|
|
@extern float charcount (string goal, string s);
|
|
|
|
@extern string sprintf (string fmt, ...);
|
2020-03-10 09:16:07 +00:00
|
|
|
@extern string vsprintf (string fmt, @va_list args);
|
2011-03-25 07:46:32 +00:00
|
|
|
@extern string itos (int i);
|
|
|
|
@extern int stoi (string s);
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern vector stov (string s);
|
2002-08-15 06:56:37 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern string str_new (void);
|
|
|
|
@extern string str_free (string str);
|
|
|
|
@extern string str_copy (string dst, string src);
|
|
|
|
@extern string str_cat (string dst, string src);
|
|
|
|
@extern string str_clear (string str);
|
2011-03-25 07:46:32 +00:00
|
|
|
@extern @overload string str_mid (string str, int start);
|
|
|
|
@extern @overload string str_mid (string str, int start, int len);
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern string str_str (string haystack, string needle);
|
2020-03-10 09:16:55 +00:00
|
|
|
@extern int str_char (string str, int ind);
|
2004-01-07 07:36:17 +00:00
|
|
|
|
2002-08-15 21:00:51 +00:00
|
|
|
#endif//__ruamoko_string_h
|