mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			650 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			650 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{
 | 
						|
  "name": "ltrim",
 | 
						|
  "type": "function",
 | 
						|
  "groups": ["String"],
 | 
						|
  "description": "Removes the longest string containing only the specified characters (a space by default) from the start of string.",
 | 
						|
  "arguments": [{
 | 
						|
    "arg": "string",
 | 
						|
    "description": "string to trim"
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "arg": "characters",
 | 
						|
    "description": "characters to trim",
 | 
						|
    "optional": true,
 | 
						|
    "default": "' '"
 | 
						|
  }],
 | 
						|
  "examples": [{
 | 
						|
    "expression": "ltrim('   hello world  ')",
 | 
						|
    "returns": "'hello world  '"
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "expression": "ltrim('zzzytest', 'xyz')",
 | 
						|
    "returns": "'test'"
 | 
						|
  }],
 | 
						|
  "tags": ["removes", "leading", "whitespace", "spaces", "tabs"]
 | 
						|
}
 |