FAKE - F# Make - A DSL for build tasks and more FAKE
6.1.3

Lookig for older versions of the documentation, pre FAKE v6? See 

v5.fake.build

StringBuilder Module

FAKE's StringBuilder module.

Types

Type Description

String

StringBuilder

Functions and values

Function or value Description

StringBuilder.append text builder

Full Usage: StringBuilder.append text builder

Parameters:
Returns: StringBuilder
Modifiers: inline

Appends a text to a StringBuilder.

text : string
builder : StringBuilder
Returns: StringBuilder

StringBuilder.appendFileNamesIfNotNull fileNames builder

Full Usage: StringBuilder.appendFileNamesIfNotNull fileNames builder

Parameters:
Returns: StringBuilder
Modifiers: inline

Appends all notnull fileNames.

fileNames : seq<string>
builder : StringBuilder
Returns: StringBuilder

StringBuilder.appendIfFalse p

Full Usage: StringBuilder.appendIfFalse p

Parameters:
    p : bool

Returns: string -> StringBuilder -> StringBuilder
Modifiers: inline

Appends a text if the predicate is false.

p : bool
Returns: string -> StringBuilder -> StringBuilder

StringBuilder.appendIfNotNull value s

Full Usage: StringBuilder.appendIfNotNull value s

Parameters:
Returns: StringBuilder -> StringBuilder
Modifiers: inline

Appends a text if the value is not null.

value : Object
s : string
Returns: StringBuilder -> StringBuilder

StringBuilder.appendIfNotNullOrEmpty value s

Full Usage: StringBuilder.appendIfNotNullOrEmpty value s

Parameters:
    value : string
    s : string

Returns: StringBuilder -> StringBuilder
Modifiers: inline

Appends a text if the value is not null or empty.

value : string
s : string
Returns: StringBuilder -> StringBuilder

StringBuilder.appendIfSome o f builder

Full Usage: StringBuilder.appendIfSome o f builder

Parameters:
Returns: StringBuilder
Modifiers: inline

Appends string of function value if option has some value

o : 'a option
f : 'a -> string
builder : StringBuilder
Returns: StringBuilder

StringBuilder.appendIfTrue p s builder

Full Usage: StringBuilder.appendIfTrue p s builder

Parameters:
Returns: StringBuilder
Modifiers: inline

Appends a text if the predicate is true.

p : bool
s : string
builder : StringBuilder
Returns: StringBuilder

StringBuilder.appendIfTrueWithoutQuotes p s builder

Full Usage: StringBuilder.appendIfTrueWithoutQuotes p s builder

Parameters:
Returns: StringBuilder
Modifiers: inline
p : bool
s : string
builder : StringBuilder
Returns: StringBuilder

StringBuilder.appendQuotedIfNotNull value s builder

Full Usage: StringBuilder.appendQuotedIfNotNull value s builder

Parameters:
Returns: StringBuilder
Modifiers: inline

Appends a quoted text if the value is not null.

value : Object
s : string
builder : StringBuilder
Returns: StringBuilder

StringBuilder.appendStringIfValueIsNotNull value

Full Usage: StringBuilder.appendStringIfValueIsNotNull value

Parameters:
    value : 'a

Returns: string -> StringBuilder -> StringBuilder
Modifiers: inline

Appends a text if the value is not null.

value : 'a
Returns: string -> StringBuilder -> StringBuilder

StringBuilder.appendStringIfValueIsNotNullOrEmpty value

Full Usage: StringBuilder.appendStringIfValueIsNotNullOrEmpty value

Parameters:
    value : string

Returns: string -> StringBuilder -> StringBuilder
Modifiers: inline

Appends a text if the value is not null or empty.

value : string
Returns: string -> StringBuilder -> StringBuilder

StringBuilder.appendWithoutQuotes text builder

Full Usage: StringBuilder.appendWithoutQuotes text builder

Parameters:
Returns: StringBuilder
Modifiers: inline

Appends a text to a StringBuilder without surrounding quotes.

text : string
builder : StringBuilder
Returns: StringBuilder

StringBuilder.appendWithoutQuotesIfNotNull value s

Full Usage: StringBuilder.appendWithoutQuotesIfNotNull value s

Parameters:
Returns: StringBuilder -> StringBuilder
Modifiers: inline

Appends a text without quoting if the value is not null.

value : Object
s : string
Returns: StringBuilder -> StringBuilder

StringBuilder.forEach items action text builder

Full Usage: StringBuilder.forEach items action text builder

Parameters:
Returns: StringBuilder
Modifiers: inline

Applies action on builder for each element of list.

items : 'a list
action : 'a -> 'b -> StringBuilder -> 'c
text : 'b
builder : StringBuilder
Returns: StringBuilder

StringBuilder.toText builder

Full Usage: StringBuilder.toText builder

Parameters:
Returns: string
Modifiers: inline

Returns the text from the StringBuilder

builder : StringBuilder
Returns: string