EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Data Structures | Defines | Functions | Variables

AppPkg/Applications/Python/PyMod-2.7.2/Modules/_sre.c File Reference

#include "Python.h"
#include "structmember.h"
#include "sre.h"
#include <ctype.h>

Go to the source code of this file.

Data Structures

struct  SRE_MATCH_CONTEXT

Defines

#define PY_SSIZE_T_CLEAN
#define SRE_MODULE   "sre"
#define SRE_PY_MODULE   "re"
#define USE_FAST_SEARCH
#define PyObject_DEL(op)   PyMem_DEL((op))
#define LOCAL(type)   static type
#define SRE_ERROR_ILLEGAL   -1
#define SRE_ERROR_STATE   -2
#define SRE_ERROR_RECURSION_LIMIT   -3
#define SRE_ERROR_MEMORY   -9
#define SRE_ERROR_INTERRUPTED   -10
#define TRACE(v)
#define SRE_DIGIT_MASK   1
#define SRE_SPACE_MASK   2
#define SRE_LINEBREAK_MASK   4
#define SRE_ALNUM_MASK   8
#define SRE_WORD_MASK   16
#define SRE_IS_DIGIT(ch)   ((ch) < 128 ? (sre_char_info[(ch)] & SRE_DIGIT_MASK) : 0)
#define SRE_IS_SPACE(ch)   ((ch) < 128 ? (sre_char_info[(ch)] & SRE_SPACE_MASK) : 0)
#define SRE_IS_LINEBREAK(ch)   ((ch) < 128 ? (sre_char_info[(ch)] & SRE_LINEBREAK_MASK) : 0)
#define SRE_IS_ALNUM(ch)   ((ch) < 128 ? (sre_char_info[(ch)] & SRE_ALNUM_MASK) : 0)
#define SRE_IS_WORD(ch)   ((ch) < 128 ? (sre_char_info[(ch)] & SRE_WORD_MASK) : 0)
#define SRE_LOC_IS_DIGIT(ch)   (!((ch) & ~255) ? isdigit((ch)) : 0)
#define SRE_LOC_IS_SPACE(ch)   (!((ch) & ~255) ? isspace((ch)) : 0)
#define SRE_LOC_IS_LINEBREAK(ch)   ((ch) == '\n')
#define SRE_LOC_IS_ALNUM(ch)   (!((ch) & ~255) ? isalnum((ch)) : 0)
#define SRE_LOC_IS_WORD(ch)   (SRE_LOC_IS_ALNUM((ch)) || (ch) == '_')
#define SRE_CHAR   unsigned char
#define SRE_AT   sre_at
#define SRE_COUNT   sre_count
#define SRE_CHARSET   sre_charset
#define SRE_INFO   sre_info
#define SRE_MATCH   sre_match
#define SRE_MATCH_CONTEXT   sre_match_context
#define SRE_SEARCH   sre_search
#define SRE_LITERAL_TEMPLATE   sre_literal_template
#define LASTMARK_SAVE()
#define LASTMARK_RESTORE()
#define RETURN_ERROR(i)   do { return i; } while(0)
#define RETURN_FAILURE   do { ret = 0; goto exit; } while(0)
#define RETURN_SUCCESS   do { ret = 1; goto exit; } while(0)
#define RETURN_ON_ERROR(i)   do { if (i < 0) RETURN_ERROR(i); } while (0)
#define RETURN_ON_SUCCESS(i)   do { RETURN_ON_ERROR(i); if (i > 0) RETURN_SUCCESS; } while (0)
#define RETURN_ON_FAILURE(i)   do { RETURN_ON_ERROR(i); if (i == 0) RETURN_FAILURE; } while (0)
#define SFY(x)   #x
#define DATA_STACK_ALLOC(state, type, ptr)
#define DATA_STACK_LOOKUP_AT(state, type, ptr, pos)
#define DATA_STACK_PUSH(state, data, size)
#define DATA_STACK_POP(state, data, size, discard)
#define DATA_STACK_POP_DISCARD(state, size)
#define DATA_PUSH(x)   DATA_STACK_PUSH(state, (x), sizeof(*(x)))
#define DATA_POP(x)   DATA_STACK_POP(state, (x), sizeof(*(x)), 1)
#define DATA_POP_DISCARD(x)   DATA_STACK_POP_DISCARD(state, sizeof(*(x)))
#define DATA_ALLOC(t, p)   DATA_STACK_ALLOC(state, t, p)
#define DATA_LOOKUP_AT(t, p, pos)   DATA_STACK_LOOKUP_AT(state,t,p,pos)
#define MARK_PUSH(lastmark)
#define MARK_POP(lastmark)
#define MARK_POP_KEEP(lastmark)
#define MARK_POP_DISCARD(lastmark)
#define JUMP_NONE   0
#define JUMP_MAX_UNTIL_1   1
#define JUMP_MAX_UNTIL_2   2
#define JUMP_MAX_UNTIL_3   3
#define JUMP_MIN_UNTIL_1   4
#define JUMP_MIN_UNTIL_2   5
#define JUMP_MIN_UNTIL_3   6
#define JUMP_REPEAT   7
#define JUMP_REPEAT_ONE_1   8
#define JUMP_REPEAT_ONE_2   9
#define JUMP_MIN_REPEAT_ONE   10
#define JUMP_BRANCH   11
#define JUMP_ASSERT   12
#define JUMP_ASSERT_NOT   13
#define DO_JUMP(jumpvalue, jumplabel, nextpattern)
#define STATE_OFFSET(state, member)   (((char*)(member) - (char*)(state)->beginning) / (state)->charsize)
#define PAT_OFF(x)   offsetof(PatternObject, x)
#define VTRACE(v)
#define FAIL   do { VTRACE(("FAIL: %d\n", __LINE__)); return 0; } while (0)
#define GET_OP
#define GET_ARG
#define GET_SKIP_ADJ(adj)
#define GET_SKIP   GET_SKIP_ADJ(0)
#define MATCH_OFF(x)   offsetof(MatchObject, x)
#define SCAN_OFF(x)   offsetof(ScannerObject, x)

