2002-08-15 21:00:51 +00:00
|
|
|
#ifndef __ruamoko_string_h
|
|
|
|
#define __ruamoko_string_h
|
2002-08-15 06:56:37 +00:00
|
|
|
|
2020-03-24 15:04:20 +00:00
|
|
|
@extern int strlen (string s);
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern string sprintf (string fmt, ...);
|
2020-03-10 09:16:07 +00:00
|
|
|
@extern string vsprintf (string fmt, @va_list args);
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern string str_new (void);
|
2023-05-27 03:30:06 +00:00
|
|
|
@extern string str_unmutable (string str);
|
2020-03-26 07:49:09 +00:00
|
|
|
@extern void str_free (string str);
|
|
|
|
@extern string str_hold (string str);
|
|
|
|
@extern int str_valid (string str);
|
|
|
|
@extern int str_mutable (string str);
|
2010-12-01 23:04:18 +00:00
|
|
|
@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);
|
2020-04-08 12:54:41 +00:00
|
|
|
int str_str (string haystack, string needle);
|
2020-03-10 09:16:55 +00:00
|
|
|
@extern int str_char (string str, int ind);
|
2020-04-01 12:28:25 +00:00
|
|
|
string str_quote (string str);
|
2020-04-08 12:53:53 +00:00
|
|
|
string str_lower (string str);
|
2021-01-05 09:24:18 +00:00
|
|
|
string str_upper (string str);
|
2023-05-27 03:30:06 +00:00
|
|
|
double strtod (string str, int *end);
|
|
|
|
float strtof (string str, int *end);
|
2023-05-29 06:12:20 +00:00
|
|
|
long strtol (string str, int *end, int base);
|
|
|
|
unsigned long strtoul (string str, int *end, int base);
|
2004-01-07 07:36:17 +00:00
|
|
|
|
2002-08-15 21:00:51 +00:00
|
|
|
#endif//__ruamoko_string_h
|