mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
694ad2e840
This returns the character (as an int) at the index. Equivalent to string[index], but qc code doesn't have char-level access and not having it means that strings can internally change to wchar without too much fuss (maybe).
22 lines
832 B
R
22 lines
832 B
R
#include <string.h>
|
|
|
|
string (float f) ftos = #26;
|
|
string (vector v) vtos = #27;
|
|
float (string s) stof = #81;
|
|
float (string s) strlen = #0x000f0000 + 100;
|
|
float (string goal, string s) charcount = #0x000f0000 + 101;
|
|
string (string fmt, ...) sprintf = #0x000f0000 + 109;
|
|
string vsprintf (string fmt, @va_list args) = #0;
|
|
string (int i) itos = #0x000f0000 + 112;
|
|
int (string s) stoi = #0x000f0000 + 113;
|
|
vector (string s) stov = #0x000f0000 + 114;
|
|
|
|
string (void) str_new = #0;
|
|
string (string str) str_free = #0;
|
|
string (string dst, string src) str_copy = #0;
|
|
string (string dst, string src) str_cat = #0;
|
|
string (string str) str_clear = #0;
|
|
string (string str, int start) str_mid = #0;
|
|
string (string str, int start, int len) str_mid = #0;
|
|
string (string haystack, string needle) str_str = #0;
|
|
int str_char (string str, int ind) = #0;
|