regex: Add new GRegexError code from PCRE 8.31

This commit is contained in:
Christian Persch
2012-06-28 23:20:39 +02:00
parent 2188a5e59c
commit 53b3175cfa
3 changed files with 9 additions and 2 deletions

View File

@@ -518,6 +518,9 @@ translate_compile_error (gint *errcode, const gchar **errmsg)
case G_REGEX_ERROR_NAME_TOO_LONG:
*errmsg = _("name is too long in (*MARK), (*PRUNE), (*SKIP), or (*THEN)");
break;
case G_REGEX_ERROR_CHARACTER_VALUE_TOO_LARGE:
*errmsg = _("character value in \\u.... sequence is too large");
break;
case 116: /* erroffset passed as NULL */
/* This should not happen as we never pass a NULL erroffset */