Warning: session_start(): open(/var/lib/php/sessions/sess_ogah64gqf9rsrr2tv4b7ng162p, 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
sbool ctxEvalPattern_debug;
static bool ctxEvalPattern(S pat) {
ret ctxEvalPattern(pat, ctxContext().input);
}
static bool ctxEvalPattern(S pat, S input) {
if (empty(pat)) true;
CtxContext c = ctxContext();
WoodyBot bot = woodyBot();
Pattern p = null;
if (bot != null)
p = bot.compiledPatterns.get(pat);
if (p == null) {
S pat2 = ctxExpandMacros(pat, c.regexpMacros);
S re = ctxREToJavaRE(pat2);
if (ctxEvalPattern_debug)
print("Java RE pattern: " + re);
p = Pattern.compile(re, Pattern.CASE_INSENSITIVE);
}
if (bot != null)
bot.compiledPatterns.put(pat, p);
Matcher m = p.matcher(unnull(input));
//ctxContext().matches.clear();
if (m.find()) {
c.matches.add(m.group());
true;
}
false;
}