static int parseIntOpt(S s) { ret isInteger(s) ? parseInt(s) : 0; }