Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
8876d9e6
Commit
8876d9e6
authored
Jan 31, 2016
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix regex doc [ci skip]
parent
4daade92
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
schema.md
doc/schema.md
+1
-1
schema.zh-cn.md
doc/schema.zh-cn.md
+1
-1
regex.h
include/rapidjson/internal/regex.h
+4
-0
No files found.
doc/schema.md
View file @
8876d9e6
...
...
@@ -180,7 +180,7 @@ Besides, the `format` schema keyword for string values is ignored, since it is n
The schema keyword
`pattern`
and
`patternProperties`
uses regular expression to match the required pattern.
RapidJSON implemented a simple
D
FA regular expression engine, which is used by default. It supports the following syntax.
RapidJSON implemented a simple
N
FA regular expression engine, which is used by default. It supports the following syntax.
|Syntax|Description|
|------|-----------|
...
...
doc/schema.zh-cn.md
View file @
8876d9e6
...
...
@@ -180,7 +180,7 @@ RapidJSON 通过了 [JSON Schema Test Suite](https://github.com/json-schema/JSON
`pattern`
及
`patternProperties`
这两个 schema 关键字使用了正则表达式去匹配所需的模式。
RapidJSON 实现了一个简单的
D
FA 正则表达式引擎,并预设使用。它支持以下语法。
RapidJSON 实现了一个简单的
N
FA 正则表达式引擎,并预设使用。它支持以下语法。
|语法|描述|
|------|-----------|
...
...
include/rapidjson/internal/regex.h
View file @
8876d9e6
...
...
@@ -70,6 +70,10 @@ static const SizeType kRegexInvalidRange = ~SizeType(0);
- \c \\r Carriage return (U+000D)
- \c \\t Tab (U+0009)
- \c \\v Vertical tab (U+000B)
\note This is a Thompson NFA engine, implemented with reference to
Cox, Russ. "Regular Expression Matching Can Be Simple And Fast (but is slow in Java, Perl, PHP, Python, Ruby,...).",
https://swtch.com/~rsc/regexp/regexp1.html
*/
template
<
typename
Encoding
,
typename
Allocator
=
CrtAllocator
>
class
GenericRegex
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment