aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-06 10:03:24 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-06 10:03:24 -0800
commite2cca54219429cc67fadfceb3772407f51df57ac (patch)
tree103b57b4c588004d6768a4e31179fa357e4481e0 /src
parentd15a3b366c7ec8b0f2dfc44e7802d7cc3ebd8290 (diff)
index, rindex
Diffstat (limited to 'src')
-rw-r--r--src/library.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 77d677da..1e528d06 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4516,6 +4516,7 @@ LibraryManager.library = {
} while (val);
return 0;
},
+ index: 'strchr',
strrchr__deps: ['strlen'],
strrchr: function(ptr, chr) {
@@ -4526,6 +4527,7 @@ LibraryManager.library = {
} while (ptr2 >= ptr);
return 0;
},
+ rindex: 'strrchr',
strdup: function(ptr) {
var len = String_len(ptr);