Functions

 sre_category (SRE_CODE category, unsigned int ch)
 SRE_AT (SRE_STATE *state, SRE_CHAR *ptr, SRE_CODE at)
 SRE_CHARSET (SRE_CODE *set, SRE_CODE ch)
 SRE_MATCH (SRE_STATE *state, SRE_CODE *pattern)
 SRE_SEARCH (SRE_STATE *state, SRE_CODE *pattern)
 SRE_LITERAL_TEMPLATE (SRE_CHAR *ptr, Py_ssize_t len)
 state_reset (SRE_STATE *state)
 state_init (SRE_STATE *state, PatternObject *pattern, PyObject *string, Py_ssize_t start, Py_ssize_t end)
 state_fini (SRE_STATE *state)
 state_getslice (SRE_STATE *state, Py_ssize_t index, PyObject *string, int empty)
 PyDoc_STRVAR (pattern_match_doc,"match(string[, pos[, endpos]]) --> match object or None.\n\ Matches zero or more characters at the beginning of the string")
 PyDoc_STRVAR (pattern_search_doc,"search(string[, pos[, endpos]]) --> match object or None.\n\ Scan through string looking for a match, and return a corresponding\n\ MatchObject instance. Return None if no position in the string matches.")
 PyDoc_STRVAR (pattern_split_doc,"split(string[, maxsplit = 0]) --> list.\n\ Split string by the occurrences of pattern.")
 PyDoc_STRVAR (pattern_findall_doc,"findall(string[, pos[, endpos]]) --> list.\n\ Return a list of all non-overlapping matches of pattern in string.")
 PyDoc_STRVAR (pattern_finditer_doc,"finditer(string[, pos[, endpos]]) --> iterator.\n\ Return an iterator over all non-overlapping matches for the \n\ RE pattern in string. For each match, the iterator returns a\n\ match object.")
 PyDoc_STRVAR (pattern_sub_doc,"sub(repl, string[, count = 0]) --> newstring\n\ Return the string obtained by replacing the leftmost non-overlapping\n\ occurrences of pattern in string by the replacement repl.")
 PyDoc_STRVAR (pattern_subn_doc,"subn(repl, string[, count = 0]) --> (newstring, number of subs)\n\ Return the tuple (new_string, number_of_subs_made) found by replacing\n\ the leftmost non-overlapping occurrences of pattern with the\n\ replacement repl.")
 PyDoc_STRVAR (pattern_doc,"Compiled regular expression objects")
 _pair (Py_ssize_t i1, Py_ssize_t i2)
 DL_EXPORT (void)

Variables

statichere PyTypeObject Pattern_Type
statichere PyTypeObject Scanner_Type

Define Documentation

#define DATA_ALLOC (   t,
  p 
)    DATA_STACK_ALLOC(state, t, p)

