-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathViString.h
More file actions
24 lines (17 loc) · 714 Bytes
/
ViString.h
File metadata and controls
24 lines (17 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "arithmetica.h"
/*
* The module for support the ViStrings
*/
#ifndef VIPER_V4_VISTRING_H
#define VIPER_V4_VISTRING_H
/* Exceptions messages */
#define VISTRING_RANGE_EXCEPTION "index out of range (string)"
/* Define the function for return */
Constant * get_char_by_index(Constant * object, Array ** params);
/* Provides the <string>[index] */
Constant * get_single_char(Constant * object, Constant * index);
/* Provides the <string>[start, end] */
Constant * get_substr(Constant * object, Constant * start, Constant * end);
/* Provides the string[start, end, step] */
Constant * get_substr_step(Constant * object, Constant * start, Constant * end, Constant * step);
#endif //VIPER_V4_VISTRING_H