stringformat.js
No description.

File Location

/goog/string/stringformat.js


Public Protected Private

Global Functions

goog.string.format(formatStringvar_args) string
Performs sprintf-like conversion, ie. puts the values in a template. DO NOT use it instead of built-in conversions in simple cases such as 'Cost: %.2f' as it would introduce unneccessary latency oposed to 'Cost: ' + cost.toFixed(2).
Arguments:
formatString : string
Template string containing % specifiers.
var_args : ...string | number
Values formatString is to be filled with.
Returns: string  Formatted string.
code »
goog.string.format&replacerDemuxer(matchflagswidthdotpprecisiontypeoffsetwholeString) string
Chooses which conversion function to call based on type conversion specifier.
Arguments:
match : string
Contains the re matched string.
flags : string
Formatting flags.
width : string
Replacement string minimum width.
dotp : string
Matched precision including a dot.
precision : string
Specifies floating point precision.
type : string
Type conversion specifier.
offset : string
Matching location in the original string.
wholeString : string
Has the actualString being searched.
Returns: string  Formatted parameter.
code »

Global Variables

function%54 :
No description.
Code »
function%55 :
No description.
Code »
function%56 :
No description.
Code »

Directory string

File Reference