PageSourceSearch

https://www.gongwer.com/programming/js/rightleft.js

js gongwer.com collected 2026-10-04 00:25:23 UTC 391 bytes, 18 lines download raw bytes

1function Left(str, n){
2	if (n <= 0)
3	    return "";
4	else if (n > String(str).length)
5	    return str;
6	else
7	    return String(str).substring(0,n);
8}
9function Right(str, n){
10    if (n <= 0)
11       return "";
12    else if (n > String(str).length)
13       return str;
14    else {
15       var iLen = String(str).length;
16       return String(str).substring(iLen, iLen - n);
17    }
18}

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.