Show / Hide Table of Contents

Class StringExtensions

Extension methods for string.

Inheritance
object
StringExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Codecrete.SwissQRBill.Generator
Assembly: Codecrete.SwissQRBill.Core.dll
Syntax
public static class StringExtensions

Methods

| Edit this page View Source

AppendCodePoint(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

| Edit this page View Source

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.

| Edit this page View Source

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 null.

Returns
Type Description
string

The trimmed string or null.

| Edit this page View Source

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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX