Substring/Top and tail: Difference between revisions
Content added Content deleted
No edit summary |
Jazzedpineda (talk | contribs) (Add Microsoft Small Basic, EasyLang, Golfscript) |
||
Line 440: | Line 440: | ||
KNIGHT |
KNIGHT |
||
NIGHT</pre> |
NIGHT</pre> |
||
==={{header|Microsoft Small Basic}}=== |
|||
When I tried using Unicode characters, it printed question marks, though ASCII works fine. |
|||
<syntaxhighlight lang="vbnet"> |
|||
string = "Small Basic" |
|||
TextWindow.WriteLine(Text.GetSubTextToEnd(string, 2)) 'Without the first character |
|||
TextWindow.WriteLine(Text.GetSubText(string, 1, Text.GetLength(string) - 1)) 'Without the last character |
|||
TextWindow.WriteLine(Text.GetSubText(string, 2, Text.GetLength(string) - 2)) 'Without the first and last characters |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
mall Basic |
|||
Small Basi |
|||
mall Basi |
|||
</pre> |
|||
=={{header|BQN}}== |
=={{header|BQN}}== |
||
Line 684: | Line 699: | ||
Readln; |
Readln; |
||
end.</syntaxhighlight> |
end.</syntaxhighlight> |
||
=={{header|EasyLang}}== |
|||
<syntaxhighlight lang="easylang"> |
|||
string$ = "EasyLang" |
|||
print substr string$ 1 len string$ - 1 # Without the first character |
|||
print substr string$ 2 len string$ - 1 # Without the last character |
|||
print substr string$ 2 len string$ - 2 # Without the first and last characters |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
EasyLan |
|||
asyLang |
|||
asyLan |
|||
</pre> |
|||
=={{header|Eero}}== |
=={{header|Eero}}== |
||
Line 908: | Line 937: | ||
Last rune removed: Δημοτικ |
Last rune removed: Δημοτικ |
||
First and last removed: ημοτικ |
First and last removed: ημοτικ |
||
</pre> |
|||
=={{header|Golfscript}}== |
|||
When I tried using Unicode characters, the interpreter generated a mess, though ASCII works fine. |
|||
<syntaxhighlight lang="golfscript"> |
|||
"Golfscript"(;n |
|||
"Golfscript");n |
|||
"Golfscript"(;); |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
olfscript |
|||
Golfscrip |
|||
olfscrip |
|||
</pre> |
</pre> |
||