summaryrefslogtreecommitdiffstats
path: root/js/src
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
commitd308db119d48ce858b194a720f7946349b5f9b47 (patch)
tree2e0ad36f4fec1a5a79300b4ed449ad28e7e9ae64 /js/src
parent66aa6b595c47231958a855e4b166f5d55df1184d (diff)
downloadUXP-d308db119d48ce858b194a720f7946349b5f9b47.tar
UXP-d308db119d48ce858b194a720f7946349b5f9b47.tar.gz
UXP-d308db119d48ce858b194a720f7946349b5f9b47.tar.lz
UXP-d308db119d48ce858b194a720f7946349b5f9b47.tar.xz
UXP-d308db119d48ce858b194a720f7946349b5f9b47.zip
Bug 1452619 - Implement mozilla::IsAsciiAlpha. r=froydnj, a=lizzard
Diffstat (limited to 'js/src')
-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 3b92aa21b..7e9621d4a 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);