diff options
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js index 104b0dc4..bb73c48a 100644 --- a/src/library.js +++ b/src/library.js @@ -4073,6 +4073,28 @@ LibraryManager.library = { } return pdest; }, + + strlwr__deps:['tolower'], + strlwr: function(pstr){ + var i = 0; + while(1) { + var x = {{{ makeGetValue('pstr', 'i', 'i8') }}}; + if(x == 0) break; + {{{ makeSetValue('pstr', 'i', '_tolower(x)', 'i8') }}}; + i++; + } + }, + + strupr__deps:['toupper'], + strupr: function(pstr){ + var i = 0; + while(1) { + var x = {{{ makeGetValue('pstr', 'i', 'i8') }}}; + if(x == 0) break; + {{{ makeSetValue('pstr', 'i', '_toupper(x)', 'i8') }}}; + i++; + } + }, strcat__deps: ['strlen'], strcat: function(pdest, psrc) { |