summaryrefslogtreecommitdiff
path: root/src/str.h
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-01-11 09:58:43 +0800
committerJSDurand <mmemmew@gmail.com>2022-01-11 09:58:43 +0800
commit91016bd3855375796fd1eabd501ebc12491f2655 (patch)
treec4a608966b686c9639a90b92c31c00632532fac8 /src/str.h
parent949888ad5d0cd0f9f9a87f9938a632b3e32df051 (diff)
Add the framework for character classes.
Now we have the potential to recognize character classes. But the most important task for us now is to experiment with ((B)RN)GLR algorithms, so we leave the character classes at the present state for a moment.
Diffstat (limited to 'src/str.h')
-rw-r--r--src/str.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/str.h b/src/str.h
index 39bddf6..bfe5867 100644
--- a/src/str.h
+++ b/src/str.h
@@ -20,16 +20,16 @@ typedef struct str_info_s str_info;
#define EMPTY_STR_INFO ((str_info) { 0, 1 })
-str_info get_info(str *, UNUM);
+str_info get_info(const str * const restrict s, UNUM n);
-char *get_data(str *s);
+char *get_data(const str * const restrict s);
-NUM str_length(str *);
+NUM str_length(const str * const restrict s);
void str_set_length(str *s, UNUM size);
void change_str_content(str *, char *, NUM);
-unsigned char copy_str(str *dest, str *source);
+BOOL copy_str(str *dest, str *source);
#endif