Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

pcre_pattern_to_host_byte_order (3)

Name

pcre_pattern_to_host_byte_order - compatible regular expressions

Synopsis

#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

Library Functions Manual                    PCRE_PATTERN_TO_HOST_BYTE_ORDER(3)



NAME
       PCRE - Perl-compatible regular expressions

SYNOPSIS

       #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

       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 structure,
                        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 otherwise.

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



ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | library/pcre     |
       +---------------+------------------+
       |Stability      | Uncommitted      |
       +---------------+------------------+
NOTES
       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source  was  downloaded from  ftp://ftp.csx.cam.ac.uk/pub/software/pro-
       gramming/pcre/pcre-8.42.tar.gz

       Further information about this software can be found on the open source
       community website at http://pcre.org/.



PCRE 8.30                        24 June 2012
                                            PCRE_PATTERN_TO_HOST_BYTE_ORDER(3)