Namespacedojo.string

dojo.require("dojo.string");
defined in dojo/string.js

String utilities for Dojo

FunctionsBack to top

Functiondojo.string.pad(text: String, size: Integer, ch: String?, end: Boolean?)
Pad a string to guarantee that it is at least `size` length by filling with the character `ch` at either the start or end of the string. Pads at the start, by default.
Functiondojo.string.substitute(template: String, map: Object|Array, transform: Function?, thisObject: Object?)
Performs parameterized substitutions on a string. Throws an exception if any parameter is unmatched.
trims whitespaces from both sides of the string