GenUtils


String

Namespace: Informedica.GenUtils.Lib.BCL

Helper functions for System.String

Functions and values

Function or valueDescription
apply f s
Signature: f:(String -> '?6776) -> s:String -> '?6776
Type parameters: '?6776

Apply f to string s

capitalize s
Signature: s:string -> string

Make the first character upper and the rest lower of a string

contains s1 s2
Signature: s1:string -> s2:String -> bool

Check if string s2 contains string s1

empty s
Signature: s:string -> bool

Check if string is null or only white space

equals s1 s2
Signature: s1:'?6798 -> s2:'?6798 -> bool
Type parameters: '?6798
equalsCapInsens s1 s2
Signature: s1:String -> s2:String -> bool

Check if string s1 equals s2 caps insensitive

firstStringChar
Signature: string -> string

Get the first character of a string as a string

firstToUpper
Signature: string -> string

Make the first char of a string upper case

get
Signature: String -> String

Utility to enable type inference

isLetter s
Signature: s:string -> bool

Check if a string is a letter

isNullOrWhiteSpace arg00
Signature: arg00:string -> bool

Check if string is null or only white space

length s
Signature: s:String -> int

Get the length of s

letters
Signature: string list

Get all letters as a string list

notEmpty
Signature: string -> bool

Check if string is not null or only white space

replace os ns s
Signature: os:string -> ns:string -> s:String -> string

Replace os with ns in string s.

restString s
Signature: s:String -> string

Return the rest of a string as a string

split dels s
Signature: dels:string -> s:string -> string list

Split a string s at string dels

splitAt c s
Signature: c:char -> s:String -> string []

Split string s at character c

startsWith s2 s1
Signature: s2:'?6803 -> s1:'?6804 -> string -> string -> bool
Type parameters: '?6803, '?6804

Check whether s1 starts with s2 caps sensitive

startsWithCapsInsens
Signature: string -> string -> bool

Check whether s1 starts with s2 caps insensitive

startsWithEqs eqs s2 s1
Signature: eqs:(string -> string -> bool) -> s2:string -> s1:string -> bool

Check whether s1 starts with s2 using string comparison eqs

substring start length s
Signature: start:int -> length:int -> s:string -> string

Get a substring starting at start with length length

toLower s
Signature: s:String -> string

Make string all lower chars

toString s
Signature: s:'?6789 -> string
Type parameters: '?6789

Convert object to string

toUpper s
Signature: s:string -> string

Make string all upper chars

trim s
Signature: s:String -> string

Trim string s

Fork me on GitHub