xtd 0.2.0
Loading...
Searching...
No Matches

◆ substring() [2/2]

ustring xtd::ustring::substring ( size_t  start_index,
size_t  length 
) const
noexcept

Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length.

Parameters
start_indexThe zero-based starting character position of a substring in this instance.
lengthThe number of characters in the substring.
Returns
A string equivalent to the substring of length length that begins at start_index in this instance, or Empty if start_index is equal to the length of this instance and length is zero.