Class StringExtensions
Extension methods for string.
Inherited Members
Namespace: Codecrete.SwissQRBill.Generator
Assembly: Codecrete.SwissQRBill.Core.dll
Syntax
public static class StringExtensions
Methods
| Edit this page View SourceAppendCodePoint(StringBuilder, int)
Appends the given Unicode code point to this instance.
Declaration
public static void AppendCodePoint(this StringBuilder sb, int codePoint)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | sb | this instance |
int | codePoint | the Unicode code point |
SpacesCleaned(string)
Returns a new string without leading and trailing spaces and with all consecutive space characters replaced by a single space.
Whitespace other than space characters are not cleaned.
Declaration
public static string SpacesCleaned(this string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string instance that this method extends |
Returns
Type | Description |
---|---|
string | The resulting string with all whitespace removed. |
Trimmed(string)
Returns a new string with leading and trailing whitespace removed.
For empty strings or null
, null
is returned.
Declaration
public static string Trimmed(this string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string instance that this method extends or |
Returns
Type | Description |
---|---|
string | The trimmed string or |
WhiteSpaceRemoved(string)
Returns a new string without white space.
Declaration
public static string WhiteSpaceRemoved(this string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string instance that this method extends |
Returns
Type | Description |
---|---|
string | The resulting string with all whitespace removed. |