@@ -163,7 +163,7 @@ JsVar *jswrap_string_charCodeAt(JsVar *parent, JsVarInt idx) {
163
163
"generate_full" : "jswrap_string_indexOf(parent, substring, fromIndex, false)",
164
164
"params" : [
165
165
["substring","JsVar","The string to search for"],
166
- ["fromIndex","JsVar","Index to search from"]
166
+ ["fromIndex","JsVar","[optional] Index to search from"]
167
167
],
168
168
"return" : ["int32","The index of the string, or -1 if not found"]
169
169
}
@@ -176,7 +176,7 @@ Return the index of substring in this string, or -1 if not found
176
176
"generate_full" : "jswrap_string_indexOf(parent, substring, fromIndex, true)",
177
177
"params" : [
178
178
["substring","JsVar","The string to search for"],
179
- ["fromIndex","JsVar","Index to search from"]
179
+ ["fromIndex","JsVar","[optional] Index to search from"]
180
180
],
181
181
"return" : ["int32","The index of the string, or -1 if not found"]
182
182
}
@@ -461,7 +461,7 @@ JsVar *jswrap_string_replaceAll(JsVar *parent, JsVar *subStr, JsVar *newSubStr)
461
461
"generate" : "jswrap_string_substring",
462
462
"params" : [
463
463
["start","int","The start character index (inclusive)"],
464
- ["end","JsVar","The end character index (exclusive)"]
464
+ ["end","JsVar","[optional] The end character index (exclusive)"]
465
465
],
466
466
"return" : ["JsVar","The part of this string between start and end"]
467
467
}*/
@@ -484,7 +484,7 @@ JsVar *jswrap_string_substring(JsVar *parent, JsVarInt pStart, JsVar *vEnd) {
484
484
"generate" : "jswrap_string_substr",
485
485
"params" : [
486
486
["start","int","The start character index"],
487
- ["len","JsVar","The number of characters"]
487
+ ["len","JsVar","[optional] The number of characters"]
488
488
],
489
489
"return" : ["JsVar","Part of this string from start for len characters"]
490
490
}*/
@@ -798,7 +798,7 @@ JsVar *jswrap_string_concat(JsVar *parent, JsVar *args) {
798
798
"generate" : "jswrap_string_startsWith",
799
799
"params" : [
800
800
["searchString","JsVar","The string to search for"],
801
- ["position","int","The start character index (or 0 if not defined)"]
801
+ ["position","int","[optional] The start character index (or 0 if not defined)"]
802
802
],
803
803
"return" : ["bool","`true` if the given characters are found at the beginning of the string, otherwise, `false`."]
804
804
}
@@ -822,7 +822,7 @@ bool jswrap_string_startsWith(JsVar *parent, JsVar *search, int position) {
822
822
"generate" : "jswrap_string_endsWith",
823
823
"params" : [
824
824
["searchString","JsVar","The string to search for"],
825
- ["length","JsVar","The 'end' of the string - if left off the actual length of the string is used"]
825
+ ["length","JsVar","[optional] The 'end' of the string - if left off the actual length of the string is used"]
826
826
],
827
827
"return" : ["bool","`true` if the given characters are found at the end of the string, otherwise, `false`."]
828
828
}
@@ -848,7 +848,7 @@ bool jswrap_string_endsWith(JsVar *parent, JsVar *search, JsVar *length) {
848
848
"generate_full" : "jswrap_string_indexOf(parent, substring, fromIndex, false)>=0",
849
849
"params" : [
850
850
["substring","JsVar","The string to search for"],
851
- ["fromIndex","JsVar","The start character index (or 0 if not defined)"]
851
+ ["fromIndex","JsVar","[optional] The start character index (or 0 if not defined)"]
852
852
],
853
853
"return" : ["bool","`true` if the given characters are in the string, otherwise, `false`."]
854
854
}
0 commit comments