summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJeff Walden <jwalden@mit.edu>2018-04-09 12:02:43 -0700
committerwolfbeast <mcwerewolf@gmail.com>2018-04-29 13:39:27 +0200
commit1a96f087d4279f08ec0d65dba499eb6e2a4e3b1c (patch)
tree2e0ad36f4fec1a5a79300b4ed449ad28e7e9ae64 /js
parent619a88109edc0f1e3a315d947f069979ed95d9eb (diff)
downloaduxp-1a96f087d4279f08ec0d65dba499eb6e2a4e3b1c.tar.gz
Bug 1452619 - Implement mozilla::IsAsciiAlpha. r=froydnj, a=lizzard
Diffstat (limited to 'js')
-rw-r--r--js/src/jsstr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/jsstr.h b/js/src/jsstr.h
index 3b92aa21b3..7e9621d4a2 100644
--- a/js/src/jsstr.h
+++ b/js/src/jsstr.h
@@ -9,6 +9,7 @@
#include "mozilla/HashFunctions.h"
#include "mozilla/PodOperations.h"
+#include "mozilla/TextUtils.h"
#include <stdio.h>
@@ -95,7 +96,7 @@ struct JSSubString {
#define JS7_UNOCT(c) (JS7_UNDEC(c))
#define JS7_ISHEX(c) ((c) < 128 && isxdigit(c))
#define JS7_UNHEX(c) (unsigned)(JS7_ISDEC(c) ? (c) - '0' : 10 + tolower(c) - 'a')
-#define JS7_ISLET(c) ((c) < 128 && isalpha(c))
+#define JS7_ISLET(c) (mozilla::IsAsciiAlpha(c))
extern size_t
js_strlen(const char16_t* s);