Docs Menu
- Introduction to Syncloop
- Quick Start Syncloop
- 
                            API Developer Guide
                            - 
                                    middleware
                                    - 
                                            pub
                                            - adapter
- authorization
- client
- collection
- date
- docList
- file
- graphQL
- io
- json
- jwt
- math
- platform
- security
- server
- service
- specs
- sql
- string
                                                    - bytesToHexString
- bytesToString
- compare
- compareStrings
- concat
- decodeBase64
- decodeHTML
- encodeBase64
- encodeHTML
- equals
- equalsIgnoreCase
- escapeSQL
- fromXML
- htmlDecode
- htmlEncode
- indexOf
- isAlphanumeric
- isBlank
- isDate
- isEmpty
- isNumber
- length
- lookupDict
- maskString
- messageDigest
- messageFormat
- NullOrWhiteSpc
- objectToString
- padLeft
- replace
- rightPad
- stringConcat
- stringIndexOf
- stringToBytes
- subString
- TextArrayToTextString
- TextListCollector
- tokenize
- toLower
- toString
- toUpper
- trim
- urlDecode
 
- tenant
- util
- xml
 
 
- 
                                            pub
                                            
 
- 
                                    middleware
                                    
- User Guide
- FAQs
- Java Docs
- Blogs
API Developer Guide / middleware / pub / string / padLeft
                                Service: padLeft
This service will add padding characters to the left of the string of specified length.
Input Parameter:
| Name | Type | Description | 
| text: | String | Input String value | 
| paddingCharacter: | String | Character to be used for padding | 
| length: | Integer | Length of the string with padding characters | 
Output Parameter:
| Name | Type | Description | 
| result: | String | Resultant string with padded characters to the left having size specified in the length in input. |