mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			618 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			618 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{
 | 
						|
  "name": "lpad",
 | 
						|
  "type": "function",
 | 
						|
  "groups": ["String"],
 | 
						|
  "description": "Returns a string padded on the left to the specified width, using a fill character. If the target width is smaller than the string's length, the string is truncated.",
 | 
						|
  "arguments": [ {"arg":"string","description":"string to pad"},
 | 
						|
  {"arg":"width","description":"length of new string"},
 | 
						|
  {"arg":"fill","description":"character to pad the remaining space with"}
 | 
						|
  ],
 | 
						|
  "examples": [ { "expression":"lpad('Hello', 10, 'x')", "returns":"'xxxxxHello'"},
 | 
						|
                { "expression":"lpad('Hello', 3, 'x')", "returns":"'Hel'"}
 | 
						|
  ]
 | 
						|
}
 |