[Home] Module Microsoft.FSharp.MLLib.String


Compatibility module for ML string processing. Richer string operations are available via the member functions on strings and other functionality in System.String and System.Text.RegularExpressions types.

Values

ValueDescription
val capitalize : string -> string
Return a string with the first character converted to uppercase.
val compare : string -> string -> int
Compare the given strings using ordinal comparison
val concat : sep:string -> strings:string list -> string
Return a new string made by concatenating the given strings with separator 'sep', i.e. 'a1 + sep + ... + sep + aN'
val contains : string -> char -> bool
Return true is the given string contains the given character
val contains_between : string -> start:int -> length:int -> char -> bool
Return true is the given string contains the given character in the range specified by the given start index and the given length
val contains_from : string -> int -> char -> bool
Return true is the given string contains the given character in the range from the given start index to the end of the string.
val get : string -> int -> char
val index : string -> char -> int
Return the first index of the given character in the string. Raise IndexOutOfRangeException (Not_found) if the string does not contain the given character.
val index_from : string -> start:int -> char -> int
Return the first index of the given character in the range from the given start position to the end of the string. Raise IndexOutOfRangeException (Not_found) if the string does not contain the given character.
val iter : (char -> unit) -> string -> unit
Apply the given function to each character in the string
val length : string -> int
Return the length of the string.
val lowercase : string -> string
Return a new string with all characters converted to lowercase
val make : int -> char -> string
Return a string of the given length containing repetitions of the given character
val of_char : char -> string
Return s string of length 1 contianing the given character
val rcontains_from : string -> start:int -> char -> bool
Return true if the string contains the given character prior to the given index
val rindex : string -> char -> int
Return the index of the first occurrence of the given character from the end of the string proceeding backwards
val rindex_from : string -> start:int -> char -> int
Return the index of the first occurrence of the given character starting from the given index proceeding backwards.
val sub : string -> start:int -> length:int -> string
Return a substring of length 'length' starting index 'start'. Raise IndexOutOfRangeException (Not_found) if the start index is out of range or start+length is greatere than the length of the string
val uncapitalize : string -> string
Return a string with the first character converted to lowercase.
val uppercase : string -> string
Return a string with all characters converted to uppercase.

See Also

Microsoft.FSharp.MLLib


Documentation for assembly mllib, version 1.1.10.1, generated using F# version 1.1.10.1