Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Classes | Functions | Variables
sre_constants Namespace Reference

Classes

class  error
 

Functions

def makedict
 
def dump
 

Variables

int MAGIC = 20031017
 
int MAXREPEAT = 65535
 
string FAILURE = "failure"
 
string SUCCESS = "success"
 
string ANY = "any"
 
string ANY_ALL = "any_all"
 
string ASSERT = "assert"
 
string ASSERT_NOT = "assert_not"
 
string AT = "at"
 
string BIGCHARSET = "bigcharset"
 
string BRANCH = "branch"
 
string CALL = "call"
 
string CATEGORY = "category"
 
string CHARSET = "charset"
 
string GROUPREF = "groupref"
 
string GROUPREF_IGNORE = "groupref_ignore"
 
string GROUPREF_EXISTS = "groupref_exists"
 
string IN = "in"
 
string IN_IGNORE = "in_ignore"
 
string INFO = "info"
 
string JUMP = "jump"
 
string LITERAL = "literal"
 
string LITERAL_IGNORE = "literal_ignore"
 
string MARK = "mark"
 
string MAX_REPEAT = "max_repeat"
 
string MAX_UNTIL = "max_until"
 
string MIN_REPEAT = "min_repeat"
 
string MIN_UNTIL = "min_until"
 
string NEGATE = "negate"
 
string NOT_LITERAL = "not_literal"
 
string NOT_LITERAL_IGNORE = "not_literal_ignore"
 
string RANGE = "range"
 
string REPEAT = "repeat"
 
string REPEAT_ONE = "repeat_one"
 
string SUBPATTERN = "subpattern"
 
string MIN_REPEAT_ONE = "min_repeat_one"
 
string AT_BEGINNING = "at_beginning"
 
string AT_BEGINNING_LINE = "at_beginning_line"
 
string AT_BEGINNING_STRING = "at_beginning_string"
 
string AT_BOUNDARY = "at_boundary"
 
string AT_NON_BOUNDARY = "at_non_boundary"
 
string AT_END = "at_end"
 
string AT_END_LINE = "at_end_line"
 
string AT_END_STRING = "at_end_string"
 
string AT_LOC_BOUNDARY = "at_loc_boundary"
 
string AT_LOC_NON_BOUNDARY = "at_loc_non_boundary"
 
string AT_UNI_BOUNDARY = "at_uni_boundary"
 
string AT_UNI_NON_BOUNDARY = "at_uni_non_boundary"
 
string CATEGORY_DIGIT = "category_digit"
 
string CATEGORY_NOT_DIGIT = "category_not_digit"
 
string CATEGORY_SPACE = "category_space"
 
string CATEGORY_NOT_SPACE = "category_not_space"
 
string CATEGORY_WORD = "category_word"
 
string CATEGORY_NOT_WORD = "category_not_word"
 
string CATEGORY_LINEBREAK = "category_linebreak"
 
string CATEGORY_NOT_LINEBREAK = "category_not_linebreak"
 
string CATEGORY_LOC_WORD = "category_loc_word"
 
string CATEGORY_LOC_NOT_WORD = "category_loc_not_word"
 
string CATEGORY_UNI_DIGIT = "category_uni_digit"
 
string CATEGORY_UNI_NOT_DIGIT = "category_uni_not_digit"
 
string CATEGORY_UNI_SPACE = "category_uni_space"
 
string CATEGORY_UNI_NOT_SPACE = "category_uni_not_space"
 
string CATEGORY_UNI_WORD = "category_uni_word"
 
string CATEGORY_UNI_NOT_WORD = "category_uni_not_word"
 
string CATEGORY_UNI_LINEBREAK = "category_uni_linebreak"
 
string CATEGORY_UNI_NOT_LINEBREAK = "category_uni_not_linebreak"
 
list OPCODES
 
list ATCODES
 
list CHCODES
 
dictionary OP_IGNORE
 
dictionary AT_MULTILINE
 
dictionary AT_LOCALE
 
dictionary AT_UNICODE
 
dictionary CH_LOCALE
 
dictionary CH_UNICODE
 
int SRE_FLAG_TEMPLATE = 1
 
int SRE_FLAG_IGNORECASE = 2
 
int SRE_FLAG_LOCALE = 4
 
int SRE_FLAG_MULTILINE = 8
 
int SRE_FLAG_DOTALL = 16
 
int SRE_FLAG_UNICODE = 32
 
int SRE_FLAG_VERBOSE = 64
 
int SRE_FLAG_DEBUG = 128
 
int SRE_INFO_PREFIX = 1
 
int SRE_INFO_LITERAL = 2
 
int SRE_INFO_CHARSET = 4
 
tuple f = open("sre_constants.h", "w")
 

Function Documentation

def sre_constants.dump (   f,
  d,
  prefix 
)
def sre_constants.makedict (   list)

Variable Documentation