Definition at line 754 of file _sre.c.

#define DATA_LOOKUP_AT (   t,
  p,
  pos 
)    DATA_STACK_LOOKUP_AT(state,t,p,pos)

Definition at line 756 of file _sre.c.

#define DATA_POP (   x)    DATA_STACK_POP(state, (x), sizeof(*(x)), 1)

Definition at line 750 of file _sre.c.

#define DATA_POP_DISCARD (   x)    DATA_STACK_POP_DISCARD(state, sizeof(*(x)))

Definition at line 752 of file _sre.c.

#define DATA_PUSH (   x)    DATA_STACK_PUSH(state, (x), sizeof(*(x)))

Definition at line 748 of file _sre.c.

#define DATA_STACK_ALLOC (   state,
  type,
  ptr 
)
Value:
do { \
    alloc_pos = state->data_stack_base; \
    TRACE(("allocating %s in %d (%d)\n", \
           SFY(type), alloc_pos, sizeof(type))); \
    if (state->data_stack_size < alloc_pos+sizeof(type)) { \
        int j = data_stack_grow(state, sizeof(type)); \
        if (j < 0) return j; \
        if (ctx_pos != -1) \
            DATA_STACK_LOOKUP_AT(state, SRE_MATCH_CONTEXT, ctx, ctx_pos); \
    } \
    ptr = (type*)(state->data_stack+alloc_pos); \
    state->data_stack_base += sizeof(type); \
} while (0)

Definition at line 697 of file _sre.c.

#define DATA_STACK_LOOKUP_AT (   state,
  type,
  ptr,
  pos 
)
Value:
do { \
    TRACE(("looking up %s at %d\n", SFY(type), pos)); \
    ptr = (type*)(state->data_stack+pos); \
} while (0)

Definition at line 712 of file _sre.c.

#define DATA_STACK_POP (   state,
  data,
  size,
  discard 
)
Value:
do { \
    TRACE(("copy data to %p from %d (%d)\n", \
           data, state->data_stack_base-size, size)); \
    memcpy(data, state->data_stack+state->data_stack_base-size, size); \
    if (discard) \
        state->data_stack_base -= size; \
} while (0)

Definition at line 732 of file _sre.c.

#define DATA_STACK_POP_DISCARD (   state,
  size 
)
Value:
do { \
    TRACE(("discard data from %d (%d)\n", \
           state->data_stack_base-size, size)); \
    state->data_stack_base -= size; \
} while(0)

Definition at line 741 of file _sre.c.

#define DATA_STACK_PUSH (   state,
  data,
  size 
)
Value:
do { \
    TRACE(("copy data in %p to %d (%d)\n", \
           data, state->data_stack_base, size)); \
    if (state->data_stack_size < state->data_stack_base+size) { \
        int j = data_stack_grow(state, size); \
        if (j < 0) return j; \
        if (ctx_pos != -1) \
            DATA_STACK_LOOKUP_AT(state, SRE_MATCH_CONTEXT, ctx, ctx_pos); \
    } \
    memcpy(state->data_stack+state->data_stack_base, data, size); \
    state->data_stack_base += size; \
} while (0)

Definition at line 718 of file _sre.c.

#define DO_JUMP (   jumpvalue,
  jumplabel,
  nextpattern 
)
Value:
DATA_ALLOC(SRE_MATCH_CONTEXT, nextctx); \
    nextctx->last_ctx_pos = ctx_pos; \
    nextctx->jump = jumpvalue; \
    nextctx->pattern = nextpattern; \
    ctx_pos = alloc_pos; \
    ctx = nextctx; \
    goto entrance; \
    jumplabel: \
    while (0)

Definition at line 792 of file _sre.c.

#define FAIL   do { VTRACE(("FAIL: %d\n", __LINE__)); return 0; } while (0)

Definition at line 2765 of file _sre.c.

#define GET_ARG
Value:
do {                                                \
        VTRACE(("%p= ", code));                         \
        if (code >= end) FAIL;                          \
        arg = *code++;                                  \
        VTRACE(("%lu (arg)\n", (unsigned long)arg));    \
    } while (0)

Definition at line 2775 of file _sre.c.

#define GET_OP
Value:
do {                                                \
        VTRACE(("%p: ", code));                         \
        if (code >= end) FAIL;                          \
        op = *code++;                                   \
        VTRACE(("%lu (op)\n", (unsigned long)op));      \
    } while (0)

Definition at line 2768 of file _sre.c.

