Table of Contents

Class StringUtils

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains string related static methods.

public static class StringUtils
Inheritance
StringUtils

Fields

FourSpaces

Gets initialized string with four space characters.

MacCommandKeyTitle

Gets title of the windows key on MacOs (0x2318 character).

OneCarriageReturn

Gets initialized string with one carriage return.

OneDoubleQuote

Gets initialized string with one double quote character (").

OneNewLine

Gets initialized string with one new line character.

OneSpace

Gets initialized string with one space character.

Properties

ComparerObjectUsingToString

Returns IComparer<T> which converts objects to strings using ToString() and uses Compare(string, string, StringComparison) for comparing.

StringSplitToArrayChars

Gets or sets values that split one string to many when log operations are performed (or in other situations).

Methods

GetUniqueString()

Generates unique string in the format A00000000000000000000000000000000 where 0 represents a digit.

IsHexNumber(string?)

Gets whether text is a hex number.

LimitLength(string?, int)

Limits the length of text to a defined length.

OverrideIgnoreCase(StringComparison, bool)

Changes StringComparison value to use ignoreCase.

PrefixSuffix(string, string)

Modfies specified string by adding prefix and suffix.

StartsWith<T>(string, IEnumerable<T>)

Gets whether string s starts with one of the strings specified in items collection.

ToString<T>(IEnumerable<T>, string?, string?, string?)

Combines array elements to comma separated string inside round brackets.

ToString<T>(string[], T[])

Combines name and value pairs to string.

TryParseByte(string?, NumberStyles, IFormatProvider?, out object?)

Calls TryParse(string, NumberStyles, IFormatProvider, out byte)

TryParseDecimal(string?, NumberStyles, IFormatProvider?, out object?)

Calls TryParse(string, NumberStyles, IFormatProvider, out decimal)

TryParseDouble(string?, NumberStyles, IFormatProvider?, out object?)

Calls TryParse(string, NumberStyles, IFormatProvider, out double)

TryParseInt16(string?, NumberStyles, IFormatProvider?, out object?)

Calls TryParse(string, NumberStyles, IFormatProvider, out short)

TryParseInt32(string?, NumberStyles, IFormatProvider?, out object?)

Calls TryParse(string, NumberStyles, IFormatProvider, out int)

TryParseInt64(string?, NumberStyles, IFormatProvider?, out object?)

Calls TryParse(string, NumberStyles, IFormatProvider, out long)

TryParseNumber(TypeCode, string?, NumberStyles?, IFormatProvider?, out object?)

Converts the string representation of a number to its number equivalent. A return value indicates whether the conversion succeeded or failed.

TryParseSByte(string?, NumberStyles, IFormatProvider?, out object?)

Calls TryParse(string, NumberStyles, IFormatProvider, out sbyte)

TryParseSingle(string?, NumberStyles, IFormatProvider?, out object?)

Calls TryParse(string, NumberStyles, IFormatProvider, out float)

TryParseUInt16(string?, NumberStyles, IFormatProvider?, out object?)

Calls TryParse(string, NumberStyles, IFormatProvider, out ushort)

TryParseUInt32(string?, NumberStyles, IFormatProvider?, out object?)

Calls TryParse(string, NumberStyles, IFormatProvider, out uint)

TryParseUInt64(string?, NumberStyles, IFormatProvider?, out object?)

Calls TryParse(string, NumberStyles, IFormatProvider, out ulong)