Header menu logo FSharp.Core.Fluent

StringExtensions Module

Fluent extension operations on strings.

Type extensions

Type extension Description

this.collect mapping

Full Usage: this.collect mapping

Parameters:
    mapping : char -> string - The function to produce a string from each character of the input string.

Returns: string The concatenated string.
Modifiers: inline

Builds a new string whose characters are the results of applying the function mapping to each of the characters of the input string and concatenating the resulting strings.

Extended Type: String

mapping : char -> string

The function to produce a string from each character of the input string.

Returns: string

The concatenated string.

this.exists predicate

Full Usage: this.exists predicate

Parameters:
    predicate : char -> bool - The function to test each character of the string.

Returns: bool True if any character returns true for the predicate and false otherwise.
Modifiers: inline

Tests if any character of the string satisfies the given predicate.

Extended Type: String

predicate : char -> bool

The function to test each character of the string.

Returns: bool

True if any character returns true for the predicate and false otherwise.

this.forall predicate

Full Usage: this.forall predicate

Parameters:
    predicate : char -> bool - The function to test each character of the string.

Returns: bool True if all characters return true for the predicate and false otherwise.
Modifiers: inline

Tests if all characters in the string satisfy the given predicate.

Extended Type: String

predicate : char -> bool

The function to test each character of the string.

Returns: bool

True if all characters return true for the predicate and false otherwise.

this.iter action

Full Usage: this.iter action

Parameters:
    action : char -> unit - The function to be applied to each character of the string.

Modifiers: inline

Applies the function action to each character in the string.

Extended Type: String

action : char -> unit

The function to be applied to each character of the string.

this.iteri action

Full Usage: this.iteri action

Parameters:
    action : int -> char -> unit - The function to apply to each character and index of the string.

Modifiers: inline

Applies the function action to the index of each character in the string and the character itself.

Extended Type: String

action : int -> char -> unit

The function to apply to each character and index of the string.

this.length ()

Full Usage: this.length ()

Parameters:
    () : unit

Returns: int The number of characters in the string.
Modifiers: inline

Returns the length of the string.

Extended Type: String

() : unit
Returns: int

The number of characters in the string.

this.length

Full Usage: this.length

Returns: int The number of characters in the string.
Modifiers: inline

Returns the length of the string.

Extended Type: String

Returns: int

The number of characters in the string.

this.map mapping

Full Usage: this.map mapping

Parameters:
    mapping : char -> char - The function to apply to the characters of the string.

Returns: string The resulting string.
Modifiers: inline

Builds a new string whose characters are the results of applying the function mapping to each of the characters of the input string.

Extended Type: String

mapping : char -> char

The function to apply to the characters of the string.

Returns: string

The resulting string.

this.mapi mapping

Full Usage: this.mapi mapping

Parameters:
    mapping : int -> char -> char - The function to apply to each character and index of the string.

Returns: string The resulting string.
Modifiers: inline

Builds a new string whose characters are the results of applying the function mapping to each character and index of the input string.

Extended Type: String

mapping : int -> char -> char

The function to apply to each character and index of the string.

Returns: string

The resulting string.

this.replicate count

Full Usage: this.replicate count

Parameters:
    count : int - The number of copies of the input string will be copied.

Returns: string The concatenated string.
Modifiers: inline

Returns a string by concatenating count instances of str.

Extended Type: String

count : int

The number of copies of the input string will be copied.

Returns: string

The concatenated string.

ArgumentException Thrown when count is negative.

Type something to start searching.