Only in src/gnu/regexp: CVS diff -ru jstest/gnu.regexp-1.1.4/src/gnu/regexp/RE.java src/gnu/regexp/RE.java --- jstest/gnu.regexp-1.1.4/src/gnu/regexp/RE.java Sun Oct 21 17:26:42 2001 +++ src/gnu/regexp/RE.java Thu Jun 26 19:29:38 2003 @@ -101,7 +101,8 @@ private static final String VERSION = "1.1.4-dev"; // The localized strings are kept in a separate file - private static ResourceBundle messages = PropertyResourceBundle.getBundle("gnu/regexp/MessagesBundle", Locale.getDefault()); + // XWT LOCAL: we can't bundle property lists within the xwt executable on all platforms + // private static ResourceBundle messages = PropertyResourceBundle.getBundle("gnu/regexp/MessagesBundle", Locale.getDefault()); // These are, respectively, the first and last tokens in our linked list // If there is only one token, firstToken == lastToken @@ -200,8 +201,26 @@ } // Retrieves a message from the ResourceBundle + // XWT LOCAL: we can't bundle property lists within the xwt executable on all platforms + // for simplicity, just lookup the errors this way. static final String getLocalizedMessage(String key) { - return messages.getString(key); + if(key.equals("error.prefix")) return "At position {0} in regular expression pattern:"; + else if(key.equals("repeat.assertion")) return "repeated token is zero-width assertion"; + else if(key.equals("repeat.chained")) return "attempted to repeat a token that is already repeated"; + else if(key.equals("repeat.no.token")) return "quantifier (?*+{}) without preceding token"; + else if(key.equals("repeat.empty.token")) return "repeated token may be empty"; + else if(key.equals("unmatched.brace")) return "unmatched brace"; + else if(key.equals("unmatched.bracket")) return "unmatched bracket"; + else if(key.equals("unmatched.paren")) return "unmatched parenthesis"; + else if(key.equals("interval.no.end")) return "expected end of interval"; + else if(key.equals("class.no.end")) return "expected end of character class"; + else if(key.equals("subexpr.no.end")) return "expected end of subexpression"; + else if(key.equals("interval.order")) return "interval minimum is greater than maximum"; + else if(key.equals("interval.error")) return "interval is empty or contains illegal chracters"; + else if(key.equals("ends.with.backslash")) return "backslash at end of pattern"; + else if(key.equals("syntax.final")) return "Syntax has been declared final and cannot be modified"; + return "Unknown regexp error"; + //return messages.getString(key); } /** Only in jstest/gnu.regexp-1.1.4/src/gnu/regexp: util