envelop

Appends a prefix and suffix to a given string

  1. string envelop(string side, string str)
  2. string envelop(string prefix, string str, string suffix)
    pure nothrow @safe
    string
    envelop
    (
    string prefix
    ,
    string str
    ,
    string suffix
    )

Parameters

prefix string

The text to be appended on the right of the string

str string

The string it should be appended to

suffix string

The text to be appended on the left of the string

Return Value

Type: string

The new string

Meta