StrSplit

Qubes 6.0 Découpe une chaîne selon un délimiteur

Syntaxe

function StrSplit(str: String; delimiter: String): array of string
str: chaîne à découper
delimiter: délimiteur séparant les découpes

Remarques

Si aucun délimiteur n'est présent dans la chaîne, retourne un tableau de un élément contenant la chaîne.

La fonction symétrique est StrJoin.

Exemples

StrSplit('hello world', ' ') // retourne ['hello', 'world']

Classification

Internal