source を delim の文字で区切られた "単語" に分割します。すべての単語のリストを返します。delim が空の文字列の場合は、1 文字の文字列として source 内のすべての文字のリストを返します。区切り文字に文字が含まれる場合は、大文字小文字を区別して比較されます。
splitString ( source As String, _
delim As String ) As List
| 引数 | [タイプ] | 説明 |
|---|---|---|
| source | 文字列 | 分割する文字列です。 |
| delim | 文字列 | 区切り記号として使用する 1 つまたは複数の文字です。 |
Intent >splitString("These are words", " ")
--> {"These", "are", "words"}
Intent >splitString("Word", "")
--> {"W", "o", "r", "d"}
Intent >splitString("MiSsIsSiPpI", "s")
--> {"MiS", "I", "SiPpI"}