aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-07-30 18:43:49 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-07-30 18:43:49 -0700
commit3928f293b817a48797faf10b10a69240236de767 (patch)
tree905f56cd63230ce417a6a0ad555eb7c7ecf29ae0
parent7c43fe1d7865b3da1655d66ee5e95246dafda3ec (diff)
isupper, islower
-rw-r--r--src/library.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 604c742f..afcea851 100644
--- a/src/library.js
+++ b/src/library.js
@@ -3566,6 +3566,14 @@ LibraryManager.library = {
return chr;
},
+ isupper: function(chr) {
+ return (chr >= 'A'.charCodeAt(0) && chr <= 'Z'.charCodeAt(0));
+ },
+
+ islower: function(chr) {
+ return (chr >= 'a'.charCodeAt(0) && chr <= 'z'.charCodeAt(0));
+ },
+
// ==========================================================================
// ctype.h Linux specifics
// ==========================================================================