-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_Strings_StringExtensions
Andrew Koryavchenko edited this page Jun 17, 2018
·
9 revisions
StringExtensions ClassString class extensions.
System.Object
CodeJam.Strings.StringExtensions
Namespace: CodeJam.Strings
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static class StringExtensions
VB
<ExtensionAttribute>
Public NotInheritable Class StringExtensions
F#
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type StringExtensions = class end
The StringExtensions type exposes the following members.
Name | Description | |
---|---|---|
EmptyIfNull | Returns an empty string for null value. | |
FormatWith(String, Object) | Replaces one or more format items in a specified string with the string representation of a specified object. | |
FormatWith(String, Object[]) | Replaces the format items in a specified string with the string representations of corresponding objects in a specified array. | |
FormatWith(String, Object, Object) | Replaces the format items in a specified string with the string representation of two specified objects. | |
FormatWith(String, Object, Object, Object) | Replaces the format items in a specified string with the string representation of three specified objects. | |
FromBase64 | Converts the specified string, which encodes binary data as base-64 digits, to an equivalent byte array. | |
IsControl | Indicates whether the character at the specified position in a specified string is categorized as a control. | |
IsDigit(String) | Indicates whether all characters in a specified string is categorized as a digit. | |
IsDigit(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a digit. | |
IsHighSurrogate | Indicates whether the character at the specified position in a specified string is categorized as a highsurrogate. | |
IsLetter(String) | Indicates whether all characters in a specified string is categorized as a letter. | |
IsLetter(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a letter. | |
IsLetterOrDigit(String) | Indicates whether all characters in a specified string is categorized as a letterordigit. | |
IsLetterOrDigit(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a letterordigit. | |
IsLower(String) | Indicates whether all characters in a specified string is categorized as a lower. | |
IsLower(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a lower. | |
IsLowSurrogate | Indicates whether the character at the specified position in a specified string is categorized as a lowsurrogate. | |
IsNullOrEmpty | Infix form of IsNullOrEmpty(String). | |
IsNullOrWhiteSpace | Infix form of string.IsNullOrWhiteSpace. | |
IsNumber(String) | Indicates whether all characters in a specified string is categorized as a number. | |
IsNumber(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a number. | |
IsPunctuation(String) | Indicates whether all characters in a specified string is categorized as a punctuation. | |
IsPunctuation(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a punctuation. | |
IsSeparator(String) | Indicates whether all characters in a specified string is categorized as a separator. | |
IsSeparator(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a separator. | |
IsSurrogate | Indicates whether the character at the specified position in a specified string is categorized as a surrogate. | |
IsSurrogatePair | Indicates whether the character at the specified position in a specified string is categorized as a surrogatepair. | |
IsSymbol(String) | Indicates whether all characters in a specified string is categorized as a symbol. | |
IsSymbol(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a symbol. | |
IsUpper(String) | Indicates whether all characters in a specified string is categorized as a upper. | |
IsUpper(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a upper. | |
IsWhiteSpace(String) | Indicates whether all characters in a specified string is categorized as a whitespace. | |
IsWhiteSpace(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a whitespace. | |
Join(IEnumerable(String), String) | Concatenates the members of a constructed IEnumerable(T) collection of type String, using the specified separator between each member. | |
Join(String[], String) | Concatenates all the elements of a string array, using the specified separator between each element. | |
Join(T)(IEnumerable(T)) | Concatenates the members of a collection. | |
Join(T)(IEnumerable(T), String) | Concatenates the members of a collection, using the specified separator between each member. | |
Length | Returns length of argument, even if argument is null. | |
NotNullNorEmpty | Returns true if argument is not null nor empty. | |
NotNullNorWhiteSpace | Returns true if argument is not null nor whitespace. | |
NullIfEmpty |
Returns null for empty strings. |
|
Prefix | Retrieves prefix of length length. | |
Remove | Removes substring from provided strings. | |
SplitWithTrim | Splits source and returns whitespace trimmed parts. | |
Substring | Retrieves a substring from str. | |
Suffix | Retrieves prefix of length length. | |
ToBase64 | Converts an array of bytes to its equivalent string representation that is encoded with base-64 digits. A parameter specifies whether to insert line breaks in the return value. | |
ToByte | Converts the string representation of a number in a specified style and culture-specific format to its Byte equivalent. A return value indicates whether the conversion succeeded. | |
ToByteInvariant | Converts the string representation of a number in a specified style and culture-invariant format to its Byte equivalent. A return value indicates whether the conversion succeeded. | |
ToBytes(String) | Encodes all the characters in the specified string into a sequence of bytes using UTF-8 encoding. | |
ToBytes(String, Encoding) | Encodes all the characters in the specified string into a sequence of bytes. | |
ToByteSizeString(Int32) | Returns size in bytes string representation. | |
ToByteSizeString(Int64) | Returns size in bytes string representation. | |
ToByteSizeString(Int32, IFormatProvider) | Returns size in bytes string representation. | |
ToByteSizeString(Int64, IFormatProvider) | Returns size in bytes string representation. | |
ToDateTime | Converts the string representation of a number in a specified style and culture-specific format to its Byte equivalent. A return value indicates whether the conversion succeeded. | |
ToDateTimeInvariant | Converts the string representation of a number in a specified style and culture-invariant format to its DateTime equivalent. A return value indicates whether the conversion succeeded. | |
ToDecimal | Converts the string representation of a number in a specified style and culture-specific format to its Decimal equivalent. A return value indicates whether the conversion succeeded. | |
ToDecimalInvariant | Converts the string representation of a number in a specified style and culture-invariant format to its Decimal equivalent. A return value indicates whether the conversion succeeded. | |
ToDouble | Converts the string representation of a number in a specified style and culture-specific format to its Double equivalent. A return value indicates whether the conversion succeeded. | |
ToDoubleInvariant | Converts the string representation of a number in a specified style and culture-invariant format to its Double equivalent. A return value indicates whether the conversion succeeded. | |
ToHexString(Byte[]) | Creates hex representation of byte array. | |
ToHexString(Byte[], String) | Creates hex representation of byte array. | |
ToInt16 | Converts the string representation of a number in a specified style and culture-specific format to its Int16 equivalent. A return value indicates whether the conversion succeeded. | |
ToInt16Invariant | Converts the string representation of a number in a specified style and culture-invariant format to its Int16 equivalent. A return value indicates whether the conversion succeeded. | |
ToInt32 | Converts the string representation of a number in a specified style and culture-specific format to its Int32 equivalent. A return value indicates whether the conversion succeeded. | |
ToInt32Invariant | Converts the string representation of a number in a specified style and culture-invariant format to its Int32 equivalent. A return value indicates whether the conversion succeeded. | |
ToInt64 | Converts the string representation of a number in a specified style and culture-specific format to its Int64 equivalent. A return value indicates whether the conversion succeeded. | |
ToInt64Invariant | Converts the string representation of a number in a specified style and culture-invariant format to its Int64 equivalent. A return value indicates whether the conversion succeeded. | |
ToInvariantString(T)(T) | Culture invariant version of ToString(String, IFormatProvider) | |
ToInvariantString(T)(T, String) | Culture invariant version of ToString(String, IFormatProvider) | |
ToSByte | Converts the string representation of a number in a specified style and culture-specific format to its SByte equivalent. A return value indicates whether the conversion succeeded. | |
ToSByteInvariant | Converts the string representation of a number in a specified style and culture-invariant format to its SByte equivalent. A return value indicates whether the conversion succeeded. | |
ToSingle | Converts the string representation of a number in a specified style and culture-specific format to its Single equivalent. A return value indicates whether the conversion succeeded. | |
ToSingleInvariant | Converts the string representation of a number in a specified style and culture-invariant format to its Single equivalent. A return value indicates whether the conversion succeeded. | |
ToUInt16 | Converts the string representation of a number in a specified style and culture-specific format to its UInt16 equivalent. A return value indicates whether the conversion succeeded. | |
ToUInt16Invariant | Converts the string representation of a number in a specified style and culture-invariant format to its UInt16 equivalent. A return value indicates whether the conversion succeeded. | |
ToUInt32 | Converts the string representation of a number in a specified style and culture-specific format to its UInt32 equivalent. A return value indicates whether the conversion succeeded. | |
ToUInt32Invariant | Converts the string representation of a number in a specified style and culture-invariant format to its UInt32 equivalent. A return value indicates whether the conversion succeeded. | |
ToUInt64 | Converts the string representation of a number in a specified style and culture-specific format to its UInt64 equivalent. A return value indicates whether the conversion succeeded. | |
ToUInt64Invariant | Converts the string representation of a number in a specified style and culture-invariant format to its UInt64 equivalent. A return value indicates whether the conversion succeeded. | |
TrimPrefix(String, String) | Trims str prefix if it equals to prefix. | |
TrimPrefix(String, String, IEqualityComparer(String)) | Trims str prefix if it equals to prefix. | |
TrimSuffix(String, String) | Trims str prefix if it equals to suffix. | |
TrimSuffix(String, String, IEqualityComparer(String)) | Trims str suffix if it equals to suffix. | |
Unquote(String) | Remove one set of leading and trailing double quote characters, if both are present. | |
Unquote(String, Boolean) | Remove one set of leading and trailing double quote characters, if both are present. | |
Unquote(String, Char, Boolean) | Remove one set of leading and trailing dquotationChar, if both are present. |