Project

General

Profile

Bug #6680 ยป rdoc_for_array_and_string_slice_2_v1.patch

stomar (Marcus Stollsteimer), 07/04/2012 09:38 PM

View differences:

string.c (Arbeitskopie)
3218 3218
 *  Element Reference --- If passed a single +index+, returns a substring of
3219 3219
 *  one character at that index. If passed a +start+ index and a +length+,
3220 3220
 *  returns a substring containing +length+ characters starting at the
3221
 *  +index+. If passed a range, its beginning and end are interpreted as
3222
 *  offsets delimiting the substring to be returned. In these three cases, if
3223
 *  an index is negative, it is counted from the end of the string.
3221
 *  index. If passed a range, its beginning and end are interpreted as
3222
 *  offsets delimiting the substring to be returned.
3223
 *  In the latter two cases, the index identifies the place just before a character.
3224
 *  In all three cases, if an index is negative, it is counted from the end
3225
 *  of the string.
3224 3226
 *
3225 3227
 *  Returns +nil+ if the initial index falls outside the string or the length
3226 3228
 *  is negative.
array.c (Arbeitskopie)
1014 1014
 *  Element Reference --- Returns the element at +index+, or returns a
1015 1015
 *  subarray starting at the +start+ index and continuing for +length+
1016 1016
 *  elements, or returns a subarray specified by +range+ of indices.
1017
 *  In the latter two cases, the start index identifies the place
1018
 *  just before an element.
1017 1019
 *
1018 1020
 *  Negative indices count backward from the end of the array (-1 is the last
1019 1021
 *  element).
......
1434 1436
 *  Element Assignment --- Sets the element at +index+, or replaces a subarray
1435 1437
 *  from the +start+ index for +length+ elements, or replaces a subarray
1436 1438
 *  specified by the +range+ of indices.
1439
 *  In the latter two cases, the start index identifies the place
1440
 *  just before an element.
1437 1441
 *
1438 1442
 *  If indices are greater than the current capacity of the array, the array
1439 1443
 *  grows automatically. Negative indices will count backward from the end of