/*
 * Copyright (c) 2024 Ross Cunniff
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

/* OADL / PCRE options for OADL_RegComp / OADL_RegEx. The original
 * PCRE copyright is:
 *
 *      Copyright (c) 1997-2010 University of Cambridge
 */
#define OADL_PCRE_CASELESS           0x00000001  /* Compile */
#define OADL_PCRE_MULTILINE          0x00000002  /* Compile */
#define OADL_PCRE_DOTALL             0x00000004  /* Compile */
#define OADL_PCRE_EXTENDED           0x00000008  /* Compile */
#define OADL_PCRE_ANCHORED           0x00000010  /* Compile, exec, DFA exec */
#define OADL_PCRE_DOLLAR_ENDONLY     0x00000020  /* Compile */
#define OADL_PCRE_EXTRA              0x00000040  /* Compile */
#define OADL_PCRE_NOTBOL             0x00000080  /* Exec, DFA exec */
#define OADL_PCRE_NOTEOL             0x00000100  /* Exec, DFA exec */
#define OADL_PCRE_UNGREEDY           0x00000200  /* Compile */
#define OADL_PCRE_NOTEMPTY           0x00000400  /* Exec, DFA exec */
#define OADL_PCRE_UTF8               0x00000800  /* Compile */
#define OADL_PCRE_NO_AUTO_CAPTURE    0x00001000  /* Compile */
#define OADL_PCRE_NO_UTF8_CHECK      0x00002000  /* Compile, exec, DFA exec */
#define OADL_PCRE_AUTO_CALLOUT       0x00004000  /* Compile */
#define OADL_PCRE_PARTIAL_SOFT       0x00008000  /* Exec, DFA exec */
#define OADL_PCRE_PARTIAL            0x00008000  /* Backwards compat synonym */
#define OADL_PCRE_DFA_SHORTEST       0x00010000  /* DFA exec */
#define OADL_PCRE_DFA_RESTART        0x00020000  /* DFA exec */
#define OADL_PCRE_FIRSTLINE          0x00040000  /* Compile */
#define OADL_PCRE_DUPNAMES           0x00080000  /* Compile */
#define OADL_PCRE_NEWLINE_CR         0x00100000  /* Compile, exec, DFA exec */
#define OADL_PCRE_NEWLINE_LF         0x00200000  /* Compile, exec, DFA exec */
#define OADL_PCRE_NEWLINE_CRLF       0x00300000  /* Compile, exec, DFA exec */
#define OADL_PCRE_NEWLINE_ANY        0x00400000  /* Compile, exec, DFA exec */
#define OADL_PCRE_NEWLINE_ANYCRLF    0x00500000  /* Compile, exec, DFA exec */
#define OADL_PCRE_BSR_ANYCRLF        0x00800000  /* Compile, exec, DFA exec */
#define OADL_PCRE_BSR_UNICODE        0x01000000  /* Compile, exec, DFA exec */
#define OADL_PCRE_JAVASCRIPT_COMPAT  0x02000000  /* Compile */
#define OADL_PCRE_NO_START_OPTIMIZE  0x04000000  /* Compile, exec, DFA exec */
#define OADL_PCRE_NO_START_OPTIMISE  0x04000000  /* Synonym */
#define OADL_PCRE_PARTIAL_HARD       0x08000000  /* Exec, DFA exec */
#define OADL_PCRE_NOTEMPTY_ATSTART   0x10000000  /* Exec, DFA exec */
#define OADL_PCRE_UCP                0x20000000  /* Compile */