string sre_constants.ANY = "any"
string sre_constants.ANY_ALL = "any_all"
string sre_constants.ASSERT = "assert"
string sre_constants.ASSERT_NOT = "assert_not"
string sre_constants.AT = "at"
string sre_constants.AT_BEGINNING = "at_beginning"
string sre_constants.AT_BEGINNING_LINE = "at_beginning_line"
string sre_constants.AT_BEGINNING_STRING = "at_beginning_string"
string sre_constants.AT_BOUNDARY = "at_boundary"
string sre_constants.AT_END = "at_end"
string sre_constants.AT_END_LINE = "at_end_line"
string sre_constants.AT_END_STRING = "at_end_string"
string sre_constants.AT_LOC_BOUNDARY = "at_loc_boundary"
string sre_constants.AT_LOC_NON_BOUNDARY = "at_loc_non_boundary"
dictionary sre_constants.AT_LOCALE
Initial value:
1 = {
2  AT_BOUNDARY: AT_LOC_BOUNDARY,
3  AT_NON_BOUNDARY: AT_LOC_NON_BOUNDARY
4 }
dictionary sre_constants.AT_MULTILINE
Initial value:
1 = {
2  AT_BEGINNING: AT_BEGINNING_LINE,
3  AT_END: AT_END_LINE
4 }
string sre_constants.AT_NON_BOUNDARY = "at_non_boundary"
string sre_constants.AT_UNI_BOUNDARY = "at_uni_boundary"
string sre_constants.AT_UNI_NON_BOUNDARY = "at_uni_non_boundary"
dictionary sre_constants.AT_UNICODE
Initial value:
1 = {
2  AT_BOUNDARY: AT_UNI_BOUNDARY,
3  AT_NON_BOUNDARY: AT_UNI_NON_BOUNDARY
4 }
tuple sre_constants.ATCODES
Initial value:
1 = [
2  AT_BEGINNING, AT_BEGINNING_LINE, AT_BEGINNING_STRING, AT_BOUNDARY,
3  AT_NON_BOUNDARY, AT_END, AT_END_LINE, AT_END_STRING,
4  AT_LOC_BOUNDARY, AT_LOC_NON_BOUNDARY, AT_UNI_BOUNDARY,
5  AT_UNI_NON_BOUNDARY
6 ]
string sre_constants.BIGCHARSET = "bigcharset"
string sre_constants.BRANCH = "branch"
string sre_constants.CALL = "call"
string sre_constants.CATEGORY = "category"
string sre_constants.CATEGORY_DIGIT = "category_digit"
string sre_constants.CATEGORY_LINEBREAK = "category_linebreak"
string sre_constants.CATEGORY_LOC_NOT_WORD = "category_loc_not_word"
string sre_constants.CATEGORY_LOC_WORD = "category_loc_word"
string sre_constants.CATEGORY_NOT_DIGIT = "category_not_digit"
string sre_constants.CATEGORY_NOT_LINEBREAK = "category_not_linebreak"
string sre_constants.CATEGORY_NOT_SPACE = "category_not_space"
string sre_constants.CATEGORY_NOT_WORD = "category_not_word"
string sre_constants.CATEGORY_SPACE = "category_space"
string sre_constants.CATEGORY_UNI_DIGIT = "category_uni_digit"
string sre_constants.CATEGORY_UNI_LINEBREAK = "category_uni_linebreak"
string sre_constants.CATEGORY_UNI_NOT_DIGIT = "category_uni_not_digit"
string sre_constants.CATEGORY_UNI_NOT_LINEBREAK = "category_uni_not_linebreak"
string sre_constants.CATEGORY_UNI_NOT_SPACE = "category_uni_not_space"
string sre_constants.CATEGORY_UNI_NOT_WORD = "category_uni_not_word"
string sre_constants.CATEGORY_UNI_SPACE = "category_uni_space"
string sre_constants.CATEGORY_UNI_WORD = "category_uni_word"
string sre_constants.CATEGORY_WORD = "category_word"
dictionary sre_constants.CH_LOCALE
Initial value:
1 = {
2  CATEGORY_DIGIT: CATEGORY_DIGIT,
3  CATEGORY_NOT_DIGIT: CATEGORY_NOT_DIGIT,
4  CATEGORY_SPACE: CATEGORY_SPACE,
5  CATEGORY_NOT_SPACE: CATEGORY_NOT_SPACE,
6  CATEGORY_WORD: CATEGORY_LOC_WORD,
7  CATEGORY_NOT_WORD: CATEGORY_LOC_NOT_WORD,
8  CATEGORY_LINEBREAK: CATEGORY_LINEBREAK,
9  CATEGORY_NOT_LINEBREAK: CATEGORY_NOT_LINEBREAK
10 }
dictionary sre_constants.CH_UNICODE
Initial value:
1 = {
2  CATEGORY_DIGIT: CATEGORY_UNI_DIGIT,
3  CATEGORY_NOT_DIGIT: CATEGORY_UNI_NOT_DIGIT,
4  CATEGORY_SPACE: CATEGORY_UNI_SPACE,
5  CATEGORY_NOT_SPACE: CATEGORY_UNI_NOT_SPACE,
6  CATEGORY_WORD: CATEGORY_UNI_WORD,
7  CATEGORY_NOT_WORD: CATEGORY_UNI_NOT_WORD,
8  CATEGORY_LINEBREAK: CATEGORY_UNI_LINEBREAK,
9  CATEGORY_NOT_LINEBREAK: CATEGORY_UNI_NOT_LINEBREAK
10 }
string sre_constants.CHARSET = "charset"
tuple sre_constants.CHCODES
Initial value:
1 = [
2  CATEGORY_DIGIT, CATEGORY_NOT_DIGIT, CATEGORY_SPACE,
3  CATEGORY_NOT_SPACE, CATEGORY_WORD, CATEGORY_NOT_WORD,
4  CATEGORY_LINEBREAK, CATEGORY_NOT_LINEBREAK, CATEGORY_LOC_WORD,
5  CATEGORY_LOC_NOT_WORD, CATEGORY_UNI_DIGIT, CATEGORY_UNI_NOT_DIGIT,
6  CATEGORY_UNI_SPACE, CATEGORY_UNI_NOT_SPACE, CATEGORY_UNI_WORD,
7  CATEGORY_UNI_NOT_WORD, CATEGORY_UNI_LINEBREAK,
8  CATEGORY_UNI_NOT_LINEBREAK
9 ]
tuple sre_constants.f = open("sre_constants.h", "w")
string sre_constants.FAILURE = "failure"
string sre_constants.GROUPREF = "groupref"
string sre_constants.GROUPREF_EXISTS = "groupref_exists"
string sre_constants.GROUPREF_IGNORE = "groupref_ignore"
string sre_constants.IN = "in"
string sre_constants.IN_IGNORE = "in_ignore"
string sre_constants.INFO = "info"
string sre_constants.JUMP = "jump"
string sre_constants.LITERAL = "literal"
string sre_constants.LITERAL_IGNORE = "literal_ignore"
int sre_constants.MAGIC = 20031017
string sre_constants.MARK = "mark"
string sre_constants.MAX_REPEAT = "max_repeat"
string sre_constants.MAX_UNTIL = "max_until"
int sre_constants.MAXREPEAT = 65535
string sre_constants.MIN_REPEAT = "min_repeat"
string sre_constants.MIN_REPEAT_ONE = "min_repeat_one"
string sre_constants.MIN_UNTIL = "min_until"
string sre_constants.NEGATE = "negate"
string sre_constants.NOT_LITERAL = "not_literal"
string sre_constants.NOT_LITERAL_IGNORE = "not_literal_ignore"
dictionary sre_constants.OP_IGNORE
Initial value:
1 = {
2  GROUPREF: GROUPREF_IGNORE,
3  IN: IN_IGNORE,
4  LITERAL: LITERAL_IGNORE,
5  NOT_LITERAL: NOT_LITERAL_IGNORE
6 }
tuple sre_constants.OPCODES
Initial value:
1 = [
2 
3  # failure=0 success=1 (just because it looks better that way :-)
4  FAILURE, SUCCESS,
5 
6  ANY, ANY_ALL,
7  ASSERT, ASSERT_NOT,
8  AT,
9  BRANCH,
10  CALL,
11  CATEGORY,
12  CHARSET, BIGCHARSET,
13  GROUPREF, GROUPREF_EXISTS, GROUPREF_IGNORE,
14  IN, IN_IGNORE,
15  INFO,
16  JUMP,
17  LITERAL, LITERAL_IGNORE,
18  MARK,
19  MAX_UNTIL,
20  MIN_UNTIL,
21  NOT_LITERAL, NOT_LITERAL_IGNORE,
22  NEGATE,
23  RANGE,
24  REPEAT,
25  REPEAT_ONE,
26  SUBPATTERN,
27  MIN_REPEAT_ONE
28 
29 ]
string sre_constants.RANGE = "range"
string sre_constants.REPEAT = "repeat"
string sre_constants.REPEAT_ONE = "repeat_one"
int sre_constants.SRE_FLAG_DEBUG = 128
int sre_constants.SRE_FLAG_DOTALL = 16
int sre_constants.SRE_FLAG_IGNORECASE = 2
int sre_constants.SRE_FLAG_LOCALE = 4
int sre_constants.SRE_FLAG_MULTILINE = 8
int sre_constants.SRE_FLAG_TEMPLATE = 1
int sre_constants.SRE_FLAG_UNICODE = 32
int sre_constants.SRE_FLAG_VERBOSE = 64
int sre_constants.SRE_INFO_CHARSET = 4
int sre_constants.SRE_INFO_LITERAL = 2
int sre_constants.SRE_INFO_PREFIX = 1
string sre_constants.SUBPATTERN = "subpattern"
string sre_constants.SUCCESS = "success"

Copyright 2014 Google Inc. All rights reserved.