Skip to content

Commit d1fc014

Browse files
committed
doc-translate: partly translated
1 parent 5db9ab7 commit d1fc014

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

dev/src/docs/reference_content.js

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ o.kids = [
5353
},
5454
{
5555
id:"range",
56-
tip:"匹配ASCII码从{{getChar(prev)}}到{{getChar(next)}}的字符 (char code {{prev.code}} to {{next.code}}). {{getInsensitive()}}",
56+
tip:"匹配ASCII码从{{getChar(prev)}}到{{getChar(next)}}的字符 (ASCII码从 {{prev.code}} {{next.code}}) {{getInsensitive()}}",
5757
example:["[g-s]","abcdefghijklmnopqrstuvwxyz"],
5858
desc: "匹配ASCII码在指定范围区间的字符。",
5959
token:"[A-Z]"
@@ -70,7 +70,7 @@ o.kids = [
7070
id:"dot",
7171
tip:"匹配任何字符{{getDotAll()}}.",
7272
desc:"匹配除换行符之外的任何字符。",
73-
ext:" Equivalent to <code>[^\\n\\r]</code>.",
73+
ext:" 等价于 <code>[^\\n\\r]</code>.",
7474
example:[".", "glib jocks vex dwarves!"],
7575
token:"."
7676
},
@@ -91,30 +91,30 @@ o.kids = [
9191
{
9292
id:"word",
9393
desc:"匹配字母、数字、下划线。",
94-
ext:" Only matches low-ascii characters (no accented or non-roman characters). Equivalent to <code>[A-Za-z0-9_]</code>",
94+
ext:" 只匹配小ASCII码的字符(无声调字母或非罗马英文字符)。 等价于 <code>[A-Za-z0-9_]</code>",
9595
example:["\\w","bonjour, mon fr\u00E8re"],
9696
token:"\\w"
9797
},
9898
{
9999
id:"notword",
100100
label: "非词匹配",
101101
desc:"匹配非字母、数字、下划线。",
102-
ext:" Equivalent to <code>[^A-Za-z0-9_]</code>",
102+
ext:" 等价于 <code>[^A-Za-z0-9_]</code>",
103103
example:["\\W","bonjour, mon fr\u00E8re"],
104104
token:"\\W"
105105
},
106106
{
107107
id:"digit",
108108
desc:"匹配任意数字 (0-9).",
109-
ext:" Equivalent to <code>[0-9]</code>.",
109+
ext:" 等价于 <code>[0-9]</code>.",
110110
example:["\\d","+1-(444)-555-1234"],
111111
token:"\\d"
112112
},
113113
{
114114
id:"notdigit",
115115
label: "非数字",
116116
desc:"匹配任意非数字字符 (0-9).",
117-
ext:" Equivalent to <code>[^0-9]</code>.",
117+
ext:" 等价于 <code>[^0-9]</code>.",
118118
example:["\\D","+1-(444)-555-1234"],
119119
token:"\\D"
120120
},
@@ -133,26 +133,26 @@ o.kids = [
133133
},
134134
{
135135
id:"hwhitespace",
136-
label:"horizontal whitespace",
137-
desc:"Matches any horizontal whitespace character (spaces, tabs).",
136+
label:"横向空白字符",
137+
desc:"匹配任意横向空白字符(空格、制表符)。",
138138
token:"\\h"
139139
},
140140
{
141141
id:"nothwhitespace",
142-
label: "not horizontal whitespace",
143-
desc:"Matches any character that is not a horizontal whitespace character (spaces, tabs).",
142+
label: "非横向空白字符",
143+
desc:"匹配任意非横向的空白字符(空格、制表符)。",
144144
token:"\\H"
145145
},
146146
{
147147
id:"vwhitespace",
148-
label:"vertical whitespace",
149-
desc:"Matches any vertical whitespace character (line breaks).",
148+
label:"纵向空白字符",
149+
desc:"匹配任意纵向的空白字符(换行符)。",
150150
token:"\\v"
151151
},
152152
{
153153
id:"notvwhitespace",
154-
label: "not vertical whitespace",
155-
desc:"Matches any character that is not a vertical whitespace character (line breaks).",
154+
label: "非纵向空白字符",
155+
desc:"匹配任意非纵向空白字符(换行符)。",
156156
token:"\\V"
157157
},
158158
{
@@ -165,41 +165,41 @@ o.kids = [
165165
id:"notlinebreak",
166166
label:"非换行符",
167167
desc:"匹配任意非换行符。",
168-
ext:" Similar to dot (<code>.</code>) but is unaffected by the dotall flag (<code>s</code>).",
168+
ext:" 于点相似(<code>.</code>)但是不会受dotall标识(<code>s</code>)的影响。",
169169
token:"\\N"
170170
},
171171
{
172172
id:"unicodecat",
173-
tip:"Matches any character in the '{{getUniCat()}}' unicode category.",
174-
label:"unicode category",
175-
desc:"Matches a character in the specified unicode category. For example, <code>\\p{Ll}</code> will match any lowercase letter.",
176-
ext:"<p>For a list of categories, see the <a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE spec</a>.</p>"+
173+
tip:"匹配在 '{{getUniCat()}}' unicode分类的任意字符。",
174+
label:"unicode分类",
175+
desc:"匹配在指定Unicode分类里的任意字符。例如,<code>\\p{Ll}</code> 会匹配任意小写字符。",
176+
ext:"<p>Unicode分类的列表见<a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE 规范</a></p>"+
177177
"<p>可以用不同语法使用这个特性:</p><p><code>\\p{L}</code> <code>\\pL</code></p>",
178178
token:"\\p{L}"
179179
},
180180
{
181181
id:"notunicodecat",
182-
tip:"Matches any character that is not in the '{{getUniCat()}}' unicode category.",
183-
label:"not unicode category",
184-
desc:"Matches any character that is not in the specified unicode category.",
185-
ext:"<p>For a list of categories, see the <a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE spec</a>.</p>"+
182+
tip:"匹配任意不在 '{{getUniCat()}}' unicode分类里的字符。",
183+
label:"非uicode分类",
184+
desc:"匹配任意不在指定Unicode分类里的字符。",
185+
ext:"<p>Unicode分类的列表见<a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE 规范</a></p>"+
186186
"<p>可以用不同语法使用这个特性:</p><p><code>\\P{L}</code> <code>\\p{^L}</code> <code>\\PL</code></p>",
187187
token:"\\P{L}"
188188
},
189189
{
190190
id:"unicodescript",
191-
tip:"Matches any character in the '{{value}}' unicode script.",
192-
label:"unicode script",
193-
desc:"Matches any character in the specified unicode script. For example, <code>\\p{Arabic}</code> will match characters in the Arabic script.",
194-
ext:"<p>For a list of scripts, see the <a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE spec</a>.</p>",
191+
tip:"匹配任意在 '{{value}}' 里的Unicode脚本。",
192+
label:"unicode脚本",
193+
desc:"匹配任意在指定Unicode脚本里的字符。例如,<code>\\p{Arabic}</code> 会匹配任意阿拉伯脚本。",
194+
ext:"<p>Unicode脚本的列表见<a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE 规范</a></p>",
195195
token:"\\p{Han}"
196196
},
197197
{
198198
id:"notunicodescript",
199-
tip:"Matches any character that is not in the '{{value}}' unicode script.",
200-
label:"not unicode script",
201-
desc:"Matches any character that is not in the specified unicode script.",
202-
ext:"<p>For a list of scripts, see the <a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE spec</a>.</p>"+
199+
tip:"匹配任意不在 '{{value}}' 里的Unicode脚本。",
200+
label:"非unicode脚本",
201+
desc:"匹配任意不在指定Unicode脚本里的字符。",
202+
ext:"<p>Unicode脚本的列表见<a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE 规范</a></p>"+
203203
"<p>可以用不同语法使用这个特性:</p><p><code>\\P{Han}</code> <code>\\p{^Han}</code>",
204204
token:"\\P{Han}"
205205
}
@@ -209,66 +209,66 @@ o.kids = [
209209
{
210210
label:"Anchors",
211211
id:"anchors",
212-
desc:"Anchors are unique in that they match a position within a string, not a character.",
212+
desc:"锚定类比较特殊,它匹配位置,而不是字符。",
213213
kids:[
214214
{
215215
id:"bos",
216216
label:"字符串起始",
217217
desc:"匹配字符串的开头",
218-
ext:" Unlike <code>^</code>, this is unaffected by the multiline flag (<code>m</code>). This matches a position, not a character.",
218+
ext:" 不像 <code>^</code>,这个不会受多行标识 (<code>m</code>)的影响。这个会匹配到位置,而不是字符。",
219219
token:"\\A"
220220
},
221221
{
222222
id:"eos",
223223
label:"字符串结尾",
224224
desc:"匹配字符串的结尾",
225-
ext:" Unlike <code>$</code>, this is unaffected by the multiline flag (<code>m</code>). This matches a position, not a character.",
225+
ext:" 不像 <code>$</code>,这个不会受多行标识 (<code>m</code>)的影响。这个会匹配到位置,而不是字符。",
226226
token:"\\Z"
227227
},
228228
{
229229
id:"abseos",
230230
label:"严格的字符串结尾",
231231
desc:"匹配字符串结尾. 不像 <code>$</code> 或 <code>\\Z</code>, 它不允许尾随换行符。",
232-
ext:" This is unaffected by the multiline flag (<code>m</code>). This matches a position, not a character.",
232+
ext:" 这个不会受多行标识 (<code>m</code>)的影响。这个会匹配到位置,而不是字符。",
233233
token:"\\z"
234234
},
235235
{
236236
id:"bof",
237237
label:"开头",
238238
desc:"匹配字符串开头,或者当使用多行标志(<code>m</code>)时,匹配一行的开头。",
239-
ext:" This matches a position, not a character.",
239+
ext:" 这个会匹配到位置,而不是字符。",
240240
example:["^\\w+","she sells seashells"],
241241
token:"^"
242242
},
243243
{
244244
id:"eof",
245245
label:"结尾",
246246
desc:"匹配字符串结尾,或者当使用多行标志(<code>m</code>)时,匹配一行的结尾。",
247-
ext:" This matches a position, not a character.",
247+
ext:" 这个会匹配到位置,而不是字符。",
248248
example:["\\w+$","she sells seashells"],
249249
token:"$"
250250
},
251251
{
252252
id:"wordboundary",
253253
label:"词边界",
254254
desc:"匹配一个单词边界,也就是指单词和空格间的位置。",
255-
ext:" See the word character class (<code>\w</code>) for more info.",
255+
ext:" 详情见单词字符类(<code>\w</code>)。",
256256
example:["s\\b","she sells seashells"],
257257
token:"\\b"
258258
},
259259
{
260260
id:"notwordboundary",
261261
label: "非词边界",
262262
desc:"匹配非单词边界。",
263-
ext:" This matches a position, not a character.",
263+
ext:" 这个会匹配到位置,而不是字符。",
264264
example:["s\\B","she sells seashells"],
265265
token:"\\B"
266266
},
267267
{
268268
id:"prevmatchend",
269269
label: "前匹配项结尾",
270270
desc:"匹配前一个匹配的结束位置。",
271-
ext:" This matches a position, not a character.",
271+
ext:" 这个会匹配到位置,而不是字符。",
272272
token:"\\G"
273273
}
274274
]
@@ -336,7 +336,7 @@ o.kids = [
336336
label:"转义序列",
337337
tip: "匹配文字字符串 '{{value}}'.",
338338
desc:"所有在<code>\\Q</code>和<code>\\E</code>之间的字符为文字字符串。如果<code>\\E</code>被省略, 它将继续到表达式结尾。",
339-
ext:" For example, the expression <code>/\\Q(?.)\\E/</code> will match the string <code>(?.)</code>.",
339+
ext:" 例如,表达式 <code>/\\Q(?.)\\E/</code> 会匹配到字符 <code>(?.)</code>",
340340
token:"\\Q...\\E"
341341
}
342342
]

0 commit comments

Comments
 (0)