-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstr.h
22 lines (20 loc) · 788 Bytes
/
str.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#include "type.h"
value make$str(const char *v="");
value __getitem__$str$(value self, value k);
value __getitem__$str$int_(value self, value k);
value __getitem__$str$slice(value self, value k);
value __len__$str(value self);
value __add__$str$str(value x, value y);
value __mul__$str$int_(value self, value n);
value __mul__$int_$str(value n, value self);
value __mul__$str$bool_(value self, value n);
value __mul__$bool_$str(value n, value self);
value __eq__$str$str(value x, value y);
value __ne__$str$str(value x, value y);
value __lt__$str$str(value x, value y);
value __le__$str$str(value x, value y);
value __ge__$str$str(value x, value y);
value __gt__$str$str(value x, value y);
value __contains__$str$str(value self, value sub);
value __bool__$str(value self);