Skip to content

Commit fa3685b

Browse files
committed
consistently name index parameters _index
1 parent f8d1efd commit fa3685b

10 files changed

Lines changed: 137 additions & 126 deletions

generated/builtins.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ string llHMAC( string private_key, string msg, string algorithm )
239239
key llHTTPRequest( string url, list parameters, string body )
240240
void llHTTPResponse( key request_id, integer status, string body )
241241
integer llHash( string val )
242-
string llInsertString( string dst, integer pos, string src )
242+
string llInsertString( string dst, integer index, string src )
243243
void llInstantMessage( key user, string message )
244244
string llIntegerToBase64( integer number )
245245
integer llIsFriend( key agent_id )

generated/experimental/category_docs.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,8 +1425,8 @@ list:
14251425
src: Source list to copy and modify.
14261426
start_index: Starting index of the slice to remove (inclusive).
14271427
end_index: Ending index of the slice to remove (inclusive).
1428-
tooltip: Returns a copy of the list src with the slice from start to end (inclusive) removed. Negative indices count backward from the end of the list. If start is greater than end, the deletion excludes
1429-
the specified range.
1428+
tooltip: Returns a copy of the list src with the slice from start_index to end_index (inclusive) removed. Negative indices count backward from the end of the list. If start_index is greater than end_index,
1429+
the deletion excludes the specified range.
14301430
llGetListEntryType( list src, integer index ) -> integer:
14311431
src: Source list containing the element of interest.
14321432
index: Zero-based index of the entry.
@@ -3631,19 +3631,19 @@ string:
36313631
src: Source string to modify.
36323632
start_index: Starting codepoint index of the substring to remove (inclusive). Supports negative indexing.
36333633
end_index: Ending codepoint index of the substring to remove (inclusive). Supports negative indexing.
3634-
tooltip: Returns a copy of the string src with the characters from start to end (inclusive) removed. Negative indices count backward from the end of the string. If start is greater than end, the deletion
3635-
excludes the specified range.
3634+
tooltip: Returns a copy of the string src with the characters from start_index to end_index (inclusive) removed. Negative indices count backward from the end of the string. If start_index is greater
3635+
than end_index, the deletion excludes the specified range.
36363636
llGetSubString( string src, integer start_index, integer end_index ) -> string:
36373637
src: Source string to slice.
36383638
start_index: Starting codepoint index (inclusive). Supports negative indexing.
36393639
end_index: Ending codepoint index (inclusive). Supports negative indexing.
3640-
tooltip: Returns a copy of the substring from src within the inclusive codepoint range start..end. Negative indices count backward from the end of the string. If start is greater than end, the substring
3641-
is the excluded range.
3642-
llInsertString( string dst, integer pos, string src ) -> string:
3640+
tooltip: Returns a copy of the substring from src within the inclusive codepoint range start_index..end_index. Negative indices count backward from the end of the string. If start_index is greater than
3641+
end_index, the substring is the excluded range.
3642+
llInsertString( string dst, integer index, string src ) -> string:
36433643
dst: Target destination string.
3644-
pos: Codepoint index where insertion starts.
3644+
index: Codepoint index where insertion starts.
36453645
src: Source string to insert.
3646-
tooltip: Returns a copy of dst with src inserted at codepoint index pos.
3646+
tooltip: Returns a copy of dst with src inserted at the given codepoint index.
36473647
llOrd( string val, integer index ) -> integer:
36483648
val: Source string.
36493649
index: Codepoint index of the character to convert. Supports negative indexing.

generated/experimental/category_functions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ string:
10031003
- llChar( integer val ) -> string
10041004
- llDeleteSubString( string src, integer start_index, integer end_index ) -> string
10051005
- llGetSubString( string src, integer start_index, integer end_index ) -> string
1006-
- llInsertString( string dst, integer pos, string src ) -> string
1006+
- llInsertString( string dst, integer index, string src ) -> string
10071007
- llOrd( string val, integer index ) -> integer
10081008
- llReplaceSubString( string src, string pattern, string replacement_pattern, integer count ) -> string
10091009
- llStringLength( string str ) -> integer

