private Month parseMon() { StringBuilder s = new StringBuilder(); while (pos < str.Length) { int ch = str[pos]; if ('a' <= ch && ch <= 'z') { s.Append((char)ch); pos++; continue; } if ('A' <= ch && ch <= 'Z') { s.Append((char)FanInt.lower(ch)); pos++; continue; } break; } Month m = locale().monthByName(s.ToString()); if (m == null) { throw new Exception(); } return(m); }
private static bool neic(int a, int b) { if (a == b) { return(false); } if ((a | 0x20) == (b | 0x20)) { return(FanInt.lower(a) != FanInt.lower(b)); } return(true); }