pcre_pattern_to_host_byte_order(3) — Linux manual page



NAME         top

       PCRE - Perl-compatible regular expressions

SYNOPSIS         top

       #include <pcre.h>

       int pcre_pattern_to_host_byte_order(pcre *code,
            pcre_extra *extra, const unsigned char *tables);

       int pcre16_pattern_to_host_byte_order(pcre16 *code,
            pcre16_extra *extra, const unsigned char *tables);

       int pcre32_pattern_to_host_byte_order(pcre32 *code,
            pcre32_extra *extra, const unsigned char *tables);

DESCRIPTION         top

       This function ensures that the bytes in 2-byte and 4-byte values
       in a compiled pattern are in the correct order for the current
       host. It is useful when a pattern that has been compiled on one
       host is transferred to another that might have different
       endianness. The arguments are:

         code         A compiled regular expression
         extra        Points to an associated pcre[16|32]_extra
                        or is NULL
         tables       Pointer to character tables, or NULL to
                        set the built-in default

       The result is 0 for success, a negative PCRE_ERROR_xxx value

       There is a complete description of the PCRE native API in the
       pcreapi page and a description of the POSIX API in the pcreposix

COLOPHON         top

       This page is part of the PCRE (Perl Compatible Regular
       Expressions) project.  Information about the project can be found
       at ⟨http://www.pcre.org/⟩.  If you have a bug report for this
       manual page, see
       ⟨http://bugs.exim.org/enter_bug.cgi?product=PCRE⟩.  This page was
       obtained from the tarball pcre-8.45.tar.gz fetched from
       ⟨ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/⟩ on
       2021-08-27.  If you discover any rendering problems in this HTML
       version of the page, or you believe there is a better or more up-
       to-date source for the page, or you have corrections or
       improvements to the information in this COLOPHON (which is not
       part of the original manual page), send a mail to

PCRE 8.30                     24 June 2P0C1R2E_PATTERN_TO_HOST_BYTE_ORDER(3)