generated/lsl_keywords_pretty.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11481,7 +11481,7 @@ If another state is defined before the default state, the compiler will report a
1148111481
<key>sleep</key>
1148211482
<real>0.0</real>
1148311483
<key>tooltip</key>
11484-
<string>Returns a copy of the list src with the slice from start to end (inclusive) removed. Negative indices count backward from the end of the list. If start is greater than end, the deletion excludes the specified range.</string>
11484+
<string>Returns a copy of the list src with the slice from start_index to end_index (inclusive) removed. Negative indices count backward from the end of the list. If start_index is greater than end_index, the deletion excludes the specified range.</string>
1148511485
</map>
1148611486
<key>llDeleteSubString</key>
1148711487
<map>
@@ -11522,7 +11522,7 @@ If another state is defined before the default state, the compiler will report a
1152211522
<key>sleep</key>
1152311523
<real>0.0</real>
1152411524
<key>tooltip</key>
11525-
<string>Returns a copy of the string src with the characters from start to end (inclusive) removed. Negative indices count backward from the end of the string. If start is greater than end, the deletion excludes the specified range.</string>
11525+
<string>Returns a copy of the string src with the characters from start_index to end_index (inclusive) removed. Negative indices count backward from the end of the string. If start_index is greater than end_index, the deletion excludes the specified range.</string>
1152611526
</map>
1152711527
<key>llDerezObject</key>
1152811528
<map>
@@ -15051,7 +15051,7 @@ If another state is defined before the default state, the compiler will report a
1505115051
<key>sleep</key>
1505215052
<real>0.0</real>
1505315053
<key>tooltip</key>
15054-
<string>Returns a copy of the substring from src within the inclusive codepoint range start..end. Negative indices count backward from the end of the string. If start is greater than end, the substring is the excluded range.</string>
15054+
<string>Returns a copy of the substring from src within the inclusive codepoint range start_index..end_index. Negative indices count backward from the end of the string. If start_index is greater than end_index, the substring is the excluded range.</string>
1505515055
</map>
1505615056
<key>llGetSunDirection</key>
1505715057
<map>
@@ -15822,7 +15822,7 @@ If another state is defined before the default state, the compiler will report a
1582215822
</map>
1582315823
</map>
1582415824
<map>
15825-
<key>pos</key>
15825+
<key>index</key>
1582615826
<map>
1582715827
<key>tooltip</key>
1582815828
<string>Codepoint index where insertion starts.</string>
@@ -15847,7 +15847,7 @@ If another state is defined before the default state, the compiler will report a
1584715847
<key>sleep</key>
1584815848
<real>0.0</real>
1584915849
<key>tooltip</key>
15850-
<string>Returns a copy of dst with src inserted at codepoint index pos.</string>
15850+
<string>Returns a copy of dst with src inserted at the given codepoint index.</string>
1585115851
</map>
1585215852
<key>llInstantMessage</key>
1585315853
<map>

