Jump to Content
nativescript-stringformatDiscussions
API ReferenceDiscussions
v2.3.3

Discussionsnativescript-stringformat
API Reference
v2.3.3API ReferenceDiscussions

Documentation

  • Getting Started
  • Format providers

Functions

  • addFormatProvider
  • compare
  • concat
  • format
  • formatArray
  • isEmpty
  • isEmptyOrWhitespace
  • isNullOrEmpty
  • isNullOrUndefined
  • isNullOrWhitespace
  • isWhitespace
  • join
  • similarity

StringBuilder

  • append
  • appendFormat
  • appendFormatArray
  • appendLine
  • clear
  • equals
  • exec
  • insert
  • insertFormat
  • insertFormatArray
  • length
  • newLine
  • prepend
  • prependFormat
  • prependFormatArray
  • prependLine
  • remove
  • replace
  • test
  • toCharArray
  • toString
Powered by 

appendFormat

Appends a formatted string.

import {StringBuilder} from "nativescript-stringformat";

// "2 + 1 = 3"
var str = new StringBuilder()
    .appendFormat("{1} + {0} = {2}",
                  1, 2, 3);