PageSourceSearch

http://www.archiefleeuwardercourant.nl/resources/scripts/string-utils.js

js archiefleeuwardercourant.nl collected 2026-10-02 12:10:49 UTC 345 bytes, 16 lines download raw bytes

1function trim( sInString )
2{
3  sInString = sInString.replace( /^\s+/g, "" ); // strip leading
4  return sInString.replace( /\s+$/g, "" );      // strip trailing
5}
6
7function leftPad( val, size, pad )
8{
9  var result = new String(val);
10  if( pad == null )
11    pad = " ";
12  while( result.length < size )
13    result = pad + result;
14
15  return result;
16}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.