<?xml version="1.0" encoding="ISO-8859-1"?>
<x_symbol id='xPad'>
<sources>
<src><file>xpad.js</file><note><![CDATA[Default.]]></note></src>
</sources>
<copyright>Copyright 2001-2007 Michael Foster (Cross-Browser.com)</copyright>
<license>Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL</license>
<groups>
<grp>String</grp>
</groups>
<type>Function</type>
<description><![CDATA[Pad a string, on the left or right, to a specific length using a specific character.]]></description>
<syntax>xPad(str, finalLen, padChar, bLeft)</syntax>
<parameters>
<par>
<name>str</name>
<note><![CDATA[]]></note>
</par>
<par>
<name>finalLen</name>
<note><![CDATA[]]></note>
</par>
<par>
<name>padChar</name>
<note><![CDATA[]]></note>
</par>
<par>
<name>bLeft</name>
<note><![CDATA[]]></note>
</par>
</parameters>
<return>str, after padding</return>
<demos>
<demo>
<url>http://cross-browser.com/toys/</url>
<note><![CDATA[Index of all X demos.]]></note>
</demo>
</demos>
<revisions>
<rev>
<num>2</num>
<date>17Mar05</date>
<author>mf</author>
<note><![CDATA[Reduced 73 bytes]]></note>
</rev>
<rev>
<num>1</num>
<date>11Mar05</date>
<author>mf</author>
<note><![CDATA[put in it's own file for use with XC]]></note>
</rev>
</revisions>
</x_symbol>