/* from psusershape.c */
UTILS_API void cat_libfile(GVJ_t * job, const char **arglib, const char **stdlib);
+ /* variant of `isalpha` that assumes a C locale */
+ static inline bool isalpha_no_locale(char c) {
+ if (c >= 'a' && c <= 'z')
+ return true;
+ if (c >= 'A' && c <= 'Z')
+ return true;
+ return false;
+ }
+
#undef UTILS_API
#ifdef __cplusplus
#include <stdio.h>
#include <stdlib.h>
-// variant of `isalpha` that assumes a C locale
-static bool isalpha_no_locale(char c) {
- if (c >= 'a' && c <= 'z')
- return true;
- if (c >= 'A' && c <= 'Z')
- return true;
- return false;
-}
-
/* return true if *s points to &[A-Za-z]+; (e.g. Ç )
* or &#[0-9]*; (e.g. & )
* or &#x[0-9a-fA-F]*; (e.g. 水 )