regerrs.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * src/include/regex/regerrs.h
  3. */
  4. {
  5. REG_OKAY, "REG_OKAY", "no errors detected"
  6. },
  7. {
  8. REG_NOMATCH, "REG_NOMATCH", "failed to match"
  9. },
  10. {
  11. REG_BADPAT, "REG_BADPAT", "invalid regexp (reg version 0.8)"
  12. },
  13. {
  14. REG_ECOLLATE, "REG_ECOLLATE", "invalid collating element"
  15. },
  16. {
  17. REG_ECTYPE, "REG_ECTYPE", "invalid character class"
  18. },
  19. {
  20. REG_EESCAPE, "REG_EESCAPE", "invalid escape \\ sequence"
  21. },
  22. {
  23. REG_ESUBREG, "REG_ESUBREG", "invalid backreference number"
  24. },
  25. {
  26. REG_EBRACK, "REG_EBRACK", "brackets [] not balanced"
  27. },
  28. {
  29. REG_EPAREN, "REG_EPAREN", "parentheses () not balanced"
  30. },
  31. {
  32. REG_EBRACE, "REG_EBRACE", "braces {} not balanced"
  33. },
  34. {
  35. REG_BADBR, "REG_BADBR", "invalid repetition count(s)"
  36. },
  37. {
  38. REG_ERANGE, "REG_ERANGE", "invalid character range"
  39. },
  40. {
  41. REG_ESPACE, "REG_ESPACE", "out of memory"
  42. },
  43. {
  44. REG_BADRPT, "REG_BADRPT", "quantifier operand invalid"
  45. },
  46. {
  47. REG_ASSERT, "REG_ASSERT", "\"cannot happen\" -- you found a bug"
  48. },
  49. {
  50. REG_INVARG, "REG_INVARG", "invalid argument to regex function"
  51. },
  52. {
  53. REG_MIXED, "REG_MIXED", "character widths of regex and string differ"
  54. },
  55. {
  56. REG_BADOPT, "REG_BADOPT", "invalid embedded option"
  57. },
  58. {
  59. REG_ETOOBIG, "REG_ETOOBIG", "regular expression is too complex"
  60. },
  61. {
  62. REG_ECOLORS, "REG_ECOLORS", "too many colors"
  63. },
  64. {
  65. REG_CANCEL, "REG_CANCEL", "operation cancelled"
  66. },