Documentation ¶
Index ¶
- Constants
- func FieldCaseTo(field string) string
- func GetBetween(field string, val string, m []string, spliter string) (string, bool)
- func GetIn(field string, val string, m []string) (string, bool)
- func ParseElExpr(field string, val string) string
- func ReplaceInjectChar(value string) string
- func TrimInjectChar(value string) string
- type ConditionInfo
- type ExprInfo
Constants ¶
View Source
const FIELD_REGEX = "[\\w\\p{Han}][\\w\\d\\p{Han}]*"
View Source
const MATCH_ADVANCE_SEARCH = "" /* 197-byte string literal not displayed */
View Source
const MATCH_ADVANCE_SEARCH_SUB_GROUP = "(([\\w\\$][\\w\\d_]*)\\s*( (CONTAINS|BEGIN|END) |=|>|<|>=|<=)\\s*([^,\\{\\}]+))"
View Source
const MATCH_DATETIME2_REGION = "^\\s*\\$\\{\\s*(((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})\\/(((0[13578]|1[02])\\/(0[1-9]|[12][0-9]|3[01]))|" +
"((0[469]|11)\\/(0[1-9]|[12][0-9]|30))|(02\\/(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|" +
"((0[48]|[2468][048]|[3579][26])00))\\/02\\/29))\\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])\\s*\\-\\s*((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})\\/(((0[13578]|1[02])\\/(0[1-9]|[12][0-9]|3[01]))|" +
"((0[469]|11)\\/(0[1-9]|[12][0-9]|30))|(02\\/(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|" +
"((0[48]|[2468][048]|[3579][26])00))\\/02\\/29))\\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]))\\s*\\}$"
**
- 格式:${yyyy/MM/dd HH:mm:ss - yyyy/MM/dd HH:mm:ss, ...}
View Source
const MATCH_DATETIME_REGION = "^\\s*\\$\\{\\s*(((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})\\-(((0[13578]|1[02])\\-(0[1-9]|[12][0-9]|3[01]))|" +
"((0[469]|11)\\-(0[1-9]|[12][0-9]|30))|(02\\-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|" +
"((0[48]|[2468][048]|[3579][26])00))\\-02\\-29))\\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])\\s*\\~\\s*((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})\\-(((0[13578]|1[02])\\-(0[1-9]|[12][0-9]|3[01]))|" +
"((0[469]|11)\\-(0[1-9]|[12][0-9]|30))|(02\\-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|" +
"((0[48]|[2468][048]|[3579][26])00))\\-02\\-29))\\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]))\\s*\\}$"
**
- 格式:${yyyy-MM-dd HH:mm:ss ~ yyyy-MM-dd HH:mm:ss, ...}
View Source
const MATCH_DATETIME_REGION_NOT = "^\\s*\\$\\{\\s*(((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})\\-(((0[13578]|1[02])\\-(0[1-9]|[12][0-9]|3[01]))|" +
"((0[469]|11)\\-(0[1-9]|[12][0-9]|30))|(02\\-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|" +
"((0[48]|[2468][048]|[3579][26])00))\\-02\\-29))\\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])\\s*\\!\\~\\s*((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})\\-(((0[13578]|1[02])\\-(0[1-9]|[12][0-9]|3[01]))|" +
"((0[469]|11)\\-(0[1-9]|[12][0-9]|30))|(02\\-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|" +
"((0[48]|[2468][048]|[3579][26])00))\\-02\\-29))\\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]))\\s*\\}$"
**
- 格式:${yyyy-MM-dd HH:mm:ss !~ yyyy-MM-dd HH:mm:ss, ...}
View Source
const MATCH_EL_IN = "^\\s*\\$\\{(\\d+(,\\s*\\d+)*)\\}\\s*$"
**
- 格式:${1,2,3,4,5...}
View Source
const MATCH_EL_REGION = "^\\s*\\$\\{((\\d+\\-\\d+)(,\\s*\\d+\\-\\d+\\s*)*)\\}\\s*$"
**
- 格式:${1-5, 7-9, ...}
Variables ¶
This section is empty.
Functions ¶
func FieldCaseTo ¶
func GetBetween ¶
func ParseElExpr ¶
func ReplaceInjectChar ¶
func TrimInjectChar ¶
Types ¶
type ConditionInfo ¶
Click to show internal directories.
Click to hide internal directories.