Method TrimStart
TrimStart<T>(ref T)
Removes whitespace characters from begining of the string.
Declaration
public static T TrimStart<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 start of the string. |
Type Parameters
Name | Description |
---|---|
T | A string type. |
TrimStart(ref UnsafeText, AllocatorHandle)
Removes whitespace characters from begining of the string.
Declaration
public static UnsafeText TrimStart(this ref UnsafeText fs, AllocatorManager.AllocatorHandle allocator)
Parameters
Type | Name | Description |
---|---|---|
Unsafe |
fs | A Unsafe |
Allocator |
allocator | The Allocator |
Returns
Type | Description |
---|---|
Unsafe |
Returns instance of this string with whitespace characters removed from the start of the string. |
TrimStart(ref NativeText, AllocatorHandle)
Removes whitespace characters from begining of the string.
Declaration
public static NativeText TrimStart(this ref NativeText fs, AllocatorManager.AllocatorHandle allocator)
Parameters
Type | Name | Description |
---|---|---|
Native |
fs | A Native |
Allocator |
allocator | The Allocator |
Returns
Type | Description |
---|---|
Native |
Returns instance of this string with whitespace characters removed from the start of the string. |
TrimStart<T>(ref T, ReadOnlySpan<Rune>)
Removes specific characters from begining of the string.
Declaration
public static T TrimStart<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. |
Read |
trimRunes | Runes that should be trimmed. |
Returns
Type | Description |
---|---|
T | Returns instance of this string with specific characters removed from the start of the string. |
Type Parameters
Name | Description |
---|---|
T | A string type. |
TrimStart(ref UnsafeText, AllocatorHandle, ReadOnlySpan<Rune>)
Removes specific characters characters from begining of the string.
Declaration
public static UnsafeText TrimStart(this ref UnsafeText fs, AllocatorManager.AllocatorHandle allocator, ReadOnlySpan<Unicode.Rune> trimRunes)
Parameters
Type | Name | Description |
---|---|---|
Unsafe |
fs | A Unsafe |
Allocator |
allocator | The Allocator |
Read |
trimRunes | Runes that should be trimmed. |
Returns
Type | Description |
---|---|
Unsafe |
Returns instance of this string with specific characters removed from the start of the string. |
TrimStart(ref NativeText, AllocatorHandle, ReadOnlySpan<Rune>)
Removes specific characters from begining of the string.
Declaration
public static NativeText TrimStart(this ref NativeText fs, AllocatorManager.AllocatorHandle allocator, ReadOnlySpan<Unicode.Rune> trimRunes)
Parameters
Type | Name | Description |
---|---|---|
Native |
fs | A Native |
Allocator |
allocator | The Allocator |
Read |
trimRunes | Runes that should be trimmed. |
Returns
Type | Description |
---|---|
Native |
Returns instance of this string with specific characters removed from the start of the string. |