Make String::right count from pos instead of pos+1

This commit is contained in:
marynate
2014-05-12 18:45:04 +08:00
parent 1b45a38fb5
commit 56d9faebab
3 changed files with 4 additions and 4 deletions

View File

@@ -2640,7 +2640,7 @@ String String::right(int p_pos) const {
if (p_pos<0)
return "";
return substr(p_pos+1,(length()-p_pos)-1);
return substr(p_pos,(length()-p_pos));
}
CharType String::ord_at(int p_idx) const {