Substring/Top and tail: Difference between revisions

Add Microsoft Small Basic, EasyLang, Golfscript
No edit summary
(Add Microsoft Small Basic, EasyLang, Golfscript)
Line 440:
KNIGHT
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}}==
Line 684 ⟶ 699:
Readln;
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}}==
Line 908 ⟶ 937:
Last rune 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>
 
175

edits