PCRE2_SET_GLOB_ESCAPE(3)

✨ PCRE2_SET_GLOB_ESCAPE(3) ✨

Library Functions Manual energy, bestie β€” this is the PCRE2_SET_GLOB_ESCAPE(3) page, and we are keeping it cute and factual πŸ’…

🌸 NAME 🌸

PCRE2 - Perl-compatible regular expressions (revised API) πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

       #include <pcre2.h>

       int pcre2_set_glob_escape(pcre2_convert_context *cvcontext,
         uint32_t escape_char);

πŸ’– DESCRIPTION πŸ’–

okay so this function is part of an experimental set of pattern conversion functions. Experimental, bestie β€” that's the whole vibe. It sets the escape character that is used when converting globs πŸŒ€

Here's the tea on the second argument πŸ“:

  • It must either be zero (meaning there is no escape character at all) or a punctuation character whose code point is less than 256.
  • The default is the grave accent if running under Windows, otherwise the backslash.
  • The result of the function is zero for success, or PCRE2_ERROR_BADDATA if the second argument is invalid.

The pattern conversion functions are described in the pcre2convert documentation πŸ“š


okay bye bestie β€” this page is from PCRE2 10.47, dated 12 July 2017, and yes it's the PCRE2_SET_GLOB_ESCAPE(3) manual page πŸ’œβœ¨

πŸ“¦ where this page comes from