aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-02-13 15:28:11 -0500
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-03-28 10:58:41 -0700
commit83ac9ca2ecec4262735edd02b989e01fbe741a22 (patch)
tree3701f33f495ace6fa9f5af93d2117a1a0706e765 /src/library.js
parent8a889130130d16528f3f6a5c84dda97441335953 (diff)
Implement isdigit_l and isxdigit_l
We ignore the locales for now
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 184cd91d..aa1fd242 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4239,11 +4239,19 @@ LibraryManager.library = {
isdigit: function(chr) {
return chr >= '0'.charCodeAt(0) && chr <= '9'.charCodeAt(0);
},
+ isdigit_l__deps: ['isdigit'],
+ isdigit_l: function(chr, loc) {
+ return _isdigit(chr);
+ },
isxdigit: function(chr) {
return (chr >= '0'.charCodeAt(0) && chr <= '9'.charCodeAt(0)) ||
(chr >= 'a'.charCodeAt(0) && chr <= 'f'.charCodeAt(0)) ||
(chr >= 'A'.charCodeAt(0) && chr <= 'F'.charCodeAt(0));
},
+ isxdigit_l__deps: ['isxdigit'],
+ isxdigit_l: function(chr, loc) {
+ return _isxdigit(chr);
+ },
isalnum: function(chr) {
return (chr >= '0'.charCodeAt(0) && chr <= '9'.charCodeAt(0)) ||
(chr >= 'a'.charCodeAt(0) && chr <= 'z'.charCodeAt(0)) ||