This HTML5 document contains 5 embedded RDF statements represented using HTML+Microdata notation.

The embedded RDF content will be recognized by any processor of HTML5 Microdata.

PrefixNamespace IRI
n6http://dbkwik.webdatacommons.org/ontology/
dctermshttp://purl.org/dc/terms/
rdfshttp://www.w3.org/2000/01/rdf-schema#
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n5http://dbkwik.webdatacommons.org/resource/iEFe6pY0OS3_LmjnVNNwsw==
n2http://dbkwik.webdatacommons.org/resource/kxeHDRfLV8aAzXDkRv3qaw==
xsdhhttp://www.w3.org/2001/XMLSchema#
n7http://dbkwik.webdatacommons.org/resource/OVIRyO8a6KqJuVC-lXn0RQ==
Subject Item
n2:
rdfs:label
Pad the Left or Right of a String
rdfs:comment
This pair of functions allow you to pad a string (or number) to a given length with a specified character. This might be useful in situations where you need to pad a number with leading zeroes for example. Usage:
dcterms:subject
n5: n7:
n6:abstract
This pair of functions allow you to pad a string (or number) to a given length with a specified character. This might be useful in situations where you need to pad a number with leading zeroes for example. Usage: padLeft(24, 5, '0') // Returns '00024' padRight('Foo', 10, 'b') // Returns 'Foobbbbbbb' function padLeft(val, len, repChar) { var strReturn = val.toString(); var x; for (x = 1; x <= num - val.toString().length; x++) { strReturn = repChar.toString() + strReturn; } return strReturn; } function padRight(val, len, repChar) { var strReturn = val.toString(); var x; for (x = 1; x <= len - val.toString().length; x++) { strReturn += repChar.toString(); } return strReturn; }