PIString::mid выдаёт дичь при отрицательном start #98
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PIString s("0123456789");
piCout << s.mid(-2, -1); // s = "0123456789"
piCout << s.mid(-2, 4); // s = "01" why?
piCout << s.mid(-2, 2); // s = "" WTF???
piCout << s.mid(-2, 1); // s = "0123456789" KURVA!!!