Warning: session_start(): open(/var/lib/php/sessions/sess_hlfqe08thsi75iakjl9f228s7a, 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
sclass NotifyingStringBufferRotator implements Runnable {
NotifyingStringBuffer buf;
IF0 getMaxChars;
*(NotifyingStringBuffer *buf, IF0 *getMaxChars) {}
run {
Int max = callF(getMaxChars);
if (max == null || buf.length() <= max) ret;
try {
int newLength = max/2;
int ofs = buf.length()-newLength;
S newString = buf.substring(ofs);
buf.setLength(0);
buf.append("[...] ").append(newString);
} catch (Exception e) {
buf.setLength(0);
}
buf.trimToSize();
}
}
svoid makeNotifyingStringBufferRotate(NotifyingStringBuffer buf, IF0 getMaxChars) {
if (hasElementWithClassShortNamed('NotifyingStringBufferRotator, buf.onChange)) ret;
buf.onChange(new NotifyingStringBufferRotator(buf, getMaxChars));
}