Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Functional programming operators for string processing. Further string operations are available via the member functions on strings and other functionality in String and Regex types.
Namespace/Module Path: Microsoft.FSharp.Core
Assembly: FSharp.Core (in FSharp.Core.dll)
module String
Values
Value |
Description |
---|---|
collect : (char -> string) -> string -> string |
Creates a new string whose characters are the results of applying a specified function to each of the characters of the input string and concatenating the resulting strings. |
concat : string -> seq<string> -> string |
Returns a new string made by concatenating the given strings with a separator. |
exists : (char -> bool) -> string -> bool |
Tests if any character of the string satisfies the given predicate. |
forall : (char -> bool) -> string -> bool |
Tests if all characters in the string satisfy the given predicate. |
init : int -> (int -> string) -> string |
Creates a new string whose characters are the results of applying a specified function to each index and concatenating the resulting strings. |
iter : (char -> unit) -> string -> unit |
Applies a specified function to each character in the string. |
iteri : (int -> char -> unit) -> string -> unit |
Applies a specified function to the index of each character in the string and the character itself. |
length : string -> int |
Returns the length of the string. |
map : (char -> char) -> string -> string |
Creates a new string whose characters are the results of applying a specified function to each of the characters of the input string. |
mapi : (int -> char -> char) -> string -> string |
Creates a new string whose characters are the results of applying a specified function to each character and index of the input string. |
replicate : int -> string -> string |
Returns a string by concatenating a specified number of instances of a string. |
Platforms
Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2
Version Information
F# Runtime
Supported in: 2.0, 4.0
Silverlight
Supported in: 3