TextExtensions
Static members
Static member | Description |
AppendIf(builder, condition, value)
Signature: (builder:StringBuilder * condition:bool * value:string) -> StringBuilder
|
|
AppendLineFormat(...)
Signature: (builder:StringBuilder * format:string * arguments:obj []) -> StringBuilder
|
|
AsBoolean(value)
Signature: value:string -> bool
|
|
AsException(message)
Signature: message:string -> unit
|
|
AsJoinedString(enumerable, separator)
Signature: (enumerable:IEnumerable<'T> * separator:string) -> string
Type parameters: 'T |
|
AsStream(input)
Signature: input:string -> Stream
|
|
AsString(chars)
Signature: chars:IEnumerable<char> -> string
|
|
AsTextReader(input)
Signature: input:string -> TextReader
|
|
CompressString(text)
Signature: text:string -> string
|
|
ContainsNoSpaces(s)
Signature: s:string -> bool
|
|
Convert(input)
Signature: input:string -> 'T
Type parameters: 'T |
|
CSVSplit(s)
Signature: s:string -> IEnumerable<string>
|
|
DecompressString(compressedText)
Signature: compressedText:string -> string
|
|
ExcelColumnIndex(columnName)
Signature: columnName:string -> int
|
|
Format(format, args)
Signature: (format:string * args:obj []) -> string
|
|
FormatWithMask(input, mask)
Signature: (input:string * mask:string) -> string
|
Formats the string according to the specified mask |
GetEnumDescription(value)
Signature: value:string -> string
Type parameters: 'T |
|
GetMatchValue(...)
Signature: (rawString:string * pattern:string * uniqueOnly:bool) -> IEnumerable<string>
|
|
IsBoolean(value)
Signature: value:string -> bool
|
|
IsGuid(s)
Signature: s:string -> bool
|
|
IsNullOrEmpty(s)
Signature: s:string -> bool
|
|
IsNullOrWhiteSpace(s)
Signature: s:string -> bool
|
|
IsNumeric(value)
Signature: value:string -> bool
|
|
IsStrongPassword(s)
Signature: s:string -> bool
|
|
IsUnicode(value)
Signature: value:string -> bool
|
|
IsValidEmailAddress(s)
Signature: s:string -> bool
|
|
IsValidIPAddress(s)
Signature: s:string -> bool
|
|
IsValidUrl(text)
Signature: text:string -> bool
|
|
Left(value, length)
Signature: (value:string * length:int) -> string
|
Returns characters from left of specified length |
LeftOf(s, c)
Signature: (s:string * c:char) -> string
|
Returns the first part of the strings, up until the character c. If c is not found in the string the whole string is returned. |
NullToEmpty(input)
Signature: input:string -> string
|
|
Parse(sValue)
Signature: sValue:string -> 'T
Type parameters: 'T |
|
Repeat(input, count)
Signature: (input:char * count:int) -> string
|
Repeat the given char the specified number of times. |
Repeat(input, count)
Signature: (input:string * count:int) -> string
|
|
Reverse(s)
Signature: s:string -> string
|
|
Right(value, length)
Signature: (value:string * length:int) -> string
|
Returns characters from right of specified length |
RightOf(s, c)
Signature: (s:string * c:char) -> string
|
Return the remainder of a string s after a separator c. |
StripHtml(input)
Signature: input:string -> string
|
|
TakeFrom(s, searchFor)
Signature: (s:string * searchFor:string) -> string
|
Returns the contents of a string starting with the location of the searchFor |
ToBytes(content)
Signature: content:string -> byte []
|
|
ToCsv(...)
Signature: (instance:IEnumerable<'T> * includeColumnHeader:bool * properties:string []) -> string
Type parameters: 'T |
|
ToCsv(instance, includeColumnHeader)
Signature: (instance:IEnumerable<'T> * includeColumnHeader:bool) -> string
Type parameters: 'T |
|
ToEnum(value)
Signature: value:string -> 'T
Type parameters: 'T |
|
ToNameValueCollection(...)
Signature: (str:string * OuterSeparator:char * NameValueSeparator:char) -> NameValueCollection
|
Splits a string into a NameValueCollection, where each "namevalue" is separated by the "OuterSeparator". The parameter "NameValueSeparator" sets the split between Name and Value. Example: String str = "param1=value1;param2=value2"; NameValueCollection nvOut = str.ToNameValueCollection(';', '='); The result is a NameValueCollection where: key[0] is "param1" and value[0] is "value1" key[1] is "param2" and value[1] is "value2" |
ToPlural(singular)
Signature: singular:string -> string
|
|
ToSentence(variableName)
Signature: variableName:string -> string
|
|
toSlug(text)
Signature: text:string -> string
|
|
ToTitleCase(text)
Signature: text:string -> string
|
|
Truncate(text, maxLength)
Signature: (text:string * maxLength:int) -> string
|
Truncates the string to a specified length and replace the truncated to a ... |
WordCount(input)
Signature: input:string -> int
|
Count all words in a given string |