summaryrefslogtreecommitdiff
path: root/src/cmark_ctype.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-06-06 09:41:09 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-06-06 09:41:09 -0700
commit7c9e3c4c5547d97d09ab842ac14e44ff391f6905 (patch)
tree0703ceba5c0557c7823d09820a22fe73372efe2d /src/cmark_ctype.c
parent45bfbcc9d2a82bb79d57aead9e51099e71e187e9 (diff)
parent75658002e907063c7e615b2630b873656d2411ba (diff)
Merge pull request #134 from nwellnhof/ctype-fixes
Fix character type detection in commonmark.c
Diffstat (limited to 'src/cmark_ctype.c')
-rw-r--r--src/cmark_ctype.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmark_ctype.c b/src/cmark_ctype.c
index c9a9b0e..c0c4d5b 100644
--- a/src/cmark_ctype.c
+++ b/src/cmark_ctype.c
@@ -40,3 +40,5 @@ int cmark_isalnum(char c) {
}
int cmark_isdigit(char c) { return cmark_ctype_class[(uint8_t)c] == 3; }
+
+int cmark_isalpha(char c) { return cmark_ctype_class[(uint8_t)c] == 4; }