diff options
-rw-r--r-- | src/library.js | 8 | ||||
-rwxr-xr-x | tests/runner.py | 10 |
2 files changed, 18 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)) || diff --git a/tests/runner.py b/tests/runner.py index e6a792eb..6d060f7e 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -1698,6 +1698,16 @@ m_divisor is 1091269979 ''' self.do_run(src, '*51,87,78,550,100,78,550*') + def test_isdigit_l(self): + src = ''' + #include <iostream> + int main() { + using namespace std; + use_facet<num_put<char> >(cout.getloc()).put(cout, cout, '0', 3.14159265); + } + ''' + self.do_run(src, '3.14159') + def test_polymorph(self): src = ''' #include <stdio.h> |