FSharpx.Extras


Strings

Namespace: FSharpx.Text

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

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

pluralize noun
Signature: noun:string -> string

Returns the pluralized version of a noun

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

satisfies predicate charOption
Signature: predicate:(char -> bool) -> charOption:char option -> char option
separatedBy delimiter items
Signature: delimiter:string -> items:seq<string> -> string

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

singularize noun
Signature: noun:string -> string

Returns the singularized version of a noun

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

toCharArray str
Signature: str:string -> char []
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)

Active patterns

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

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