Navigation :
Envision Language
Lokad Platform
Envision Gallery
Envision Reference - Glossary - Tile syntax - List of icons - StyleCode sub-language
-
_
-
A-B-C
-
D-E-F
-
G-H-I
-
J-K-L
-
M-N-O
-
P-Q-R -- padLeft -- params -- parseDate -- parseNumber -- parseTime -- partition -- partitioned -- percent -- percentile -- piechart -- plot -- poisson -- popCount -- pricebrk.f -- pricebrk.m -- printSet -- printTime -- priopack -- product -- quantile -- random.binomial -- random.integer -- random.logLogistic -- random.negativeBinomial -- random.normal -- random.poisson -- random.ranvar -- random.shuffle -- random.uniform -- rank -- rankd -- ranvar -- ranvar.buckets -- ranvar.periodicr -- ranvar.segment -- ranvar.uniform -- ratio -- read -- regularizationTerm -- replace -- return -- rgb -- round -- roundNext
-
S-T-U
-
V-W-X
-
Y-Z
Envision Specifications
Library
Legacy padLeft padLeft(source: text, pad: text, size: number) 🡒 text, const pure function Prepends pad
- in its entirety - to source
until the resulting string’s length is equal to or greater than the target size
. If size
is lower than source
’s length, padding is not applied.
show summary "" a1c3 with
padLeft("1234","0", 7) // returns "0001234"
padLeft("1234","0_", 7) // returns "0_0_1234"
padLeft("1234","0__", 7) // returns "0__1234"
padLeft("1234","0__", 3) // returns "1234"
The following restrictions apply, otherwise the function fails:
pad
must be non-empty.size
must be an integer in the segment [1, 256].