envelop

Appends text to both sides of a given string

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

Parameters

side string

The text to be appended on both sides

str string

The string it should be appended to

Return Value

Type: string

The new string

Meta