aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSigmund Vik <sigmund_vik@yahoo.com>2012-04-12 15:04:12 +0200
committerSigmund Vik <sigmund_vik@yahoo.com>2012-04-12 15:04:12 +0200
commitab3f49636fd3d33892fe3a303f66ae75d02524d2 (patch)
tree436e47bee52c386b7b1fedb83ea8b92da98590c1
parent80d8bd8696b2e9c0f2b200840ec0d51962d1ae9c (diff)
More consistent stubs for functions accepting a locale.
Now isdigit_l, isxdigit_l, strftime_l, and strptime_l follow the same convention used by strtol_l et al.
-rw-r--r--src/library.js22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/library.js b/src/library.js
index a584eecb..b468f3f1 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4258,19 +4258,13 @@ 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);
- },
+ isdigit_l: 'isdigit', // no locale support yet
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);
- },
+ isxdigit_l: 'isxdigit', // no locale support yet
isalnum: function(chr) {
return (chr >= '0'.charCodeAt(0) && chr <= '9'.charCodeAt(0)) ||
(chr >= 'a'.charCodeAt(0) && chr <= 'z'.charCodeAt(0)) ||
@@ -5345,11 +5339,7 @@ LibraryManager.library = {
// TODO: Implement.
return 0;
},
- strftime_l__deps: ['strftime'],
- strftime_l: function(s, maxsize, format, timeptr, locale) {
- // TODO: Should depend on the given locale.
- return _strftime(s, maxsize, format, timeptr);
- },
+ strftime_l: 'strftime', // no locale support yet
strptime: function(buf, format, tm) {
// char *strptime(const char *restrict buf, const char *restrict format, struct tm *restrict tm);
@@ -5357,11 +5347,7 @@ LibraryManager.library = {
// TODO: Implement.
return 0;
},
- strptime_l__deps: ['strptime'],
- strptime_l: function(buf, format, tm, locale) {
- // TODO: Should depend on the given locale.
- return _strptime(buf, format, tm);
- },
+ strptime_l: 'strptime', // no locale support yet
getdate: function(string) {
// struct tm *getdate(const char *string);