Foundation/CPString.j File Reference

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 Documentation

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.

Parameters:
format the format to be used, printf-style
Returns:
the initialized CPString

Definition at line 656 of file CPString.j.


Variable Documentation

Definition at line 50 of file CPString.j.

Definition at line 45 of file CPString.j.

Definition at line 33 of file CPString.j.

Definition at line 39 of file CPString.j.

Definition at line 56 of file CPString.j.

var CPStringHashes = new objj_dictionary()

Definition at line 58 of file CPString.j.

String prototype isa = CPString

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.


Generated on Thu Dec 11 01:55:48 2008 for Cappuccino by  doxygen 1.5.7.1