2
0

pcre2_set_compile_extra_options.3 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. .TH PCRE2_SET_COMPILE_EXTRA_OPTIONS 3 "03 February 2023" "PCRE2 10.43"
  2. .SH NAME
  3. PCRE2 - Perl-compatible regular expressions (revised API)
  4. .SH SYNOPSIS
  5. .rs
  6. .sp
  7. .B #include <pcre2.h>
  8. .PP
  9. .nf
  10. .B int pcre2_set_compile_extra_options(pcre2_compile_context *\fIccontext\fP,
  11. .B " uint32_t \fIextra_options\fP);"
  12. .fi
  13. .
  14. .SH DESCRIPTION
  15. .rs
  16. .sp
  17. This function sets additional option bits for \fBpcre2_compile()\fP that are
  18. housed in a compile context. It completely replaces all the bits. The extra
  19. options are:
  20. .sp
  21. PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK Allow \eK in lookarounds
  22. .\" JOIN
  23. PCRE2_EXTRA_ALLOW_SURROGATE_ESCAPES Allow \ex{d800} to \ex{dfff}
  24. in UTF-8 and UTF-32 modes
  25. .\" JOIN
  26. PCRE2_EXTRA_ALT_BSUX Extended alternate \eu, \eU, and
  27. \ex handling
  28. PCRE2_EXTRA_ASCII_BSD \ed remains ASCII in UCP mode
  29. PCRE2_EXTRA_ASCII_BSS \es remains ASCII in UCP mode
  30. PCRE2_EXTRA_ASCII_BSW \ew remains ASCII in UCP mode
  31. .\" JOIN
  32. PCRE2_EXTRA_ASCII_DIGIT [:digit:] and [:xdigit:] POSIX classes
  33. remain ASCII in UCP mode
  34. .\" JOIN
  35. PCRE2_EXTRA_ASCII_POSIX POSIX classes remain ASCII in
  36. UCP mode
  37. .\" JOIN
  38. PCRE2_EXTRA_BAD_ESCAPE_IS_LITERAL Treat all invalid escapes as
  39. a literal following character
  40. .\" JOIN
  41. PCRE2_EXTRA_CASELESS_RESTRICT Disable mixed ASCII/non-ASCII
  42. case folding
  43. PCRE2_EXTRA_ESCAPED_CR_IS_LF Interpret \er as \en
  44. PCRE2_EXTRA_MATCH_LINE Pattern matches whole lines
  45. PCRE2_EXTRA_MATCH_WORD Pattern matches "words"
  46. .sp
  47. There is a complete description of the PCRE2 native API in the
  48. .\" HREF
  49. \fBpcre2api\fP
  50. .\"
  51. page and a description of the POSIX API in the
  52. .\" HREF
  53. \fBpcre2posix\fP
  54. .\"
  55. page.