xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Pattern类 参考
Pattern 的协作图:
Collaboration graph

Public 成员函数

静态 Public 成员函数

静态 Public 属性

详细描述

Pattern类表示一个正则表达式模式,提供编译、匹配和测试正则表达式的方法。 它包含多个用于控制正则表达式匹配行为的常量。

在文件 Pattern.x5 行定义.

构造及析构函数说明

◆ Pattern() [1/2]

Pattern ( String  )

◆ Pattern() [2/2]

Pattern ( String  ,
int   
)

成员函数说明

◆ Compile() [1/2]

static final Pattern Compile ( String  ) throws IllegalArgumentException
static

◆ Compile() [2/2]

static final Pattern Compile ( String  ,
int   
) throws IllegalArgumentException
static

◆ finalize()

void finalize ( )

◆ match()

int match ( String  ,
  Result,
int  ,
int  ,
int   
) throws IndexOutOfBoundsException, IllegalArgumentException

◆ matchAll()

Result matchAll ( String  ,
int  ,
int  ,
int   
) throws IndexOutOfBoundsException, IllegalArgumentException

◆ test()

static final bool test ( String  ,
  String,
int  ,
bool   
) throws IllegalArgumentException
static

结构体成员变量说明

◆ ANCHORED

const int ANCHORED
static

在文件 Pattern.x12 行定义.

◆ AUTO_CALLOUT

const int AUTO_CALLOUT
static

在文件 Pattern.x26 行定义.

◆ BSR_ANYCRLF

const int BSR_ANYCRLF
static

在文件 Pattern.x40 行定义.

◆ BSR_UNICODE

const int BSR_UNICODE
static

在文件 Pattern.x41 行定义.

◆ CASELESS

const int CASELESS
static

在文件 Pattern.x8 行定义.

◆ DFA_RESTART

const int DFA_RESTART
static

在文件 Pattern.x32 行定义.

◆ DFA_SHORTEST

const int DFA_SHORTEST
static

在文件 Pattern.x30 行定义.

◆ DOLLAR_ENDONLY

const int DOLLAR_ENDONLY
static

在文件 Pattern.x13 行定义.

◆ DOTALL

const int DOTALL
static

在文件 Pattern.x10 行定义.

◆ DUPNAMES

const int DUPNAMES
static

在文件 Pattern.x34 行定义.

◆ EXTENDED

const int EXTENDED
static

在文件 Pattern.x11 行定义.

◆ EXTRA

const int EXTRA
static

在文件 Pattern.x14 行定义.

◆ FIRSTLINE

const int FIRSTLINE
static

在文件 Pattern.x33 行定义.

◆ JAVASCRIPT_COMPAT

const int JAVASCRIPT_COMPAT
static

在文件 Pattern.x42 行定义.

◆ MULTILINE

const int MULTILINE
static

在文件 Pattern.x9 行定义.

◆ NEVER_UTF

const int NEVER_UTF
static

在文件 Pattern.x29 行定义.

◆ NEWLINE_ANY

const int NEWLINE_ANY
static

在文件 Pattern.x38 行定义.

◆ NEWLINE_ANYCRLF

const int NEWLINE_ANYCRLF
static

在文件 Pattern.x39 行定义.

◆ NEWLINE_CR

const int NEWLINE_CR
static

在文件 Pattern.x35 行定义.

◆ NEWLINE_CRLF

const int NEWLINE_CRLF
static

在文件 Pattern.x37 行定义.

◆ NEWLINE_LF

const int NEWLINE_LF
static

在文件 Pattern.x36 行定义.

◆ NO_AUTO_CAPTURE

const int NO_AUTO_CAPTURE
static

在文件 Pattern.x22 行定义.

◆ NO_AUTO_POSSESS

const int NO_AUTO_POSSESS
static

在文件 Pattern.x31 行定义.

◆ NO_START_OPTIMISE

const int NO_START_OPTIMISE
static

在文件 Pattern.x44 行定义.

◆ NO_START_OPTIMIZE

const int NO_START_OPTIMIZE
static

在文件 Pattern.x43 行定义.

◆ NO_UTF16_CHECK

const int NO_UTF16_CHECK
static

在文件 Pattern.x24 行定义.

◆ NO_UTF32_CHECK

const int NO_UTF32_CHECK
static

在文件 Pattern.x25 行定义.

◆ NO_UTF8_CHECK

const int NO_UTF8_CHECK
static

在文件 Pattern.x23 行定义.

◆ NOTBOL

const int NOTBOL
static

在文件 Pattern.x15 行定义.

◆ NOTEMPTY

const int NOTEMPTY
static

在文件 Pattern.x18 行定义.

◆ NOTEMPTY_ATSTART

const int NOTEMPTY_ATSTART
static

在文件 Pattern.x46 行定义.

◆ NOTEOL

const int NOTEOL
static

在文件 Pattern.x16 行定义.

◆ PARTIAL

const int PARTIAL
static

在文件 Pattern.x28 行定义.

◆ PARTIAL_HARD

const int PARTIAL_HARD
static

在文件 Pattern.x45 行定义.

◆ PARTIAL_SOFT

const int PARTIAL_SOFT
static

在文件 Pattern.x27 行定义.

◆ UCP

const int UCP
static

在文件 Pattern.x47 行定义.

◆ UNGREEDY

const int UNGREEDY
static

在文件 Pattern.x17 行定义.

◆ UTF16

const int UTF16
static

在文件 Pattern.x20 行定义.

◆ UTF32

const int UTF32
static

在文件 Pattern.x21 行定义.

◆ UTF8

const int UTF8
static

在文件 Pattern.x19 行定义.