#define GET_SKIP   GET_SKIP_ADJ(0)

Definition at line 2793 of file _sre.c.

#define GET_SKIP_ADJ (   adj)
Value:
do {                                                \
        VTRACE(("%p= ", code));                         \
        if (code >= end) FAIL;                          \
        skip = *code;                                   \
        VTRACE(("%lu (skip to %p)\n",                   \
               (unsigned long)skip, code+skip));        \
        if (code+skip-adj < code || code+skip-adj > end)\
            FAIL;                                       \
        code++;                                         \
    } while (0)

Definition at line 2782 of file _sre.c.

#define JUMP_ASSERT   12

Definition at line 789 of file _sre.c.

#define JUMP_ASSERT_NOT   13

Definition at line 790 of file _sre.c.

#define JUMP_BRANCH   11

Definition at line 788 of file _sre.c.

#define JUMP_MAX_UNTIL_1   1

Definition at line 778 of file _sre.c.

#define JUMP_MAX_UNTIL_2   2

Definition at line 779 of file _sre.c.

#define JUMP_MAX_UNTIL_3   3

Definition at line 780 of file _sre.c.

#define JUMP_MIN_REPEAT_ONE   10

Definition at line 787 of file _sre.c.

#define JUMP_MIN_UNTIL_1   4

Definition at line 781 of file _sre.c.

#define JUMP_MIN_UNTIL_2   5

Definition at line 782 of file _sre.c.

#define JUMP_MIN_UNTIL_3   6

Definition at line 783 of file _sre.c.

#define JUMP_NONE   0

Definition at line 777 of file _sre.c.

#define JUMP_REPEAT   7

Definition at line 784 of file _sre.c.

#define JUMP_REPEAT_ONE_1   8

Definition at line 785 of file _sre.c.

#define JUMP_REPEAT_ONE_2   9

Definition at line 786 of file _sre.c.

#define LASTMARK_RESTORE ( )
Value:
do { \
        state->lastmark = ctx->lastmark; \
        state->lastindex = ctx->lastindex; \
    } while (0)

Definition at line 678 of file _sre.c.

#define LASTMARK_SAVE ( )
Value:
do { \
        ctx->lastmark = state->lastmark; \
        ctx->lastindex = state->lastindex; \
    } while (0)

Definition at line 673 of file _sre.c.

#define LOCAL (   type)    static type

Definition at line 107 of file _sre.c.

#define MARK_POP (   lastmark)
Value:
do if (lastmark > 0) { \
        DATA_STACK_POP(state, state->mark, (lastmark+1)*sizeof(void*), 1); \
    } while (0)

Definition at line 764 of file _sre.c.

#define MARK_POP_DISCARD (   lastmark)
Value:
do if (lastmark > 0) { \
        DATA_STACK_POP_DISCARD(state, (lastmark+1)*sizeof(void*)); \
    } while (0)

Definition at line 772 of file _sre.c.

#define MARK_POP_KEEP (   lastmark)
Value:
do if (lastmark > 0) { \
        DATA_STACK_POP(state, state->mark, (lastmark+1)*sizeof(void*), 0); \
    } while (0)

Definition at line 768 of file _sre.c.

#define MARK_PUSH (   lastmark)
Value:
do if (lastmark > 0) { \
        i = lastmark; /* ctx->lastmark may change if reallocated */ \
        DATA_STACK_PUSH(state, state->mark, (i+1)*sizeof(void*)); \
    } while (0)

Definition at line 759 of file _sre.c.

#define MATCH_OFF (   x)    offsetof(MatchObject, x)

Definition at line 3613 of file _sre.c.

#define PAT_OFF (   x)    offsetof(PatternObject, x)

Definition at line 2615 of file _sre.c.

#define PY_SSIZE_T_CLEAN

Definition at line 55 of file _sre.c.

#define PyObject_DEL (   op)    PyMem_DEL((op))

Definition at line 94 of file _sre.c.

#define RETURN_ERROR (   i)    do { return i; } while(0)

Definition at line 684 of file _sre.c.

#define RETURN_FAILURE   do { ret = 0; goto exit; } while(0)

Definition at line 685 of file _sre.c.

#define RETURN_ON_ERROR (   i)    do { if (i < 0) RETURN_ERROR(i); } while (0)

Definition at line 688 of file _sre.c.

#define RETURN_ON_FAILURE (   i)    do { RETURN_ON_ERROR(i); if (i == 0) RETURN_FAILURE; } while (0)

