1
0

Fix LEFT$

This commit is contained in:
otya128
2016-12-24 16:18:55 +09:00
parent 0eb9e1620f
commit ed85733345
2 changed files with 10 additions and 4 deletions

View File

@@ -1224,6 +1224,10 @@ class BuiltinFunction
//INSTRSUSBTLEFT
static wstring LEFT(wstring str, int len)
{
if (len >= str.length)
{
return str[0..$];
}
return str[0..len];
}
static wstring RIGHT(wstring str, int len)