Go to the source code of this file.
Functions | |
function | sprintf (format) |
Variables | |
CPCaseInsensitiveSearch = 1 | |
CPLiteralSearch = 2 | |
CPBackwardsSearch = 4 | |
CPAnchoredSearch = 8 | |
CPNumericSearch = 64 | |
var | CPStringHashes = new objj_dictionary() |
String prototype | isa = CPString |
var | sprintfFormatRegex = new RegExp("([^%]+|%[\\+\\-\\ \\#0]*[0-9\\*]*(.[0-9\\*]+)?[hlL]?[cbBdieEfgGosuxXpn%@])", "g") |
var | sprintfTagRegex = new RegExp("(%)([\\+\\-\\ \\#0]*)([0-9\\*]*)((.[0-9\\*]+)?)([hlL]?)([cbBdieEfgGosuxXpn%@])") |
function sprintf | ( | format | ) |
Creates a new string using C printf-style formatting. First argument should be a constant format string, like ' "float val = %f" ', remaining arguments should be the variables to print the values of, comma-separated.
format | the format to be used, printf-style |
Definition at line 656 of file CPString.j.
CPAnchoredSearch = 8 |
Definition at line 50 of file CPString.j.
Definition at line 45 of file CPString.j.
Definition at line 33 of file CPString.j.
CPLiteralSearch = 2 |
Definition at line 39 of file CPString.j.
CPNumericSearch = 64 |
Definition at line 56 of file CPString.j.
var CPStringHashes = new objj_dictionary() |
Definition at line 58 of file CPString.j.
Definition at line 643 of file CPString.j.
var sprintfFormatRegex = new RegExp("([^%]+|%[\\+\\-\\ \\#0]*[0-9\\*]*(.[0-9\\*]+)?[hlL]?[cbBdieEfgGosuxXpn%@])", "g") |
Definition at line 648 of file CPString.j.
var sprintfTagRegex = new RegExp("(%)([\\+\\-\\ \\#0]*)([0-9\\*]*)((.[0-9\\*]+)?)([hlL]?)([cbBdieEfgGosuxXpn%@])") |
Definition at line 649 of file CPString.j.