Warning: session_start(): open(/var/lib/php/sessions/sess_k2mbdqv3qs8j0t2dr9ahth11vv, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
sS reversedSubstring(S s, int x, int y) {
if (s == null) null;
if (x < 0) x = 0;
if (x >= s.length()) ret "";
if (y < x) y = x;
y = Math.min(y, s.length());
// TODO: Is this actually faster than reversed(substring(...))?
char[] chars = new[y-x];
int j = y-x;
for (int i = x; i < y; i++)
chars[--j] = s.charAt(i);
ret String.valueOf(chars);
}