Definition at line 692 of file _sre.c.

#define RETURN_ON_SUCCESS (   i)    do { RETURN_ON_ERROR(i); if (i > 0) RETURN_SUCCESS; } while (0)

Definition at line 690 of file _sre.c.

#define RETURN_SUCCESS   do { ret = 1; goto exit; } while(0)

Definition at line 686 of file _sre.c.

#define SCAN_OFF (   x)    offsetof(ScannerObject, x)

Definition at line 3804 of file _sre.c.

#define SFY (   x)    #x

Definition at line 695 of file _sre.c.

#define SRE_ALNUM_MASK   8

Definition at line 131 of file _sre.c.

#define SRE_AT   sre_at

Definition at line 303 of file _sre.c.

#define SRE_CHAR   unsigned char

Definition at line 302 of file _sre.c.

#define SRE_CHARSET   sre_charset

Definition at line 305 of file _sre.c.

#define SRE_COUNT   sre_count

Definition at line 304 of file _sre.c.

#define SRE_DIGIT_MASK   1

Definition at line 128 of file _sre.c.

#define SRE_ERROR_ILLEGAL   -1

Definition at line 111 of file _sre.c.

#define SRE_ERROR_INTERRUPTED   -10

Definition at line 115 of file _sre.c.

#define SRE_ERROR_MEMORY   -9

Definition at line 114 of file _sre.c.

#define SRE_ERROR_RECURSION_LIMIT   -3

Definition at line 113 of file _sre.c.

#define SRE_ERROR_STATE   -2

Definition at line 112 of file _sre.c.

#define SRE_INFO   sre_info

Definition at line 306 of file _sre.c.

#define SRE_IS_ALNUM (   ch)    ((ch) < 128 ? (sre_char_info[(ch)] & SRE_ALNUM_MASK) : 0)

Definition at line 160 of file _sre.c.

#define SRE_IS_DIGIT (   ch)    ((ch) < 128 ? (sre_char_info[(ch)] & SRE_DIGIT_MASK) : 0)

Definition at line 154 of file _sre.c.

#define SRE_IS_LINEBREAK (   ch)    ((ch) < 128 ? (sre_char_info[(ch)] & SRE_LINEBREAK_MASK) : 0)

Definition at line 158 of file _sre.c.

#define SRE_IS_SPACE (   ch)    ((ch) < 128 ? (sre_char_info[(ch)] & SRE_SPACE_MASK) : 0)

Definition at line 156 of file _sre.c.

#define SRE_IS_WORD (   ch)    ((ch) < 128 ? (sre_char_info[(ch)] & SRE_WORD_MASK) : 0)

Definition at line 162 of file _sre.c.

#define SRE_LINEBREAK_MASK   4

Definition at line 130 of file _sre.c.

#define SRE_LITERAL_TEMPLATE   sre_literal_template

Definition at line 310 of file _sre.c.

#define SRE_LOC_IS_ALNUM (   ch)    (!((ch) & ~255) ? isalnum((ch)) : 0)

Definition at line 176 of file _sre.c.

#define SRE_LOC_IS_DIGIT (   ch)    (!((ch) & ~255) ? isdigit((ch)) : 0)

Definition at line 173 of file _sre.c.

#define SRE_LOC_IS_LINEBREAK (   ch)    ((ch) == '\n')

Definition at line 175 of file _sre.c.

#define SRE_LOC_IS_SPACE (   ch)    (!((ch) & ~255) ? isspace((ch)) : 0)

Definition at line 174 of file _sre.c.

#define SRE_LOC_IS_WORD (   ch)    (SRE_LOC_IS_ALNUM((ch)) || (ch) == '_')

Definition at line 177 of file _sre.c.

#define SRE_MATCH   sre_match

Definition at line 307 of file _sre.c.

#define SRE_MATCH_CONTEXT   sre_match_context

Definition at line 308 of file _sre.c.

#define SRE_MODULE   "sre"

Definition at line 66 of file _sre.c.

#define SRE_PY_MODULE   "re"

Definition at line 69 of file _sre.c.

#define SRE_SEARCH   sre_search

Definition at line 309 of file _sre.c.

#define SRE_SPACE_MASK   2

Definition at line 129 of file _sre.c.

#define SRE_WORD_MASK   16

Definition at line 132 of file _sre.c.

#define STATE_OFFSET (   state,
  member 
)    (((char*)(member) - (char*)(state)->beginning) / (state)->charsize)

Definition at line 1817 of file _sre.c.

