[Home] Module Microsoft.FSharp.Compatibility.OCaml.Buffer


Imperative buffers for building strings, a shallow interface to [[System.Text.StringBuilder]]

Type Definitions

TypeDescription
type t Note: an abbreviation for StringBuilder

Values

ValueDescription
val add_buffer : t -> t -> unit
Add second buffer to the first.
val add_channel : t -> in_channel -> int -> unit
Read the given number of bytes as ASCII and add the resulting string to the buffer. Warning: this assumes an ASCII encoding for the I/O channel, i.e. it uses Pervasives.really_input and then use ascii_to_string to produce the string to add.
val add_char : t -> char -> unit
Add character to the buffer.
val add_string : t -> string -> unit
Add string to the buffer.
val add_substring : t -> string -> int -> int -> unit
Given a string, start position and length add that substring to the buffer.
val clear : t -> unit
Clears the buffer.
val contents : t -> string
Gets the string built from the buffer.
val create : int -> t
Create a buffer with suggested size.
val length : t -> int
Number of characters in the buffer.
val output_buffer : out_channel -> t -> unit
val reset : t -> unit
Clears the buffer (same as Buffer.clear).

See Also

Microsoft.FSharp.Compatibility.OCaml


Documentation for assembly FSharp.Compatibility, version 1.9.4.19, generated using F# version 1.9.4.19