1PCRE_PATTERN_TO_HOST_BYTE_ORLDiEbRr(a3r)y FunctionsPMCaRnEu_aPlATTERN_TO_HOST_BYTE_ORDER(3)
2
3
4

NAME

6       PCRE - Perl-compatible regular expressions
7

SYNOPSIS

9
10       #include <pcre.h>
11
12       int pcre_pattern_to_host_byte_order(pcre *code,
13            pcre_extra *extra, const unsigned char *tables);
14
15       int pcre16_pattern_to_host_byte_order(pcre16 *code,
16            pcre16_extra *extra, const unsigned char *tables);
17
18       int pcre32_pattern_to_host_byte_order(pcre32 *code,
19            pcre32_extra *extra, const unsigned char *tables);
20

DESCRIPTION

22
23       This  function  ensures that the bytes in 2-byte and 4-byte values in a
24       compiled pattern are in the correct order for the current host.  It  is
25       useful when a pattern that has been compiled on one host is transferred
26       to another that might have different endianness. The arguments are:
27
28         code         A compiled regular expression
29         extra        Points to an associated pcre[16|32]_extra structure,
30                        or is NULL
31         tables       Pointer to character tables, or NULL to
32                        set the built-in default
33
34       The result is 0 for success, a negative PCRE_ERROR_xxx value otherwise.
35
36       There is a complete description of the PCRE native API in  the  pcreapi
37       page and a description of the POSIX API in the pcreposix page.
38
39
40
41PCRE 8.30                        24 June 2012PCRE_PATTERN_TO_HOST_BYTE_ORDER(3)
Impressum