QGIS/resources/function_help/json/string_to_array

13 lines
709 B
Plaintext
Raw Normal View History

{
"name": "string_to_array",
"type": "function",
"description": "Splits string into an array using supplied delimiter and optional string for empty values.",
"arguments": [
{"arg":"string", "description":"the input string"},
{"arg":"delimiter","optional":true,"default":"','","description":"the string delimiter used to split the input string"},
{"arg":"empty_value","optional":true,"default":"''","description":"the optional string to use as replacement for empty (zero length) matches"}],
2018-08-24 14:04:27 +02:00
"examples": [ { "expression":"string_to_array('1,2,3',',')", "returns":"[ '1', '2', '3' ]"},
{ "expression":"string_to_array('1,,3',',','0')", "returns":"[ '1', '0', '3' ]"}
]
}