pcre2_set_glob_escape.3 878 B

1234567891011121314151617181920212223242526272829
  1. .TH PCRE2_SET_GLOB_ESCAPE 3 "11 July 2017" "PCRE2 10.30"
  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_glob_escape(pcre2_convert_context *\fIcvcontext\fP,
  11. .B " uint32_t \fIescape_char\fP);"
  12. .fi
  13. .
  14. .SH DESCRIPTION
  15. .rs
  16. .sp
  17. This function is part of an experimental set of pattern conversion functions.
  18. It sets the escape character that is used when converting globs. The second
  19. argument must either be zero (meaning there is no escape character) or a
  20. punctuation character whose code point is less than 256. The default is grave
  21. accent if running under Windows, otherwise backslash. The result of the
  22. function is zero for success or PCRE2_ERROR_BADDATA if the second argument is
  23. invalid.
  24. .P
  25. The pattern conversion functions are described in the
  26. .\" HREF
  27. \fBpcre2convert\fP
  28. .\"
  29. documentation.