Elgg  Version 2.3
Variables
sprintf.js File Reference

Go to the source code of this file.

Variables

var sprintf
 sprintf() for JavaScript 0.7-beta1 http://www.diveintojavascript.com/projects/javascript-sprintf More...
 
return parse_tree
 
return str_format
 
var vsprintf
 

Variable Documentation

return parse_tree

Definition at line 174 of file sprintf.js.

var sprintf

sprintf() for JavaScript 0.7-beta1 http://www.diveintojavascript.com/projects/javascript-sprintf

Copyright (c) Alexandru Marasteanu <alexaholic [at) gmail (dot] com> All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of sprintf() for JavaScript nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Alexandru Marasteanu BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Changelog: 2010.09.06 - 0.7-beta1

  • features: vsprintf, support for named placeholders
  • enhancements: format cache, reduced global namespace pollution

2010.05.22 - 0.6:

  • reverted to 0.4 and fixed the bug regarding the sign of the number 0 Note: Thanks to Raphael Pigulla <raph (at] n3rd [dot) org> (http://www.n3rd.org/) who warned me about a bug in 0.5, I discovered that the last update was a regress. I appologize for that.

2010.05.09 - 0.5:

  • bug fix: 0 is now preceeded with a + sign
  • bug fix: the sign was not at the right position on padded results (Kamal Abdali)
  • switched from GPL to BSD license

2007.10.21 - 0.4:

  • unit test and patch (David Baird)

2007.09.17 - 0.3:

  • bug fix: no longer throws exception on empty paramenters (Hans Pufal)

2007.09.11 - 0.2:

  • feature: added argument swapping

2007.04.03 - 0.1:

  • initial release

Definition at line 61 of file sprintf.js.

return str_format

Definition at line 175 of file sprintf.js.

var vsprintf
Initial value:
= function(fmt, argv) {
argv.unshift(fmt);
return sprintf.apply(null, argv);
}
var sprintf
sprintf() for JavaScript 0.7-beta1 http://www.diveintojavascript.com/projects/javascript-sprintf ...
Definition: sprintf.js:61

Definition at line 180 of file sprintf.js.