generated/lua_keywords_pretty.xml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14960,7 +14960,7 @@ Returns true if result is non-zero.</string>
1496014960
</map>
1496114961
</map>
1496214962
<map>
14963-
<key>start</key>
14963+
<key>start_index</key>
1496414964
<map>
1496514965
<key>tooltip</key>
1496614966
<string>Starting byte index (inclusive), or 1 if omitted. Supports negative indexing (optional, defaults to 1).</string>
@@ -14969,7 +14969,7 @@ Returns true if result is non-zero.</string>
1496914969
</map>
1497014970
</map>
1497114971
<map>
14972-
<key>end</key>
14972+
<key>end_index</key>
1497314973
<map>
1497414974
<key>tooltip</key>
1497514975
<string>Ending byte index (inclusive), or i if omitted. Supports negative indexing (optional, defaults to i).</string>
@@ -14985,7 +14985,7 @@ Returns true if result is non-zero.</string>
1498514985
<key>sleep</key>
1498614986
<real>0.0</real>
1498714987
<key>tooltip</key>
14988-
<string>Returns the numeric code of every byte in the range start..end in the string src. Negative indices count backward from the end of the string.</string>
14988+
<string>Returns the numeric code of every byte in the range start_index..end_index in the string src. Negative indices count backward from the end of the string.</string>
1498914989
</map>
1499014990
<key>string.char</key>
1499114991
<map>
@@ -15033,7 +15033,7 @@ Returns true if result is non-zero.</string>
1503315033
</map>
1503415034
</map>
1503515035
<map>
15036-
<key>start</key>
15036+
<key>start_index</key>
1503715037
<map>
1503815038
<key>tooltip</key>
1503915039
<string>Byte index to start the search from, or 1 if omitted. Supports negative indexing (optional, defaults to 1).</string>
@@ -15058,7 +15058,7 @@ Returns true if result is non-zero.</string>
1505815058
<key>sleep</key>
1505915059
<real>0.0</real>
1506015060
<key>tooltip</key>
15061-
<string>Returns the start and end byte indices of the first occurrence of pattern inside the string src, followed by any regex-captured substrings. Returns nil if not found. Negative indices count backward from the end of the string.</string>
15061+
<string>Returns the start and end byte indices of the first occurrence of pattern inside the string src, followed by any regex-captured substrings. Search starts from start_index. Returns nil if not found. Negative indices count backward from the end of the string.</string>
1506215062
</map>
1506315063
<key>string.format</key>
1506415064
<map>
@@ -15243,7 +15243,7 @@ Returns true if result is non-zero.</string>
1524315243
</map>
1524415244
</map>
1524515245
<map>
15246-
<key>start</key>
15246+
<key>start_index</key>
1524715247
<map>
1524815248
<key>tooltip</key>
1524915249
<string>Byte index to start at, or 1 if omitted. Supports negative indexing (optional, defaults to 1).</string>
@@ -15259,7 +15259,7 @@ Returns true if result is non-zero.</string>
1525915259
<key>sleep</key>
1526015260
<real>0.0</real>
1526115261
<key>tooltip</key>
15262-
<string>Returns all occurences of the regex pattern inside the string src. Returns nil if no match is found. Negative indices count backward from the end of the string.</string>
15262+
<string>Returns all occurences of the regex pattern inside the string src, starting from start_index. Returns nil if no match is found. Negative indices count backward from the end of the string.</string>
1526315263
</map>
1526415264
<key>string.pack</key>
1526515265
<map>
@@ -15417,7 +15417,7 @@ Returns true if result is non-zero.</string>
1541715417
</map>
1541815418
</map>
1541915419
<map>
15420-
<key>start</key>
15420+
<key>start_index</key>
1542115421
<map>
1542215422
<key>tooltip</key>
1542315423
<string>Starting byte index (inclusive). Supports negative indexing.</string>
@@ -15426,7 +15426,7 @@ Returns true if result is non-zero.</string>
1542615426
</map>
1542715427
</map>
1542815428
<map>
15429-
<key>end</key>
15429+
<key>end_index</key>
1543015430
<map>
1543115431
<key>tooltip</key>
1543215432
<string>Ending byte index (inclusive), or the end of the string if omitted. Supports negative indexing (optional, defaults to #src).</string>
@@ -15442,7 +15442,7 @@ Returns true if result is non-zero.</string>
1544215442
<key>sleep</key>
1544315443
<real>0.0</real>
1544415444
<key>tooltip</key>
15445-
<string>Returns a copy of the substring from src within the inclusive byte range start..end. Negative indices count backward from the end of the string.</string>
15445+
<string>Returns a copy of the substring from src within the inclusive byte range start_index..end_index. Negative indices count backward from the end of the string.</string>
1544615446
</map>
1544715447
<key>string.unpack</key>
1544815448
<map>
@@ -16277,7 +16277,7 @@ Returns true if result is non-zero.</string>
1627716277
</map>
1627816278
</map>
1627916279
<map>
16280-
<key>start</key>
16280+
<key>start_index</key>
1628116281
<map>
1628216282
<key>tooltip</key>
1628316283
<string>Starting byte index (inclusive), or 1 if omitted. Supports negative indexing (optional, defaults to 1).</string>
@@ -16286,7 +16286,7 @@ Returns true if result is non-zero.</string>
1628616286
</map>
1628716287
</map>
1628816288
<map>
16289-
<key>end</key>
16289+
<key>end_index</key>
1629016290
<map>
1629116291
<key>tooltip</key>
1629216292
<string>Ending byte index (inclusive), or i if omitted. Supports negative indexing (optional, defaults to i).</string>
@@ -16302,7 +16302,7 @@ Returns true if result is non-zero.</string>
1630216302
<key>sleep</key>
1630316303
<real>0.0</real>
1630416304
<key>tooltip</key>
16305-
<string>Returns the ordinals (Unicode copepoint integers) of the characters in the inclusive byte range start..end in the string src. Negative indices count backward from the end of the string.</string>
16305+
<string>Returns the ordinals (Unicode copepoint integers) of the characters in the inclusive byte range start_index..end_index in the string src. Negative indices count backward from the end of the string.</string>
1630616306
</map>
1630716307
<key>utf8.codes</key>
1630816308
<map>
@@ -16341,7 +16341,7 @@ Returns true if result is non-zero.</string>
1634116341
</map>
1634216342
</map>
1634316343
<map>
16344-
<key>start</key>
16344+
<key>start_index</key>
1634516345
<map>
1634616346
<key>tooltip</key>
1634716347
<string>Starting byte index (inclusive), or 1 if omitted. Supports negative indexing (optional, defaults to 1).</string>
@@ -16350,7 +16350,7 @@ Returns true if result is non-zero.</string>
1635016350
</map>
1635116351
</map>
1635216352
<map>
16353-
<key>end</key>
16353+
<key>end_index</key>
1635416354
<map>
1635516355
<key>tooltip</key>
1635616356
<string>Ending byte index (inclusive), or the end of the string if omitted. Supports negative indexing (optional, defaults to #str).</string>
@@ -16366,7 +16366,7 @@ Returns true if result is non-zero.</string>
1636616366
<key>sleep</key>
1636716367
<real>0.0</real>
1636816368
<key>tooltip</key>
16369-
<string>Returns the number of Unicode codepoints in the inclusive byte range start..end of the string src. If the string is not utf8, returns (nil, error index) instead. Negative indices count backward from the end of the string.</string>
16369+
<string>Returns the number of Unicode codepoints in the inclusive byte range start_index..end_index of the string src. If the string is not utf8, returns (nil, error index) instead. Negative indices count backward from the end of the string.</string>
1637016370
</map>
1637116371
<key>utf8.offset</key>
1637216372
<map>
@@ -16391,7 +16391,7 @@ Returns true if result is non-zero.</string>
1639116391
</map>
1639216392
</map>
1639316393
<map>
16394-
<key>start</key>
16394+
<key>start_index</key>
1639516395
<map>
1639616396
<key>tooltip</key>
1639716397
<string>Starting byte index, or 1 if omitted. Supports negative indexing (optional, defaults to if n &gt;= 0 then 1 else #str + 1).</string>
@@ -18158,7 +18158,7 @@ Returns true if result is non-zero.</string>
1815818158
<key>sleep</key>
1815918159
<real>0.0</real>
1816018160
<key>tooltip</key>
18161-
<string>Returns a copy of the list src with the slice from start to end (inclusive) removed. Negative indices count backward from the end of the list. If start is greater than end, the deletion excludes the specified range.</string>
18161+
<string>Returns a copy of the list src with the slice from start_index to end_index (inclusive) removed. Negative indices count backward from the end of the list. If start_index is greater than end_index, the deletion excludes the specified range.</string>
1816218162
</map>
1816318163
<key>ll.DeleteSubString</key>
1816418164
<map>
@@ -18199,7 +18199,7 @@ Returns true if result is non-zero.</string>
1819918199
<key>sleep</key>
1820018200
<real>0.0</real>
1820118201
<key>tooltip</key>
18202-
<string>Returns a copy of the string src with the characters from start to end (inclusive) removed. Negative indices count backward from the end of the string. If start is greater than end, the deletion excludes the specified range.</string>
18202+
<string>Returns a copy of the string src with the characters from start_index to end_index (inclusive) removed. Negative indices count backward from the end of the string. If start_index is greater than end_index, the deletion excludes the specified range.</string>
1820318203
</map>
1820418204
<key>ll.DerezObject</key>
1820518205
<map>
@@ -21734,7 +21734,7 @@ Returns true if result is non-zero.</string>
2173421734
<key>sleep</key>
2173521735
<real>0.0</real>
2173621736
<key>tooltip</key>
21737-
<string>Returns a copy of the substring from src within the inclusive codepoint range start..end. Negative indices count backward from the end of the string. If start is greater than end, the substring is the excluded range.</string>
21737+
<string>Returns a copy of the substring from src within the inclusive codepoint range start_index..end_index. Negative indices count backward from the end of the string. If start_index is greater than end_index, the substring is the excluded range.</string>
2173821738
</map>
2173921739
<key>ll.GetSunDirection</key>
2174021740
<map>
@@ -22507,7 +22507,7 @@ Returns true if result is non-zero.</string>
2250722507
</map>
2250822508
</map>
2250922509
<map>
22510-
<key>pos</key>
22510+
<key>index</key>
2251122511
<map>
2251222512
<key>tooltip</key>
2251322513
<string>Codepoint index where insertion starts.</string>
@@ -22532,7 +22532,7 @@ Returns true if result is non-zero.</string>
2253222532
<key>sleep</key>
2253322533
<real>0.0</real>
2253422534
<key>tooltip</key>
22535-
<string>Returns a copy of dst with src inserted at codepoint index pos.</string>
22535+
<string>Returns a copy of dst with src inserted at the given codepoint index.</string>
2253622536
</map>
2253722537
<key>ll.InstantMessage</key>
2253822538
<map>

0 commit comments

Comments
 (0)