Kevin Miller
|
regcomp() regex.h error codes
|
Kevin Miller
03/11/2009 3:05 PM
post24172
|
regcomp() regex.h error codes
Does anyone know of a reference that explains the error codes for regcomp() as defined in regex.h?
Thanks,
Kevin
|
|
|
Hans-Peter Reichert
|
AW: regcomp() regex.h error codes
|
Hans-Peter Reichert
03/12/2009 2:47 AM
post24196
|
AW: regcomp() regex.h error codes
http://www.qnx.com/developers/docs/6.4.0/neutrino/lib_ref/r/regerror.html
regerror() refeers to trunk/lib/c/1a/regerror.c
here you can find the list of error strings
{ REG_NOMATCH, "REG_NOMATCH", "regexec() failed to match" },
{ REG_BADPAT, "REG_BADPAT", "invalid regular expression" },
{ REG_ECOLLATE, "REG_ECOLLATE", "invalid collating element" },
{ REG_ECTYPE, "REG_ECTYPE", "invalid character class" },
{ REG_EESCAPE, "REG_EESCAPE", "trailing backslash (\\)" },
{ REG_ESUBREG, "REG_ESUBREG", "invalid backreference number" },
{ REG_EBRACK, "REG_EBRACK", "brackets ([ ]) not balanced" },
{ REG_EPAREN, "REG_EPAREN", "parentheses not balanced" },
{ REG_EBRACE, "REG_EBRACE", "braces not balanced" },
{ REG_BADBR, "REG_BADBR", "invalid repetition count(s)" },
{ REG_ERANGE, "REG_ERANGE", "invalid character range" },
{ REG_ESPACE, "REG_ESPACE", "out of memory" },
{ REG_BADRPT, "REG_BADRPT", "repetition-operator operand invalid" },
{ REG_EMPTY, "REG_EMPTY", "empty (sub)expression" },
{ REG_ASSERT, "REG_ASSERT", "\"can't happen\" -- you found a bug" },
{ REG_INVARG, "REG_INVARG", "invalid argument to regex routine" },
{ 0, "", "*** unknown regexp error code ***" }
HTH
/hp
>-----Ursprüngliche Nachricht-----
>Von: Kevin Miller [mailto:community-noreply@qnx.com]
>Gesendet: Mittwoch, 11. März 2009 20:06
>An: general-community
>Betreff: regcomp() regex.h error codes
>
>Does anyone know of a reference that explains the error codes
>for regcomp() as defined in regex.h?
>
>Thanks,
>
>Kevin
>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post24172
>
>
*******************************************
Harman Becker Automotive Systems GmbH
Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser
Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad |
Local Court Mannheim: Register No. 361395
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail
. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have
received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying,
disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
|
|
|
Kevin Miller
|
RE: regcomp() regex.h error codes
|
Kevin Miller
03/12/2009 7:26 AM
post24205
|
RE: regcomp() regex.h error codes
Thanks. I guess I must have missed that page; I was just looking at the source file in /usr/include.
-----Original Message-----
From: Hans-Peter Reichert [mailto:community-noreply@qnx.com]
Sent: Thursday, March 12, 2009 2:47 AM
To: general-community
Subject: AW: regcomp() regex.h error codes
http://www.qnx.com/developers/docs/6.4.0/neutrino/lib_ref/r/regerror.html
regerror() refeers to trunk/lib/c/1a/regerror.c
here you can find the list of error strings
{ REG_NOMATCH, "REG_NOMATCH", "regexec() failed to match" },
{ REG_BADPAT, "REG_BADPAT", "invalid regular expression" },
{ REG_ECOLLATE, "REG_ECOLLATE", "invalid collating element" },
{ REG_ECTYPE, "REG_ECTYPE", "invalid character class" },
{ REG_EESCAPE, "REG_EESCAPE", "trailing backslash (\\)" },
{ REG_ESUBREG, "REG_ESUBREG", "invalid backreference number" },
{ REG_EBRACK, "REG_EBRACK", "brackets ([ ]) not balanced" },
{ REG_EPAREN, "REG_EPAREN", "parentheses not balanced" },
{ REG_EBRACE, "REG_EBRACE", "braces not balanced" },
{ REG_BADBR, "REG_BADBR", "invalid repetition count(s)" },
{ REG_ERANGE, "REG_ERANGE", "invalid character range" },
{ REG_ESPACE, "REG_ESPACE", "out of memory" },
{ REG_BADRPT, "REG_BADRPT", "repetition-operator operand invalid" },
{ REG_EMPTY, "REG_EMPTY", "empty (sub)expression" },
{ REG_ASSERT, "REG_ASSERT", "\"can't happen\" -- you found a bug" },
{ REG_INVARG, "REG_INVARG", "invalid argument to regex routine" },
{ 0, "", "*** unknown regexp error code ***" }
HTH
/hp
>-----Ursprüngliche Nachricht-----
>Von: Kevin Miller [mailto:community-noreply@qnx.com]
>Gesendet: Mittwoch, 11. März 2009 20:06
>An: general-community
>Betreff: regcomp() regex.h error codes
>
>Does anyone know of a reference that explains the error codes
>for regcomp() as defined in regex.h?
>
>Thanks,
>
>Kevin
>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post24172
>
>
*******************************************
Harman Becker Automotive Systems GmbH
Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser Chairman of the Supervisory Board: Ansgar
Rempp | Domicile: Karlsbad |
Local Court Mannheim: Register No. 361395
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail
. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain
confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution
of the contents in this e-mail is strictly forbidden.
*******************************************
_______________________________________________
General
http://community.qnx.com/sf/go/post24196
|
|
|
|