Truncate |
![]() |
|
|
|
|
|
Truncates (i.e. removes all characters at and after) the given 0-based index. The buffer allocated for the string is preserved.
If the specified index is beyond the end of the string, this method does nothing.
Calling TruncateAt(0) is equivalent to Empty()
See also: Trimming / case / miscellaneous