Method TrimEnd
TrimEnd<T>(ref T)
Removes whitespace characters from the end of the string.
Declaration
public static T TrimEnd<T>(this ref T fs) where T : unmanaged, INativeList<byte>, IUTF8Bytes
Parameters
| Type | Name | Description |
|---|---|---|
| T | fs | A string to perform operation. |
Returns
| Type | Description |
|---|---|
| T | Returns instance of this string with whitespace characters removed from the end of the string. |
Type Parameters
| Name | Description |
|---|---|
| T | A string type. |
TrimEnd(ref UnsafeText, AllocatorHandle)
Removes whitespace characters from the end of the string.
Declaration
public static UnsafeText TrimEnd(this ref UnsafeText fs, AllocatorManager.AllocatorHandle allocator)
Parameters
| Type | Name | Description |
|---|---|---|
| UnsafeText | fs | A UnsafeText string to perform operation. |
| AllocatorManager.AllocatorHandle | allocator | The AllocatorManager.AllocatorHandle allocator type to use. |
Returns
| Type | Description |
|---|---|
| UnsafeText | Returns instance of this string with whitespace characters removed from the end of the string. |
TrimEnd(ref NativeText, AllocatorHandle)
Removes whitespace characters from the end of the string.
Declaration
public static NativeText TrimEnd(this ref NativeText fs, AllocatorManager.AllocatorHandle allocator)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeText | fs | A NativeText string to perform operation. |
| AllocatorManager.AllocatorHandle | allocator | The AllocatorManager.AllocatorHandle allocator type to use. |
Returns
| Type | Description |
|---|---|
| NativeText | Returns instance of this string with whitespace characters removed from the end of the string. |
TrimEnd<T>(ref T, ReadOnlySpan<Rune>)
Removes specific characters from the end of the string.
Declaration
public static T TrimEnd<T>(this ref T fs, ReadOnlySpan<Unicode.Rune> trimRunes) where T : unmanaged, INativeList<byte>, IUTF8Bytes
Parameters
| Type | Name | Description |
|---|---|---|
| T | fs | A string to perform operation. |
| ReadOnlySpan<Rune> | trimRunes | Runes that should be trimmed. |
Returns
| Type | Description |
|---|---|
| T | Returns instance of this string with specific characters removed from the end of the string. |
Type Parameters
| Name | Description |
|---|---|
| T | A string type. |
TrimEnd(ref UnsafeText, AllocatorHandle, ReadOnlySpan<Rune>)
Removes specific characters from the end of the string.
Declaration
public static UnsafeText TrimEnd(this ref UnsafeText fs, AllocatorManager.AllocatorHandle allocator, ReadOnlySpan<Unicode.Rune> trimRunes)
Parameters
| Type | Name | Description |
|---|---|---|
| UnsafeText | fs | A UnsafeText string to perform operation. |
| AllocatorManager.AllocatorHandle | allocator | The AllocatorManager.AllocatorHandle allocator type to use. |
| ReadOnlySpan<Rune> | trimRunes | Runes that should be trimmed. |
Returns
| Type | Description |
|---|---|
| UnsafeText | Returns instance of this string with specific characters removed from the end of the string. |
TrimEnd(ref NativeText, AllocatorHandle, ReadOnlySpan<Rune>)
Removes specific characters from the end of the string.
Declaration
public static NativeText TrimEnd(this ref NativeText fs, AllocatorManager.AllocatorHandle allocator, ReadOnlySpan<Unicode.Rune> trimRunes)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeText | fs | A NativeText string to perform operation. |
| AllocatorManager.AllocatorHandle | allocator | The AllocatorManager.AllocatorHandle allocator type to use. |
| ReadOnlySpan<Rune> | trimRunes | Runes that should be trimmed. |
Returns
| Type | Description |
|---|---|
| NativeText | Returns instance of this string with specific characters removed from the end of the string. |