Tokenize a string: Difference between revisions
Content added Content deleted
m (→{{header|C++}}) |
No edit summary |
||
Line 1,850: | Line 1,850: | ||
End</syntaxhighlight> |
End</syntaxhighlight> |
||
Output: |
Output: |
||
<pre> |
|||
Hello.How.Are.You.Today |
|||
</pre> |
|||
=={{header|FutureBasic}}== |
|||
<syntaxhighlight lang="futurebasic"> |
|||
window 1, @"Tokenize a string" |
|||
void local fn DoIt |
|||
CFStringRef string = @"Hello,How,Are,You,Today" |
|||
CFArrayRef tokens = fn StringComponentsSeparatedByString( string, @"," ) |
|||
print fn ArrayComponentsJoinedByString( tokens, @"." ) |
|||
end fn |
|||
fn DoIt |
|||
HandleEvents |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
<pre> |
||
Hello.How.Are.You.Today |
Hello.How.Are.You.Today |