change string literals to be length terminated instead of null terminated, so null characters can be embeded
This commit is contained in:
@@ -6,10 +6,15 @@
|
||||
|
||||
// Declare functions related to string processing in parser
|
||||
|
||||
typedef struct {
|
||||
size_t length;
|
||||
char *string;
|
||||
} ParsedString;
|
||||
|
||||
char *swap_quotes(char *input, char quote);
|
||||
|
||||
char *unquote(char *str);
|
||||
char *unquote(char *str, size_t *decoded_len);
|
||||
|
||||
ParsedValue *parse_string(Token token);
|
||||
ParsedValue *parse_string(char*file,Token* token);
|
||||
|
||||
#endif // STRING_UTILS_H
|
||||
Reference in New Issue
Block a user