aboutsummaryrefslogtreecommitdiffstats
path: root/src/turtle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/turtle.h')
-rw-r--r--src/turtle.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/turtle.h b/src/turtle.h
index 6e7e3a8d..f794e1e8 100644
--- a/src/turtle.h
+++ b/src/turtle.h
@@ -8,7 +8,6 @@
#include "string_utils.h"
#include <stdbool.h>
-#include <string.h>
static inline bool
is_PN_CHARS_U(const int c)
@@ -26,7 +25,10 @@ is_PN_CHARS(const int c)
static inline bool
is_PN_LOCAL_ESC(const int c)
{
- return strchr("!#$%&\'()*+,-./;=?@_~", c) != NULL;
+ return c == '!' || c == '#' || c == '$' || c == '%' || c == '&' ||
+ c == '\'' || c == '(' || c == ')' || c == '*' || c == '+' ||
+ c == ',' || c == '-' || c == '.' || c == '/' || c == ';' || c == '=' ||
+ c == '?' || c == '@' || c == '\\' || c == '_' || c == '~';
}
#endif // SERD_SRC_TURTLE_H