FSharpAux


String

Namespace: FSharpAux

Functions and values

Function or valueDescription
( @? ) s i
Signature: s:string -> i:int -> char option

CompiledName: op_AtQmark

contains substr t
Signature: substr:string -> t:string -> bool

Returns a value indicating whether the specified substring occurs within this string

fromCharArray(input)
Signature: input:char [] -> String

Converts an array of characters to a string

implode(xs)
Signature: xs:seq<char> -> string

Converts a list of characters into a string.

inferType(values)
Signature: values:seq<string> -> Type

Checks whether all values of the sequence can be inferred to a special type

isBool(s)
Signature: s:string -> bool

Checks whether the string is a boolean value

isFloat(s)
Signature: s:string -> bool

Checks whether the string is a float

isInt(s)
Signature: s:string -> bool

Checks whether the string is an int32

isInt64(s)
Signature: s:string -> bool

Checks whether the string is an int64

isNewline(c)
Signature: c:char -> bool
isNullOrEmpty(text)
Signature: text:string -> bool

Returns if the string is null or empty

joinLines(input)
Signature: input:string list -> string

Creates newline seperated string from the string list

joinWords(input)
Signature: input:string list -> string

Folds the string list by seperating entries with a single space

niceName(s)
Signature: s:string -> string

Turns a string into a nice PascalCase identifier

replace pattern replacement text
Signature: pattern:string -> replacement:string -> text:string -> string

Replaces the given "replacement" for every occurence of the pattern in the given text

rev(str)
Signature: str:string -> String

Reverts a string

satisfies predicate charOption
Signature: predicate:(char -> bool) -> charOption:char option -> char option
separatedBy delimiter items
Signature: delimiter:string -> items:seq<string> -> string
Attributes:
[<Obsolete("Function 'separatedBy' obsolete. Use 'String.concat' from 'Microsoft.FSharp.Core' instead.")>]
WARNING: This API is obsolete

Function 'separatedBy' obsolete. Use 'String.concat' from 'Microsoft.FSharp.Core' instead.

Converts a sequence of strings to a single string separated with the delimiters

skip n str
Signature: n:int -> str:string -> string

Skips the first n characters of string.

split delimiter text
Signature: delimiter:char -> text:string -> string []

Splits the given string at the given delimiter

splitBy isDelimiter str
Signature: isDelimiter:(char -> bool) -> str:string -> seq<string>

Returns a sequence of strings split by the predicate

startsWith prefix text
Signature: prefix:string -> text:string -> bool

Checks whether the given text starts with the given prefix

subString startIndex length text
Signature: startIndex:int -> length:int -> text:string -> string

Retrieves a substring. The substring starts at a specified character position and has a specified length.

take n str
Signature: n:int -> str:string -> string

Takes the first n characters of string.

toCharArray(str)
Signature: str:string -> char []

Converts an string to a array of characters

toLines(input)
Signature: input:string -> seq<string>

Splits a string based on newlines

toWords(input)
Signature: input:string -> seq<string>

Splits a string based on whitespace (spaces, tabs, and newlines)

tryParseBoolDefault defaultValue str
Signature: defaultValue:bool -> str:string -> bool

Try to parse bool else return default value

tryParseCharDefault defaultValue str
Signature: defaultValue:char -> str:string -> char

Try to parse char else return default value

tryParseFloatDefault defaultValue str
Signature: defaultValue:float -> str:string -> float

Try to parse float else return default value

tryParseGuidDefault defaultValue str
Signature: defaultValue:Guid -> str:string -> Guid

Try to parse GUID else return default value

tryParseInt64Default defaultValue str
Signature: defaultValue:int64 -> str:string -> int64

Try to parse int64 else return default value

tryParseIntDefault defaultValue str
Signature: defaultValue:int -> str:string -> int

Try to parse int else return default value

Active patterns

Active patternDescription
( |EOF|_| )(_arg1)
Signature: _arg1:'?8132 option -> unit option
Type parameters: '?8132

CompiledName: |EOF|_|

( |LetterDigit|_| )
Signature: char option -> char option

CompiledName: |LetterDigit|_|

( |Lower|_| )
Signature: char option -> char option

CompiledName: |Lower|_|

( |Upper|_| )
Signature: char option -> char option

CompiledName: |Upper|_|

Fork me on GitHub