Jump to content

Tokenize a string with escaping: Difference between revisions

m
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
imported>Arakov
Line 1,139:
=={{header|Elena}}==
{{trans|C#}}
ELENA 46.x :
<syntaxhighlight lang="elena">import extensions;
import extensions'routines;
Line 1,154:
bool escaping := false;
self.forEach::(ch)
{
if (escaping)
{
buffer.write:(ch);
escaping := false
}
Line 1,172:
else
{
buffer.write:(ch)
}
};
Line 1,184:
public program()
{
testcase.tokenize("|", "^").forEach:(printingLn)
}</syntaxhighlight>
{{out}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.