Ejemplo n.º 1
0
 /// <summary>
 /// Returns the zero-based index position of the last occurrence of a specified string
 /// within this instance. The search starts at a specified character position and
 /// proceeds backward toward the beginning of the string.
 /// </summary>
 /// <param name="value">The string to seek.</param>
 /// <param name="startIndex">The search starting position. The search proceeds from startIndex toward the
 /// beginning of this instance.</param>
 /// <returns>The zero-based starting index position of value if that string is found, or -1
 /// if it is not found. If value is CustomString.Empty, the return value is the last index
 /// position in this instance.</returns>
 public int LastIndexOf(CustomString value, int startIndex) => LastIndexOf(value, startIndex, Length);
Ejemplo n.º 2
0
 /// <summary>
 /// Returns the zero-based index position of the last occurrence of a specified string
 /// within this instance.
 /// </summary>
 /// <param name="value">The string to seek.</param>
 /// <returns>The zero-based starting index position of value if that string is found, or -1
 /// if it is not. If value is CustomString.Empty, the return value is the last index
 /// position in this instance.</returns>
 public int LastIndexOf(CustomString value) => LastIndexOf(value, 0);
Ejemplo n.º 3
0
 /// <summary>
 /// Returns the zero-based index position of the first occurrence of a specified string
 /// within this instance.
 /// </summary>
 /// <param name="value">The string to seek.</param>
 /// <returns>The zero-based starting index position of value if that string is found, or -1
 /// if it is not. If value is CustomString.Empty, the return value is the first index
 /// position in this instance.</returns>
 public int FirstIndexOf(CustomString value) => FirstIndexOf(value, 0);