package baguette_sharp

  1. Overview
  2. Docs

The String Manipulation Module of the B# STD

val two_argument_func : ('a -> 'b -> Parser.parameters) -> 'c list -> Parser.parameters

A Generic function to extract two arguments and apply a function

val three_argument_func : ('a -> 'b -> 'c -> Parser.parameters) -> 'd list -> Parser.parameters

A Generic function to extract three arguments and apply a function

Takes an integer and a string and returns a string of n times the inputed one

Take three strings and returns a string where all occurence of s2 have been replaced by s3 in s1

val explode : string -> string list

Transform a string into a list of character (but in the type String)

val transform_to_array : Parser.parameters list -> Parser.parameters

Takes a string and transform it into an array of char with explode

val extract_string_from_arg : Parser.parameters -> string

Extract the string from a parameter

val transform_from_array : Parser.parameters list -> Parser.parameters

Transform an array into a string

Takes two string and returns s1^s2

Takes an integer and a string and returns s.n

Split s1 at every s2 occurences

Creates the function with the generic method and the proto one

val replace : Parser.parameters list -> Parser.parameters

Conversion

val convert_to_string : Parser.parameters list -> Parser.parameters

Converts an element to a string

val int_from_string : Parser.parameters list -> Parser.parameters

Converts a string to an integer

val double_from_string : Parser.parameters list -> Parser.parameters

Converts a string to a float

val bool_from_string : Parser.parameters list -> Parser.parameters

Converts a string to a boolean