#define TRACE (   v)

Definition at line 120 of file _sre.c.

#define USE_FAST_SEARCH

Definition at line 85 of file _sre.c.

#define VTRACE (   v)

Definition at line 2761 of file _sre.c.


Function Documentation

_pair ( Py_ssize_t  i1,
Py_ssize_t  i2 
)

Definition at line 3430 of file _sre.c.

DL_EXPORT ( void  )

Definition at line 3881 of file _sre.c.

PyDoc_STRVAR ( pattern_match_doc  ,
"match(string[, pos[, endpos]]) --> match object or None.\n\ Matches zero or more characters at the beginning of the string"   
)
PyDoc_STRVAR ( pattern_search_doc  ,
"search(string[, pos[, endpos]]) --> match object or None.\n\ Scan through string looking for a  match,
and return a corresponding\n\MatchObject instance.Return None if no position in the string matches."   
)
PyDoc_STRVAR ( pattern_split_doc  ,
"split(string[, maxsplit = 0]) --> list.\n\ Split string by the occurrences of pattern."   
)
PyDoc_STRVAR ( pattern_findall_doc  ,
"findall(string[, pos[, endpos]]) --> list.\n\ Return a list of all non-overlapping matches of pattern in string."   
)
PyDoc_STRVAR ( pattern_finditer_doc  ,
"finditer(string[, pos[, endpos]]) --> iterator.\n\ Return an iterator over all non-overlapping matches for the \n\ RE pattern in string. For each  match,
the iterator returns a\n\match object."   
)
PyDoc_STRVAR ( pattern_sub_doc  ,
"sub(repl, string[, count = 0]) --> newstring\n\ Return the string obtained by replacing the leftmost non-overlapping\n\ occurrences of pattern in string by the replacement repl."   
)
PyDoc_STRVAR ( pattern_doc  ,
"Compiled regular expression objects"   
)
PyDoc_STRVAR ( pattern_subn_doc  ,
"subn(repl, string[, count = 0]) --> (newstring, number of subs)\n\ Return the tuple (new_string, number_of_subs_made) found by replacing\n\ the leftmost non-overlapping occurrences of pattern with the\n\ replacement repl."   
)
SRE_AT ( SRE_STATE *  state,
SRE_CHAR *  ptr,
SRE_CODE  at 
)

Definition at line 350 of file _sre.c.

sre_category ( SRE_CODE  category,
unsigned int  ch 
)

Definition at line 202 of file _sre.c.

SRE_CHARSET ( SRE_CODE *  set,
SRE_CODE  ch 
)

Definition at line 440 of file _sre.c.

SRE_LITERAL_TEMPLATE ( SRE_CHAR *  ptr,
Py_ssize_t  len 
)

Definition at line 1632 of file _sre.c.

SRE_MATCH ( SRE_STATE *  state,
SRE_CODE *  pattern 
)

Definition at line 821 of file _sre.c.

SRE_SEARCH ( SRE_STATE *  state,
SRE_CODE *  pattern 
)

Definition at line 1503 of file _sre.c.

state_fini ( SRE_STATE *  state)

Definition at line 1810 of file _sre.c.

state_getslice ( SRE_STATE *  state,
Py_ssize_t  index,
PyObject *  string,
int  empty 
)

Definition at line 1821 of file _sre.c.

state_init ( SRE_STATE *  state,
PatternObject *  pattern,
PyObject *  string,
Py_ssize_t  start,
Py_ssize_t  end 
)

Definition at line 1754 of file _sre.c.

state_reset ( SRE_STATE *  state)

Definition at line 1674 of file _sre.c.


Variable Documentation

statichere PyTypeObject Pattern_Type
Initial value:
 {
    PyObject_HEAD_INIT(NULL)
    0, "_" SRE_MODULE ".SRE_Pattern",
    sizeof(PatternObject), sizeof(SRE_CODE),
    (destructor)pattern_dealloc, 
    0,                                  
    0,                                  
    0,          
    0,          
    0,          
    0,          
    0,          
    0,          
    0,          
    0,          
    0,          
    0,          
    0,          
    0,          
    Py_TPFLAGS_DEFAULT,           
    pattern_doc,      
    0,          
    0,          
    0,          
    offsetof(PatternObject, weakreflist), 
    0,          
    0,          
    pattern_methods,      
    pattern_members,      
}

Definition at line 2624 of file _sre.c.

statichere PyTypeObject Scanner_Type

Definition at line 3810 of file _sre.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines