AutoOpenExtensionsStringBuilder Module
Extension methods for StringBuilder. Provides IndexOf methods and append operations that return unit. This module is automatically opened when the namespace Str is opened.
Type extensions
| Type extension |
Description
|
Full Usage:
this.Add
Parameters:
string
Modifiers: inline |
|
Full Usage:
this.Add
Parameters:
char
Modifiers: inline |
|
Full Usage:
this.AddLine
Parameters:
string
Modifiers: inline |
|
Full Usage:
this.AddLine
Parameters:
unit
Modifiers: inline |
|
Full Usage:
this.Contains
Parameters:
char
Returns: bool
Modifiers: inline |
Checks if StringBuilder contains the given character
Extended Type:
|
Full Usage:
this.Contains
Parameters:
string
Returns: bool
Modifiers: inline |
Checks if StringBuilder contains the given string
Extended Type:
|
Full Usage:
this.IndexOf
Parameters:
char
from : int
Returns: int
|
Like String.IndexOf but for StringBuilder; returns -1 if not found. Throws ArgumentOutOfRangeException if 'from' is negative or greater than the StringBuilder length.
Extended Type:
|
Full Usage:
this.IndexOf
Parameters:
string
from : int
Returns: int
|
Like String.IndexOf but for StringBuilder; returns -1 if not found. Always uses StringComparison.Ordinal. An empty search string is found at 'from'. Throws ArgumentNullException if the search string is null. Throws ArgumentOutOfRangeException if 'from' is negative or greater than the StringBuilder length.
Extended Type:
|
Full Usage:
this.IndexOf
Parameters:
char
Returns: int
Modifiers: inline |
Like String.IndexOf but for StringBuilder; returns -1 if not found.
Extended Type:
|
Full Usage:
this.IndexOf
Parameters:
string
Returns: int
Modifiers: inline |
Like String.IndexOf but for StringBuilder; returns -1 if not found. Always uses StringComparison.Ordinal.
Extended Type:
|
Str