OSDN Git Service

(split) LDP: Update POT and ja.po to LDP v3.50.
[linuxjm/LDP_man-pages.git] / po4a / regexp / po / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "POT-Creation-Date: 2013-03-22 01:06+0900\n"
10 "PO-Revision-Date: 2012-05-28 07:45+0900\n"
11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Language-Team: LANGUAGE <LL@li.org>\n"
13 "Language: \n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 #. type: TH
19 #: build/C/man3/fnmatch.3:28
20 #, no-wrap
21 msgid "FNMATCH"
22 msgstr "FNMATCH"
23
24 #. type: TH
25 #: build/C/man3/fnmatch.3:28
26 #, no-wrap
27 msgid "2000-10-15"
28 msgstr "2000-10-15"
29
30 #. type: TH
31 #: build/C/man3/fnmatch.3:28 build/C/man3/glob.3:34 build/C/man3/re_comp.3:27
32 #: build/C/man3/regex.3:34
33 #, no-wrap
34 msgid "GNU"
35 msgstr "GNU"
36
37 #. type: TH
38 #: build/C/man3/fnmatch.3:28 build/C/man3/glob.3:34 build/C/man7/glob.7:26
39 #: build/C/man3/re_comp.3:27 build/C/man3/regex.3:34 build/C/man7/regex.7:37
40 #: build/C/man3/wordexp.3:24
41 #, no-wrap
42 msgid "Linux Programmer's Manual"
43 msgstr "Linux Programmer's Manual"
44
45 #. type: SH
46 #: build/C/man3/fnmatch.3:29 build/C/man3/glob.3:35 build/C/man7/glob.7:27
47 #: build/C/man3/re_comp.3:28 build/C/man3/regex.3:35 build/C/man7/regex.7:38
48 #: build/C/man3/wordexp.3:25
49 #, no-wrap
50 msgid "NAME"
51 msgstr "名前"
52
53 #. type: Plain text
54 #: build/C/man3/fnmatch.3:31
55 msgid "fnmatch - match filename or pathname"
56 msgstr "fnmatch - ファイル名またはパス名へのマッチを行う"
57
58 #. type: SH
59 #: build/C/man3/fnmatch.3:31 build/C/man3/glob.3:37 build/C/man3/re_comp.3:30
60 #: build/C/man3/regex.3:37 build/C/man3/wordexp.3:27
61 #, no-wrap
62 msgid "SYNOPSIS"
63 msgstr "書式"
64
65 #. type: Plain text
66 #: build/C/man3/fnmatch.3:34
67 #, no-wrap
68 msgid "B<#include E<lt>fnmatch.hE<gt>>\n"
69 msgstr "B<#include E<lt>fnmatch.hE<gt>>\n"
70
71 #. type: Plain text
72 #: build/C/man3/fnmatch.3:36
73 #, no-wrap
74 msgid "B<int fnmatch(const char *>I<pattern>B<, const char *>I<string>B<, int >I<flags>B<);>\n"
75 msgstr "B<int fnmatch(const char *>I<pattern>B<, const char *>I<string>B<, int >I<flags>B<);>\n"
76
77 #. type: SH
78 #: build/C/man3/fnmatch.3:37 build/C/man3/glob.3:49 build/C/man7/glob.7:29
79 #: build/C/man3/re_comp.3:40 build/C/man3/regex.3:53 build/C/man7/regex.7:40
80 #: build/C/man3/wordexp.3:42
81 #, no-wrap
82 msgid "DESCRIPTION"
83 msgstr "説明"
84
85 #. type: Plain text
86 #: build/C/man3/fnmatch.3:45
87 msgid ""
88 "The B<fnmatch>()  function checks whether the I<string> argument matches the "
89 "I<pattern> argument, which is a shell wildcard pattern."
90 msgstr ""
91 "B<fnmatch>()  関数は I<strings> 引き数が I<pattern> 引き数にマッチするかを"
92 "チェックする。 I<pattern> にはシェルのワイルドカードパターンを与える。"
93
94 #. type: Plain text
95 #: build/C/man3/fnmatch.3:50
96 msgid ""
97 "The I<flags> argument modifies the behavior; it is the bitwise OR of zero or "
98 "more of the following flags:"
99 msgstr ""
100 "I<flags> 引き数により動作を変更できる。 I<flags> は以下のフラグのビット毎の "
101 "OR で指定する。"
102
103 #. type: TP
104 #: build/C/man3/fnmatch.3:50
105 #, no-wrap
106 msgid "B<FNM_NOESCAPE>"
107 msgstr "B<FNM_NOESCAPE>"
108
109 #. type: Plain text
110 #: build/C/man3/fnmatch.3:54
111 msgid ""
112 "If this flag is set, treat backslash as an ordinary character, instead of an "
113 "escape character."
114 msgstr ""
115 "このフラグがセットされていると、バックスラッシュ (\\e) をエスケープ文字 では"
116 "なく通常の文字として扱う。"
117
118 #. type: TP
119 #: build/C/man3/fnmatch.3:54
120 #, no-wrap
121 msgid "B<FNM_PATHNAME>"
122 msgstr "B<FNM_PATHNAME>"
123
124 #. type: Plain text
125 #: build/C/man3/fnmatch.3:62
126 msgid ""
127 "If this flag is set, match a slash in I<string> only with a slash in "
128 "I<pattern> and not by an asterisk (*) or a question mark (?) metacharacter, "
129 "nor by a bracket expression ([]) containing a slash."
130 msgstr ""
131 "このフラグがセットされていると、 I<string> 中のスラッシュ (/) を I<pattern> "
132 "にあるスラッシュそのものにだけマッチさせ、 アスタリスク (*) や疑問符 (?) のメ"
133 "タキャラクタや、 スラッシュを含むブラケット表現 ([]) にはマッチさせない。"
134
135 #. type: TP
136 #: build/C/man3/fnmatch.3:62
137 #, no-wrap
138 msgid "B<FNM_PERIOD>"
139 msgstr "B<FNM_PERIOD>"
140
141 #. type: Plain text
142 #: build/C/man3/fnmatch.3:73
143 msgid ""
144 "If this flag is set, a leading period in I<string> has to be matched exactly "
145 "by a period in I<pattern>.  A period is considered to be leading if it is "
146 "the first character in I<string>, or if both B<FNM_PATHNAME> is set and the "
147 "period immediately follows a slash."
148 msgstr ""
149 "このフラグがセットされていると、 I<string> の先頭ピリオド (leading period) "
150 "は I<pattern> 中のピリオドそのものにしかマッチしない。先頭ピリオドとは、 "
151 "I<string> の最初の文字位置にあるピリオドのことである。ただし B<FNM_PATHNAME> "
152 "フラグが同時にセットされている場合には、スラッシュの直後に続くピリオド も先頭"
153 "ピリオドとみなされる。"
154
155 #. type: TP
156 #: build/C/man3/fnmatch.3:73
157 #, no-wrap
158 msgid "B<FNM_FILE_NAME>"
159 msgstr "B<FNM_FILE_NAME>"
160
161 #. type: Plain text
162 #: build/C/man3/fnmatch.3:76
163 msgid "This is a GNU synonym for B<FNM_PATHNAME>."
164 msgstr "これは B<FNM_PATHNAME> に対する GNU での同義語である."
165
166 #. type: TP
167 #: build/C/man3/fnmatch.3:76
168 #, no-wrap
169 msgid "B<FNM_LEADING_DIR>"
170 msgstr "B<FNM_LEADING_DIR>"
171
172 #. type: Plain text
173 #: build/C/man3/fnmatch.3:84
174 msgid ""
175 "If this flag (a GNU extension) is set, the pattern is considered to be "
176 "matched if it matches an initial segment of I<string> which is followed by a "
177 "slash.  This flag is mainly for the internal use of glibc and is only "
178 "implemented in certain cases."
179 msgstr ""
180 "このフラグは GNU での拡張である。これがセットされている場合には、 パターンが "
181 "I<string> の最初の部分 (にスラッシュを付けたもの) にマッチすれば、 マッチした"
182 "ものとみなされる。 このフラグは主として glibc で内部的に使用し、そのためのみ"
183 "実装されている。"
184
185 #. type: TP
186 #: build/C/man3/fnmatch.3:84
187 #, no-wrap
188 msgid "B<FNM_CASEFOLD>"
189 msgstr "B<FNM_CASEFOLD>"
190
191 #. type: Plain text
192 #: build/C/man3/fnmatch.3:88
193 msgid ""
194 "If this flag (a GNU extension) is set, the pattern is matched case-"
195 "insensitively."
196 msgstr ""
197 "このフラグは GNU での拡張である。これがセットされている場合には、 パターンの"
198 "マッチに大文字小文字が区別されない。"
199
200 #. type: SH
201 #: build/C/man3/fnmatch.3:88 build/C/man3/glob.3:259 build/C/man3/re_comp.3:58
202 #: build/C/man3/regex.3:251 build/C/man3/wordexp.3:157
203 #, no-wrap
204 msgid "RETURN VALUE"
205 msgstr "返り値"
206
207 #. type: Plain text
208 #: build/C/man3/fnmatch.3:95
209 msgid ""
210 "Zero if I<string> matches I<pattern>, B<FNM_NOMATCH> if there is no match or "
211 "another nonzero value if there is an error."
212 msgstr ""
213 "I<string> が I<pattern> にマッチすれば 0 を返す。マッチしなかった場合には "
214 "B<FNM_NOMATCH> を返す。エラーの場合にはそれ以外の非ゼロ値を返す。"
215
216 #. type: SH
217 #: build/C/man3/fnmatch.3:95 build/C/man3/glob.3:273 build/C/man3/re_comp.3:66
218 #: build/C/man3/regex.3:308 build/C/man3/wordexp.3:187
219 #, no-wrap
220 msgid "CONFORMING TO"
221 msgstr "準拠"
222
223 #. type: Plain text
224 #: build/C/man3/fnmatch.3:100
225 msgid ""
226 "POSIX.2.  The B<FNM_FILE_NAME>, B<FNM_LEADING_DIR>, and B<FNM_CASEFOLD> "
227 "flags are GNU extensions."
228 msgstr ""
229 "POSIX.2.  B<FNM_FILE_NAME>, B<FNM_LEADING_DIR>, B<FNM_CASEFOLD> フラグは GNU "
230 "の拡張である。"
231
232 #. type: SH
233 #: build/C/man3/fnmatch.3:100 build/C/man3/glob.3:316 build/C/man7/glob.7:208
234 #: build/C/man3/re_comp.3:72 build/C/man3/regex.3:310 build/C/man7/regex.7:286
235 #: build/C/man3/wordexp.3:213
236 #, no-wrap
237 msgid "SEE ALSO"
238 msgstr "関連項目"
239
240 #. type: Plain text
241 #: build/C/man3/fnmatch.3:106
242 msgid "B<sh>(1), B<glob>(3), B<scandir>(3), B<wordexp>(3), B<glob>(7)"
243 msgstr "B<sh>(1), B<glob>(3), B<scandir>(3), B<wordexp>(3), B<glob>(7)"
244
245 #. type: SH
246 #: build/C/man3/fnmatch.3:106 build/C/man3/glob.3:327 build/C/man7/glob.7:214
247 #: build/C/man3/re_comp.3:76 build/C/man3/regex.3:316 build/C/man7/regex.7:291
248 #: build/C/man3/wordexp.3:216
249 #, no-wrap
250 msgid "COLOPHON"
251 msgstr "この文書について"
252
253 #. type: Plain text
254 #: build/C/man3/fnmatch.3:113 build/C/man3/glob.3:334 build/C/man7/glob.7:221
255 #: build/C/man3/re_comp.3:83 build/C/man3/regex.3:323 build/C/man7/regex.7:298
256 #: build/C/man3/wordexp.3:223
257 #, fuzzy
258 #| msgid ""
259 #| "This page is part of release 3.41 of the Linux I<man-pages> project.  A "
260 #| "description of the project, and information about reporting bugs, can be "
261 #| "found at http://www.kernel.org/doc/man-pages/."
262 msgid ""
263 "This page is part of release 3.50 of the Linux I<man-pages> project.  A "
264 "description of the project, and information about reporting bugs, can be "
265 "found at http://www.kernel.org/doc/man-pages/."
266 msgstr ""
267 "この man ページは Linux I<man-pages> プロジェクトのリリース 3.41 の一部\n"
268 "である。プロジェクトの説明とバグ報告に関する情報は\n"
269 "http://www.kernel.org/doc/man-pages/ に書かれている。"
270
271 #. type: TH
272 #: build/C/man3/glob.3:34 build/C/man7/glob.7:26
273 #, no-wrap
274 msgid "GLOB"
275 msgstr "GLOB"
276
277 #. type: TH
278 #: build/C/man3/glob.3:34
279 #, no-wrap
280 msgid "2007-10-10"
281 msgstr "2007-10-10"
282
283 #. type: Plain text
284 #: build/C/man3/glob.3:37
285 msgid ""
286 "glob, globfree - find pathnames matching a pattern, free memory from glob()"
287 msgstr ""
288 "glob, globfree - パターンにマッチするパス名を見付ける。glob() によっ て確保さ"
289 "れたメモリ領域を解放する。"
290
291 #. type: Plain text
292 #: build/C/man3/glob.3:40
293 #, no-wrap
294 msgid "B<#include E<lt>glob.hE<gt>>\n"
295 msgstr "B<#include E<lt>glob.hE<gt>>\n"
296
297 #. type: Plain text
298 #: build/C/man3/glob.3:42
299 #, no-wrap
300 msgid "B<int glob(const char *>I<pattern>B<, int >I<flags>B<,>\n"
301 msgstr "B<int glob(const char *>I<pattern>B<, int >I<flags>B<,>\n"
302
303 #. type: Plain text
304 #: build/C/man3/glob.3:44
305 #, no-wrap
306 msgid "B<         int (*>I<errfunc>B<) (const char *>I<epath>B<, int >I<eerrno>B<),>\n"
307 msgstr "B<         int (*>I<errfunc>B<) (const char *>I<epath>B<, int >I<eerrno>B<),>\n"
308
309 #. type: Plain text
310 #: build/C/man3/glob.3:46
311 #, no-wrap
312 msgid "B<         glob_t *>I<pglob>B<);>\n"
313 msgstr "B<         glob_t *>I<pglob>B<);>\n"
314
315 #. type: Plain text
316 #: build/C/man3/glob.3:48
317 #, no-wrap
318 msgid "B<void globfree(glob_t *>I<pglob>B<);>\n"
319 msgstr "B<void globfree(glob_t *>I<pglob>B<);>\n"
320
321 #. type: Plain text
322 #: build/C/man3/glob.3:59
323 msgid ""
324 "The B<glob>()  function searches for all the pathnames matching I<pattern> "
325 "according to the rules used by the shell (see B<glob>(7)).  No tilde "
326 "expansion or parameter substitution is done; if you want these, use "
327 "B<wordexp>(3)."
328 msgstr ""
329 "B<glob>()  関数はシェルが用いているルール (B<glob>(7)  参照) に基づいてパター"
330 "ン I<pattern> にマッチするすべてのパス名を検索する。 チルダ (~) の展開やパラ"
331 "メータ置換は行われない。それらを行いたい場合は B<wordexp>(3)  を使うとよい。"
332
333 #. type: Plain text
334 #: build/C/man3/glob.3:65
335 msgid ""
336 "The B<globfree>()  function frees the dynamically allocated storage from an "
337 "earlier call to B<glob>()."
338 msgstr ""
339 "B<globfree>()  関数は前に呼ばれた B<glob>()  により動的に確保された記憶領域を"
340 "解放する。"
341
342 #. type: Plain text
343 #: build/C/man3/glob.3:76
344 msgid ""
345 "The results of a B<glob>()  call are stored in the structure pointed to by "
346 "I<pglob>.  This structure is of type I<glob_t> (declared in I<E<lt>glob."
347 "hE<gt>>)  and includes the following elements defined by POSIX.2 (more may "
348 "be present as an extension):"
349 msgstr ""
350 "B<glob>()  の結果は I<pglob> がポイントする構造体に返される。 I<pglob> は "
351 "I<glob_t> 型の構造体である。 I<glob_t> 型は I<E<lt>glob.hE<gt>> 内で宣言され"
352 "ており、以下の要素を含んでいる。これらの要素は POSIX.2 で定義 されている (さ"
353 "らに多くの要素が拡張として入っているかもしれない)。"
354
355 #. type: Plain text
356 #: build/C/man3/glob.3:85
357 #, no-wrap
358 msgid ""
359 "typedef struct {\n"
360 "    size_t   gl_pathc;    /* Count of paths matched so far  */\n"
361 "    char   **gl_pathv;    /* List of matched pathnames.  */\n"
362 "    size_t   gl_offs;     /* Slots to reserve in I<gl_pathv>.  */\n"
363 "} glob_t;\n"
364 msgstr ""
365 "typedef struct {\n"
366 "    size_t   gl_pathc;    /* 今までにマッチしたパスの数 */\n"
367 "    char   **gl_pathv;    /* マッチしたパス名のリスト */\n"
368 "    size_t   gl_offs;     /* I<gl_pathv> 内に確保するスロット数 */\n"
369 "} glob_t;\n"
370
371 #. type: Plain text
372 #: build/C/man3/glob.3:89
373 msgid "Results are stored in dynamically allocated storage."
374 msgstr "結果は動的に確保された記憶領域に入れられる。"
375
376 #. type: Plain text
377 #: build/C/man3/glob.3:95
378 msgid ""
379 "The argument I<flags> is made up of the bitwise OR of zero or more the "
380 "following symbolic constants, which modify the behavior of B<glob>():"
381 msgstr ""
382 "パラメータ I<flags> には以下の示す定数のうち、指定したいものをビットごとの "
383 "OR で与える (一つも 指定しなくてもよい)。これによって B<glob>()  の動作を変更"
384 "できる。"
385
386 #. type: TP
387 #: build/C/man3/glob.3:95
388 #, no-wrap
389 msgid "B<GLOB_ERR>"
390 msgstr "B<GLOB_ERR>"
391
392 #. type: Plain text
393 #: build/C/man3/glob.3:103
394 msgid ""
395 "Return upon a read error (because a directory does not have read permission, "
396 "for example).  By default, B<glob>()  attempts carry on despite errors, "
397 "reading all of the directories that it can."
398 msgstr ""
399 "(例えば、ディレクトリに読み取り許可属性が無い場合などで)  読み取りエラーが発"
400 "生した際に関数から戻る。 デフォルトでは、エラーに関わらず 読み取り可能なディ"
401 "レクトリを全てについて読み取りを実行しようとする。"
402
403 #. type: TP
404 #: build/C/man3/glob.3:103
405 #, no-wrap
406 msgid "B<GLOB_MARK>"
407 msgstr "B<GLOB_MARK>"
408
409 #. type: Plain text
410 #: build/C/man3/glob.3:106
411 msgid "Append a slash to each path which corresponds to a directory."
412 msgstr "ディレクトリに対応する各々のパスにスラッシュを付加する。"
413
414 #. type: TP
415 #: build/C/man3/glob.3:106
416 #, no-wrap
417 msgid "B<GLOB_NOSORT>"
418 msgstr "B<GLOB_NOSORT>"
419
420 #. type: Plain text
421 #: build/C/man3/glob.3:111
422 msgid ""
423 "Don't sort the returned pathnames.  The only reason to do this is to save "
424 "processing time.  By default, the returned pathnames are sorted."
425 msgstr ""
426 "返されるパス名のソートを行わない。 ソートを行わない理由は、処理時間を節約する"
427 "ためだけである。 デフォルトでは、返されるパス名はソートされる。"
428
429 #. type: TP
430 #: build/C/man3/glob.3:111
431 #, no-wrap
432 msgid "B<GLOB_DOOFFS>"
433 msgstr "B<GLOB_DOOFFS>"
434
435 #. type: Plain text
436 #: build/C/man3/glob.3:118
437 msgid ""
438 "Reserve I<pglob-E<gt>gl_offs> slots at the beginning of the list of strings "
439 "in I<pglob-E<gt>pathv>.  The reserved slots contain NULL pointers."
440 msgstr ""
441 "I<pglob-E<gt>pathv> の文字列リストの先頭に I<pglob-E<gt>gl_offs> スロット分の"
442 "領域を予約する。 予約されたスロットには NULL ポインタが入る。"
443
444 #. type: TP
445 #: build/C/man3/glob.3:118
446 #, no-wrap
447 msgid "B<GLOB_NOCHECK>"
448 msgstr "B<GLOB_NOCHECK>"
449
450 #. type: Plain text
451 #: build/C/man3/glob.3:126
452 msgid ""
453 "If no pattern matches, return the original pattern.  By default, B<glob>()  "
454 "returns B<GLOB_NOMATCH> if there are no matches."
455 msgstr ""
456 "マッチするパターンがなければ、元のパターンを返す。 デフォルトでは、 B<glob>"
457 "()  はマッチするパターンがなければ B<GLOB_NOMATCH> を返す。"
458
459 #. type: TP
460 #: build/C/man3/glob.3:126
461 #, no-wrap
462 msgid "B<GLOB_APPEND>"
463 msgstr "B<GLOB_APPEND>"
464
465 #. type: Plain text
466 #: build/C/man3/glob.3:133
467 msgid ""
468 "Append the results of this call to the vector of results returned by a "
469 "previous call to B<glob>().  Do not set this flag on the first invocation of "
470 "B<glob>()."
471 msgstr ""
472 "この呼び出しでの結果を直前の B<glob>()  の呼び出しで返された結果のベクトルに"
473 "追加する。最初の B<glob>()  の呼び出しの際にはこのフラグを設定してはいけな"
474 "い。"
475
476 #. type: TP
477 #: build/C/man3/glob.3:133
478 #, no-wrap
479 msgid "B<GLOB_NOESCAPE>"
480 msgstr "B<GLOB_NOESCAPE>"
481
482 #. type: Plain text
483 #: build/C/man3/glob.3:140
484 msgid ""
485 "Don't allow backslash (\\(aq\\e\\(aq) to be used as an escape character.  "
486 "Normally, a backslash can be used to quote the following character, "
487 "providing a mechanism to turn off the special meaning metacharacters."
488 msgstr ""
489 "バックスラッシュ (\\(aq\\e\\(aq) をエスケープ用文字として使用できない。 通常"
490 "は、バックスラッシュを使って、次に続く文字をクォートすることで、 特別な意味を"
491 "持つメタキャラクタを無効することができる。"
492
493 #. type: Plain text
494 #: build/C/man3/glob.3:144
495 msgid ""
496 "I<flags> may also include any of the following, which are GNU extensions and "
497 "not defined by POSIX.2:"
498 msgstr ""
499 "I<flags> には以下に示すものも指定できる。 これらは GNU で拡張されたもので、"
500 "POSIX.2 では定義されていない。"
501
502 #. type: TP
503 #: build/C/man3/glob.3:144
504 #, no-wrap
505 msgid "B<GLOB_PERIOD>"
506 msgstr "B<GLOB_PERIOD>"
507
508 #. type: Plain text
509 #: build/C/man3/glob.3:148
510 msgid ""
511 "Allow a leading period to be matched by metacharacters.  By default, "
512 "metacharacters can't match a leading period."
513 msgstr ""
514 "先頭のピリオドがメタキャラクタにマッチできるようにする。 デフォルトでは、メタ"
515 "キャラクタは先頭のピリオドにはマッチできない。"
516
517 #. type: TP
518 #: build/C/man3/glob.3:148
519 #, no-wrap
520 msgid "B<GLOB_ALTDIRFUNC>"
521 msgstr "B<GLOB_ALTDIRFUNC>"
522
523 #. type: Plain text
524 #: build/C/man3/glob.3:158
525 msgid ""
526 "Use alternative functions I<pglob-E<gt>gl_closedir>, I<pglob-"
527 "E<gt>gl_readdir>, I<pglob-E<gt>gl_opendir>, I<pglob-E<gt>gl_lstat>, and "
528 "I<pglob-E<gt>gl_stat> for file system access instead of the normal library "
529 "functions."
530 msgstr ""
531 "ファイルシステムにアクセスする際に、通常のライブラリ関数の代わりに 代替関数 "
532 "I<pglob-E<gt>gl_closedir>, I<pglob-E<gt>gl_readdir>, I<pglob-"
533 "E<gt>gl_opendir>, I<pglob-E<gt>gl_lstat>, I<pglob-E<gt>gl_stat> が用いられ"
534 "る。"
535
536 #. type: TP
537 #: build/C/man3/glob.3:158
538 #, no-wrap
539 msgid "B<GLOB_BRACE>"
540 msgstr "B<GLOB_BRACE>"
541
542 #. type: Plain text
543 #: build/C/man3/glob.3:173
544 msgid ""
545 "Expand B<csh>(1)  style brace expressions of the form B<{a,b}>.  Brace "
546 "expressions can be nested.  Thus, for example, specifying the pattern \"{foo/"
547 "{,cat,dog},bar}\" would return the same results as four separate B<glob>()  "
548 "calls using the strings: \"foo/\", \"foo/cat\", \"foo/dog\", and \"bar\"."
549 msgstr ""
550 "B<{a,b}> という形式の B<csh>(1)  スタイルの括弧表現を展開する。 括弧表現は入"
551 "れ子にすることができる。 したがって、例えば、\"{foo/{,cat,dog},bar}\" という"
552 "パターンを 指定した場合に得られる結果は、 4つの文字列 \"foo/\", \"foo/cat\", "
553 "\"foo/dog\", \"bar\" のそれぞれについて B<glob>()  を呼び出した場合と同じにな"
554 "る。"
555
556 #. type: TP
557 #: build/C/man3/glob.3:173
558 #, no-wrap
559 msgid "B<GLOB_NOMAGIC>"
560 msgstr "B<GLOB_NOMAGIC>"
561
562 #. type: Plain text
563 #: build/C/man3/glob.3:178
564 msgid ""
565 "If the pattern contains no metacharacters then it should be returned as the "
566 "sole matching word, even if there is no file with that name."
567 msgstr ""
568 "パターンにメタキャラクタが含まれていない場合、 マッチ結果として指定されたパ"
569 "ターンだけを返す。 パターンで指定された名前のファイルが存在しない場合であって"
570 "も、 そのパターンが返される。"
571
572 #. type: TP
573 #: build/C/man3/glob.3:178
574 #, no-wrap
575 msgid "B<GLOB_TILDE>"
576 msgstr "B<GLOB_TILDE>"
577
578 #. type: Plain text
579 #: build/C/man3/glob.3:190
580 msgid ""
581 "Carry out tilde expansion.  If a tilde (\\(aq~\\(aq) is the only character "
582 "in the pattern, or an initial tilde is followed immediately by a slash "
583 "(\\(aq/\\(aq), then the home directory of the caller is substituted for the "
584 "tilde.  If an initial tilde is followed by a username (e.g., \"~andrea/bin"
585 "\"), then the tilde and username are substituted by the home directory of "
586 "that user.  If the username is invalid, or the home directory cannot be "
587 "determined, then no substitution is performed."
588 msgstr ""
589 "チルダの展開を行う。 チルダ (\\(aq~\\(aq) がパターン内の唯一の文字の場合か、"
590 "先頭のチルダの直後の文字が スラッシュ (\\(aq/\\(aq) の場合、チルダを呼び出し"
591 "者のホームディレクトリで置換する。 先頭のチルダにユーザ名が続く場合 (例えば "
592 "\"~andrea/bin\")、 チルダとユーザ名をそのユーザのホームディレクトリで置換す"
593 "る。 ユーザ名が無効な場合やホームディレクトリが決定できない場合は、 置換は実"
594 "行されない。"
595
596 #. type: TP
597 #: build/C/man3/glob.3:190
598 #, no-wrap
599 msgid "B<GLOB_TILDE_CHECK>"
600 msgstr "B<GLOB_TILDE_CHECK>"
601
602 #. type: Plain text
603 #: build/C/man3/glob.3:201
604 msgid ""
605 "This provides behavior similar to that of B<GLOB_TILDE>.  The difference is "
606 "that if the username is invalid, or the home directory cannot be determined, "
607 "then instead of using the pattern itself as the name, B<glob>()  returns "
608 "B<GLOB_NOMATCH> to indicate an error."
609 msgstr ""
610 "このフラグを指定すると B<GLOB_TILDE> と同様の振舞いをする。 B<GLOB_TILDE> と"
611 "の違いは、ユーザ名が無効だった場合や ホームディレクトリが決定できなかった場合"
612 "に、 パターン自身を使用するのではなく、 B<glob>()  がエラーを示す "
613 "B<GLOB_NOMATCH> を返すことである。"
614
615 #. type: TP
616 #: build/C/man3/glob.3:201
617 #, no-wrap
618 msgid "B<GLOB_ONLYDIR>"
619 msgstr "B<GLOB_ONLYDIR>"
620
621 #. type: Plain text
622 #: build/C/man3/glob.3:214
623 msgid ""
624 "This is a I<hint> to B<glob>()  that the caller is interested only in "
625 "directories that match the pattern.  If the implementation can easily "
626 "determine file-type information, then nondirectory files are not returned to "
627 "the caller.  However, the caller must still check that returned files are "
628 "directories.  (The purpose of this flag is merely to optimize performance "
629 "when the caller is interested only in directories.)"
630 msgstr ""
631 "このフラグは、 B<glob>()  に対する「ヒント」であり、 呼び出し側がパターンに"
632 "マッチするディレクトリにしか興味がないことを知らせる。 実装においてファイルの"
633 "種別情報を簡単に決定できる場合は、ディレクトリでない ファイルは呼び出し側に返"
634 "されない。しかしながら、呼び出し側では、返された ファイルリストがディレクトリ"
635 "かどうかを確認しなければならない。 (このフラグが存在するのは、呼び出し側が"
636 "ディレクトリにしか興味がない際に 性能を最適化する目的のためだけである。)"
637
638 #. type: Plain text
639 #: build/C/man3/glob.3:237
640 msgid ""
641 "If I<errfunc> is not NULL, it will be called in case of an error with the "
642 "arguments I<epath>, a pointer to the path which failed, and I<eerrno>, the "
643 "value of I<errno> as returned from one of the calls to B<opendir>(3), "
644 "B<readdir>(3), or B<stat>(2).  If I<errfunc> returns nonzero, or if "
645 "B<GLOB_ERR> is set, B<glob>()  will terminate after the call to I<errfunc>."
646 msgstr ""
647 "I<errfunc> が NULL でなければ、 エラーが起こった場合には関数 I<errfunc> が呼"
648 "び出される。関数の引数には、失敗したパス名 I<epath> と I<errno> (B<opendir>"
649 "(3), B<readdir>(3), B<stat>(2).  のいずれかによってセットされた値) が与えられ"
650 "る。 I<errfunc> が 0 以外の値を返すかもしくは B<GLOB_ERR> がセットされた場合 "
651 "B<glob>()  は I<errfunc> の呼び出し後に終了する。"
652
653 #. type: Plain text
654 #: build/C/man3/glob.3:244
655 msgid ""
656 "Upon successful return, I<pglob-E<gt>gl_pathc> contains the number of "
657 "matched pathnames and I<pglob-E<gt>gl_pathv> contains a pointer to the list "
658 "of pointers to matched pathnames.  The list of pointers is terminated by a "
659 "NULL pointer."
660 msgstr ""
661 "呼び出しが成功して戻った場合 I<pglob-E<gt>gl_pathc> にはマッチしたパス名が含"
662 "まれ、 I<pglob-E<gt>gl_pathv> はマッチしたパス名へのポインタのリストへのポイ"
663 "ンタとなる。 ポインタのリストは NULL ポインタで終端される。"
664
665 #. type: Plain text
666 #: build/C/man3/glob.3:253
667 msgid ""
668 "It is possible to call B<glob>()  several times.  In that case, the "
669 "B<GLOB_APPEND> flag has to be set in I<flags> on the second and later "
670 "invocations."
671 msgstr ""
672 "B<glob>()  を何度か続けて呼び出すことができる。その際2回目以降の呼び出しでは "
673 "B<GLOB_APPEND> フラグが I<flags> に設定されていなければならない。"
674
675 #. type: Plain text
676 #: build/C/man3/glob.3:259
677 msgid ""
678 "As a GNU extension, I<pglob-E<gt>gl_flags> is set to the flags specified, "
679 "B<or>ed with B<GLOB_MAGCHAR> if any metacharacters were found."
680 msgstr ""
681 "GNU の拡張として、 I<pglob-E<gt>gl_flags> には指定したフラグがセットされる。"
682 "もし一つでもメタキャラクタが見付かれば このフラグと B<GLOB_MAGCHAR> との "
683 "B<OR> を取った結果がセットされる。"
684
685 #. type: Plain text
686 #: build/C/man3/glob.3:264
687 msgid ""
688 "On successful completion, B<glob>()  returns zero.  Other possible returns "
689 "are:"
690 msgstr ""
691 "呼び出しが成功して完了すると B<glob>()  は 0 を返す。 それ以外の返り値は以下"
692 "の通り:"
693
694 #. type: TP
695 #: build/C/man3/glob.3:264
696 #, no-wrap
697 msgid "B<GLOB_NOSPACE>"
698 msgstr "B<GLOB_NOSPACE>"
699
700 #. type: Plain text
701 #: build/C/man3/glob.3:267
702 msgid "for running out of memory,"
703 msgstr "メモリを使い果たした"
704
705 #. type: TP
706 #: build/C/man3/glob.3:267
707 #, no-wrap
708 msgid "B<GLOB_ABORTED>"
709 msgstr "B<GLOB_ABORTED>"
710
711 #. type: Plain text
712 #: build/C/man3/glob.3:270
713 msgid "for a read error, and"
714 msgstr "読み取りエラー"
715
716 #. type: TP
717 #: build/C/man3/glob.3:270
718 #, no-wrap
719 msgid "B<GLOB_NOMATCH>"
720 msgstr "B<GLOB_NOMATCH>"
721
722 #. type: Plain text
723 #: build/C/man3/glob.3:273
724 msgid "for no found matches."
725 msgstr "一つもマッチしなかった"
726
727 #. type: Plain text
728 #: build/C/man3/glob.3:275
729 msgid "POSIX.2, POSIX.1-2001."
730 msgstr "POSIX.2, POSIX.1-2001."
731
732 #. type: SH
733 #: build/C/man3/glob.3:275 build/C/man7/glob.7:142 build/C/man3/re_comp.3:68
734 #, no-wrap
735 msgid "NOTES"
736 msgstr "注意"
737
738 #. type: Plain text
739 #: build/C/man3/glob.3:286
740 msgid ""
741 "The structure elements I<gl_pathc> and I<gl_offs> are declared as I<size_t> "
742 "in glibc 2.1, as they should be according to POSIX.2, but are declared as "
743 "I<int> in libc4, libc5 and glibc 2.0."
744 msgstr ""
745 "glibc 2.1 では、 I<gl_pathc> と I<gl_offs> は POSIX.2 で指定されているように "
746 "I<size_t> として宣言されている。 libc4, libc5, glibc 2.0 では、 I<int> として"
747 "宣言されている。"
748
749 #. type: SH
750 #: build/C/man3/glob.3:286 build/C/man7/regex.7:259
751 #, no-wrap
752 msgid "BUGS"
753 msgstr "バグ"
754
755 #. type: Plain text
756 #: build/C/man3/glob.3:295
757 msgid ""
758 "The B<glob>()  function may fail due to failure of underlying function "
759 "calls, such as B<malloc>(3)  or B<opendir>(3).  These will store their error "
760 "code in I<errno>."
761 msgstr ""
762 "B<glob>()  関数はその中で呼び出している B<malloc>(3)  や B<opendir>(3)  など"
763 "の関数の呼び出しで失敗が起こると失敗する。 これにより I<errno> にそのエラー"
764 "コードが入る。"
765
766 #. type: SH
767 #: build/C/man3/glob.3:295 build/C/man3/wordexp.3:189
768 #, no-wrap
769 msgid "EXAMPLE"
770 msgstr "例"
771
772 #. type: Plain text
773 #: build/C/man3/glob.3:297
774 msgid "One example of use is the following code, which simulates typing"
775 msgstr "使用法の一例を以下に示す。以下はシェルで"
776
777 #. type: Plain text
778 #: build/C/man3/glob.3:300
779 msgid "ls -l *.c ../*.c"
780 msgstr "ls -l *.c ../*.c"
781
782 #. type: Plain text
783 #: build/C/man3/glob.3:303
784 msgid "in the shell:"
785 msgstr "をタイプした場合をシミュレートしている。"
786
787 #. type: Plain text
788 #: build/C/man3/glob.3:307
789 #, no-wrap
790 msgid "glob_t globbuf;\n"
791 msgstr "glob_t globbuf;\n"
792
793 #. type: Plain text
794 #: build/C/man3/glob.3:314
795 #, no-wrap
796 msgid ""
797 "globbuf.gl_offs = 2;\n"
798 "glob(\"*.c\", GLOB_DOOFFS, NULL, &globbuf);\n"
799 "glob(\"../*.c\", GLOB_DOOFFS | GLOB_APPEND, NULL, &globbuf);\n"
800 "globbuf.gl_pathv[0] = \"ls\";\n"
801 "globbuf.gl_pathv[1] = \"-l\";\n"
802 "execvp(\"ls\", &globbuf.gl_pathv[0]);\n"
803 msgstr ""
804 "globbuf.gl_offs = 2;\n"
805 "glob(\"*.c\", GLOB_DOOFFS, NULL, &globbuf);\n"
806 "glob(\"../*.c\", GLOB_DOOFFS | GLOB_APPEND, NULL, &globbuf);\n"
807 "globbuf.gl_pathv[0] = \"ls\";\n"
808 "globbuf.gl_pathv[1] = \"-l\";\n"
809 "execvp(\"ls\", &globbuf.gl_pathv[0]);\n"
810
811 #. type: Plain text
812 #: build/C/man3/glob.3:327
813 msgid ""
814 "B<ls>(1), B<sh>(1), B<stat>(2), B<exec>(3), B<fnmatch>(3), B<malloc>(3), "
815 "B<opendir>(3), B<readdir>(3), B<wordexp>(3), B<glob>(7)"
816 msgstr ""
817 "B<ls>(1), B<sh>(1), B<stat>(2), B<exec>(3), B<fnmatch>(3), B<malloc>(3), "
818 "B<opendir>(3), B<readdir>(3), B<wordexp>(3), B<glob>(7)"
819
820 #. type: TH
821 #: build/C/man7/glob.7:26
822 #, fuzzy, no-wrap
823 #| msgid "2008-07-14"
824 msgid "2012-07-28"
825 msgstr "2008-07-14"
826
827 #. type: TH
828 #: build/C/man7/glob.7:26
829 #, no-wrap
830 msgid "Linux"
831 msgstr "Linux"
832
833 #. type: Plain text
834 #: build/C/man7/glob.7:29
835 #, fuzzy
836 #| msgid "glob - Globbing pathnames"
837 msgid "glob - globbing pathnames"
838 msgstr "glob - パス名を glob する"
839
840 #. type: Plain text
841 #: build/C/man7/glob.7:34
842 msgid ""
843 "Long ago, in UNIX V6, there was a program I</etc/glob> that would expand "
844 "wildcard patterns.  Soon afterward this became a shell built-in."
845 msgstr ""
846 "昔々 UNIX V6 では、ワイルドカードパターンを展開する I</etc/glob> と言うプログ"
847 "ラムがあった。その後すぐに、 この機能はシェルに組み込まれるようになった。"
848
849 #. type: Plain text
850 #: build/C/man7/glob.7:38
851 msgid ""
852 "These days there is also a library routine B<glob>(3)  that will perform "
853 "this function for a user program."
854 msgstr ""
855 "今日では、この機能をユーザープログラムからも実行できるよう、 B<glob>(3)  とい"
856 "うライブラリルーチンも存在している。"
857
858 #. type: Plain text
859 #: build/C/man7/glob.7:40
860 msgid "The rules are as follows (POSIX.2, 3.13)."
861 msgstr "glob の規則を以下に述べる (POSIX.2 3.13)。"
862
863 #. type: SS
864 #: build/C/man7/glob.7:40
865 #, fuzzy, no-wrap
866 #| msgid "Wildcard Matching"
867 msgid "Wildcard matching"
868 msgstr "ワイルドカードマッチ"
869
870 #. type: Plain text
871 #: build/C/man7/glob.7:47
872 msgid ""
873 "A string is a wildcard pattern if it contains one of the characters \\(aq?"
874 "\\(aq, \\(aq*\\(aq or \\(aq[\\(aq.  Globbing is the operation that expands a "
875 "wildcard pattern into the list of pathnames matching the pattern.  Matching "
876 "is defined by:"
877 msgstr ""
878 "文字列に \\(aq?\\(aq, \\(aq*\\(aq, \\(aq[\\(aq が含まれていると、 それはワイ"
879 "ルドカードパターンとみなされる。 「glob する」というのは、ワイルドカードパ"
880 "ターンを展開して、 そのパターンにマッチするパス名のリストを得ることである。 "
881 "マッチは以下のように定義される。"
882
883 #. type: Plain text
884 #: build/C/man7/glob.7:49
885 msgid "A \\(aq?\\(aq (not between brackets) matches any single character."
886 msgstr "(ブラケット外部の) \\(aq?\\(aq はあらゆる単一の文字にマッチする。"
887
888 #. type: Plain text
889 #: build/C/man7/glob.7:52
890 msgid ""
891 "A \\(aq*\\(aq (not between brackets) matches any string, including the empty "
892 "string."
893 msgstr ""
894 "(ブラケット外部の) \\(aq*\\(aq はあらゆる文字列にマッチする。 空文字列 "
895 "(empty string) にもマッチする。"
896
897 #. type: Plain text
898 #: build/C/man7/glob.7:54
899 msgid "B<Character classes>"
900 msgstr "B<文字クラス (character class)>"
901
902 #. type: Plain text
903 #: build/C/man7/glob.7:63
904 msgid ""
905 "An expression \"I<[...]>\" where the first character after the leading \\(aq"
906 "[\\(aq is not an \\(aq!\\(aq matches a single character, namely any of the "
907 "characters enclosed by the brackets.  The string enclosed by the brackets "
908 "cannot be empty; therefore \\(aq]\\(aq can be allowed between the brackets, "
909 "provided that it is the first character.  (Thus, \"I<[][!]>\" matches the "
910 "three characters \\(aq[\\(aq, \\(aq]\\(aq and \\(aq!\\(aq.)"
911 msgstr ""
912 "\"I<[...]>\" と言う表記は、先頭の \\(aq[\\(aq に続く最初の文字が \\(aq!\\(aq "
913 "で なければ、ブラケットの中に含まれている文字のどれか一つにマッチする。 ブラ"
914 "ケットの内部に含まれる文字列は空であってはならない。 したがって \\(aq]\\(aq "
915 "も最初の文字に指定すればブラケットの内部に含めることが できる (つまり \"I<[]"
916 "[!]>\" は \\(aq[\\(aq, \\(aq]\\(aq, \\(aq!\\(aq の 3 文字のどれかにマッチす"
917 "る)。"
918
919 #. type: Plain text
920 #: build/C/man7/glob.7:65
921 msgid "B<Ranges>"
922 msgstr "B<領域指定 (range)>"
923
924 #. type: Plain text
925 #: build/C/man7/glob.7:76
926 msgid ""
927 "There is one special convention: two characters separated by \\(aq-\\(aq "
928 "denote a range.  (Thus, \"I<[A-Fa-f0-9]>\" is equivalent to \"I<"
929 "[ABCDEFabcdef0123456789]>\".)  One may include \\(aq-\\(aq in its literal "
930 "meaning by making it the first or last character between the brackets.  "
931 "(Thus, \"I<[]-]>\" matches just the two characters \\(aq]\\(aq and \\(aq-"
932 "\\(aq, and \"I<[--0]>\" matches the three characters \\(aq-\\(aq, \\(aq."
933 "\\(aq, \\(aq0\\(aq, since \\(aq/\\(aq cannot be matched.)"
934 msgstr ""
935 "特殊な表記法が一つ存在する。\\(aq-\\(aq を挟む二つの文字は領域指定となる。 "
936 "(つまり \"I<[A-Fa-f0-9]>\" は \"I<[ABCDEFabcdef0123456789]>\" と等価とな"
937 "る。) \\(aq-\\(aq 文字そのものを入れたい場合は、 ブラケットの先頭または最後の"
938 "文字に指定すればよい。 (つまり \"I<[]-]>\" は二つの文字 \\(aq]\\(aq と \\(aq-"
939 "\\(aq にマッチし、\"I<[--0]>\" は \\(aq-\\(aq, \\(aq.\\(aq, \\(aq0\\(aq の 3 "
940 "文字にマッチする。この間の \\(aq/\\(aq にはマッチしない。後述を参照。)"
941
942 #. type: Plain text
943 #: build/C/man7/glob.7:78
944 msgid "B<Complementation>"
945 msgstr "B<補集合 (complementation)>"
946
947 #. type: Plain text
948 #: build/C/man7/glob.7:84
949 msgid ""
950 "An expression \"I<[!...]>\" matches a single character, namely any character "
951 "that is not matched by the expression obtained by removing the first \\(aq!"
952 "\\(aq from it.  (Thus, \"I<[!]a-]>\" matches any single character except "
953 "\\(aq]\\(aq, \\(aqa\\(aq and \\(aq-\\(aq.)"
954 msgstr ""
955 "\"I<[!...]>\" と言う表記は、ブラケットの内部に含まれない単一の文字にマッチす"
956 "る (ただし先頭にある \\(aq!\\(aq は除外)。 (つまり \"I<[!]a-]>\" は "
957 "\\(aq]\\(aq, \\(aqa\\(aq, \\(aq-\\(aq 以外のすべての文字の、どれか一つにマッ"
958 "チする。)"
959
960 #. type: Plain text
961 #: build/C/man7/glob.7:91
962 msgid ""
963 "One can remove the special meaning of \\(aq?\\(aq, \\(aq*\\(aq and \\(aq"
964 "[\\(aq by preceding them by a backslash, or, in case this is part of a shell "
965 "command line, enclosing them in quotes.  Between brackets these characters "
966 "stand for themselves.  Thus, \"I<[[?*\\e]>\" matches the four characters "
967 "\\(aq[\\(aq, \\(aq?\\(aq, \\(aq*\\(aq and \\(aq\\e\\(aq."
968 msgstr ""
969 "バックスラッシュ \\(aq\\e\\(aq を前置すれば、 \\(aq?\\(aq, \\(aq*\\(aq, \\(aq"
970 "[\\(aq は通常の文字として扱われる。 またはシェルのコマンドラインの一部に指定"
971 "する場合は、 クォートで囲っても同じ効果が得られる。ブラケットの内部では、 こ"
972 "れらの文字はその文字自身だけを意味する。 すなわち \"I<[[?*\\e]>\" は \\(aq"
973 "[\\(aq, \\(aq?\\(aq, \\(aq*\\(aq, \\(aq\\e\\(aq のどれか一文字にマッチする。"
974
975 #. type: SS
976 #: build/C/man7/glob.7:91
977 #, no-wrap
978 msgid "Pathnames"
979 msgstr "パス名 (pathname)"
980
981 #. type: Plain text
982 #: build/C/man7/glob.7:98
983 msgid ""
984 "Globbing is applied on each of the components of a pathname separately.  A "
985 "\\(aq/\\(aq in a pathname cannot be matched by a \\(aq?\\(aq or \\(aq*\\(aq "
986 "wildcard, or by a range like \"I<[.-0]>\".  A range cannot contain an "
987 "explicit \\(aq/\\(aq character; this would lead to a syntax error."
988 msgstr ""
989 "glob 動作は、パス名のそれぞれの部分に独立に適用される。 パス名に存在する "
990 "\\(aq/\\(aq は \\(aq?\\(aq や \\(aq*\\(aq ワイルドカードにはマッチしない。 ま"
991 "た \"I<[.-0]>\" のような領域指定にもマッチしない。 領域指定は陽に \\(aq/"
992 "\\(aq 文字を含むことはできない。これは文法エラーとなる。"
993
994 #. type: Plain text
995 #: build/C/man7/glob.7:103
996 msgid ""
997 "If a filename starts with a \\(aq.\\(aq, this character must be matched "
998 "explicitly.  (Thus, I<rm\\ *> will not remove .profile, and I<tar\\ c\\ *> "
999 "will not archive all your files; I<tar\\ c\\ .> is better.)"
1000 msgstr ""
1001 "\\(aq.\\(aq で始まるパス名では、この文字は陽にマッチさせなければならない。 "
1002 "(つまり I<rm\\ *> は .profile を削除しない。また I<tar\\ c\\ *> ではすべての"
1003 "ファイルはアーカイブされない。 I<tar\\ c\\ .> の方が良い。)"
1004
1005 #. type: SS
1006 #: build/C/man7/glob.7:103
1007 #, fuzzy, no-wrap
1008 #| msgid "Empty Lists"
1009 msgid "Empty lists"
1010 msgstr "空のリスト"
1011
1012 #. type: Plain text
1013 #: build/C/man7/glob.7:109
1014 msgid ""
1015 "The nice and simple rule given above: \"expand a wildcard pattern into the "
1016 "list of matching pathnames\" was the original UNIX definition.  It allowed "
1017 "one to have patterns that expand into an empty list, as in"
1018 msgstr ""
1019 "先に与えた、わかりやすく簡単なルール、 「ワイルドカードパターンをマッチしたパ"
1020 "ス名のリストに展開する」と言うのは、 オリジナルの UNIX における定義であっ"
1021 "た。 これはパターンが空のリストに展開されることも許可されていた。 例えば"
1022
1023 #. type: Plain text
1024 #: build/C/man7/glob.7:112
1025 #, no-wrap
1026 msgid "    xv -wait 0 *.gif *.jpg\n"
1027 msgstr "    xv -wait 0 *.gif *.jpg\n"
1028
1029 #. type: Plain text
1030 #: build/C/man7/glob.7:122
1031 #, fuzzy
1032 #| msgid ""
1033 #| "where perhaps no *.gif files are present (and this is not an error).  "
1034 #| "However, POSIX requires that a wildcard pattern is left unchanged when it "
1035 #| "is syntactically incorrect, or the list of matching pathnames is empty.  "
1036 #| "With I<bash> one can force the classical behavior by setting "
1037 #| "I<allow_null_glob_expansion=true>."
1038 msgid ""
1039 "where perhaps no *.gif files are present (and this is not an error).  "
1040 "However, POSIX requires that a wildcard pattern is left unchanged when it is "
1041 "syntactically incorrect, or the list of matching pathnames is empty.  With "
1042 "I<bash> one can force the classical behavior using this command:"
1043 msgstr ""
1044 "において、*.gif ファイルが全くない場合でも、 これは空のリストに展開されるた"
1045 "め、エラーにならない。 しかし POSIX では、文法的に正しくないパターンや、 マッ"
1046 "チがなかったパターンは、 そのまま変更されずに残されることになっている。 "
1047 "I<bash> では I<allow_null_glob_expansion=true> を指定することで、以前の振る舞"
1048 "いに設定することができる。"
1049
1050 #.  In Bash v1, by setting allow_null_glob_expansion=true
1051 #. type: Plain text
1052 #: build/C/man7/glob.7:125
1053 #, no-wrap
1054 msgid "    shopt -s nullglob\n"
1055 msgstr ""
1056
1057 #. type: Plain text
1058 #: build/C/man7/glob.7:128
1059 msgid "(Similar problems occur elsewhere.  E.g., where old scripts have"
1060 msgstr ""
1061 "(同様の問題は別のところでも起こっている。例えば、古いスクリプトにおける"
1062
1063 #. type: Plain text
1064 #: build/C/man7/glob.7:131
1065 #, no-wrap
1066 msgid "    rm \\`find . -name \"*~\"\\`\n"
1067 msgstr "    rm \\`find . -name \"*~\"\\`\n"
1068
1069 #. type: Plain text
1070 #: build/C/man7/glob.7:134
1071 msgid "new scripts require"
1072 msgstr "のような記述は、新しいスクリプトでは"
1073
1074 #. type: Plain text
1075 #: build/C/man7/glob.7:137
1076 #, no-wrap
1077 msgid "    rm -f nosuchfile \\`find . -name \"*~\"\\`\n"
1078 msgstr "    rm -f nosuchfile \\`find . -name \"*~\"\\`\n"
1079
1080 #. type: Plain text
1081 #: build/C/man7/glob.7:142
1082 msgid "to avoid error messages from I<rm> called with an empty argument list.)"
1083 msgstr ""
1084 "のようにしなければならない。さもないと I<rm> を引き数リストなしで呼び出す可能"
1085 "性があり、 エラーメッセージが出てしまう。)"
1086
1087 #. type: SS
1088 #: build/C/man7/glob.7:143
1089 #, no-wrap
1090 msgid "Regular expressions"
1091 msgstr "正規表現"
1092
1093 #. type: Plain text
1094 #: build/C/man7/glob.7:150
1095 msgid ""
1096 "Note that wildcard patterns are not regular expressions, although they are a "
1097 "bit similar.  First of all, they match filenames, rather than text, and "
1098 "secondly, the conventions are not the same: for example, in a regular "
1099 "expression \\(aq*\\(aq means zero or more copies of the preceding thing."
1100 msgstr ""
1101 "ワイルドカードパターンは正規表現と多少似ているが、しかしこの両者は異なる。 ま"
1102 "ず第一に、前者がファイル名にマッチするのに対して、 後者はテキストにマッチす"
1103 "る。第二に、ルールも同じではない。 例えば正規表現における \\(aq*\\(aq は、 前"
1104 "置された文字の 0 以上の繰り返しを表す。"
1105
1106 #. type: Plain text
1107 #: build/C/man7/glob.7:154
1108 msgid ""
1109 "Now that regular expressions have bracket expressions where the negation is "
1110 "indicated by a \\(aq^\\(aq, POSIX has declared the effect of a wildcard "
1111 "pattern \"I<[^...]>\" to be undefined."
1112 msgstr ""
1113 "正規表現にもブラケット表現はあるが、否定は \\(aq^\\(aq でなされる。 POSIX で"
1114 "はワイルドカードパターンにおける \"I<[^...]>\" を未定義であるとしている。"
1115
1116 #. type: SS
1117 #: build/C/man7/glob.7:154
1118 #, fuzzy, no-wrap
1119 #| msgid "Character classes and Internationalization"
1120 msgid "Character classes and internationalization"
1121 msgstr "文字クラスと国際化"
1122
1123 #. type: Plain text
1124 #: build/C/man7/glob.7:172
1125 msgid ""
1126 "Of course ranges were originally meant to be ASCII ranges, so that \"I<[\\ -"
1127 "%]>\" stands for \"I<[\\ !\"#$%]>\" and \"I<[a-z]>\" stands for \"any "
1128 "lowercase letter\".  Some UNIX implementations generalized this so that a "
1129 "range X-Y stands for the set of characters with code between the codes for X "
1130 "and for Y.  However, this requires the user to know the character coding in "
1131 "use on the local system, and moreover, is not convenient if the collating "
1132 "sequence for the local alphabet differs from the ordering of the character "
1133 "codes.  Therefore, POSIX extended the bracket notation greatly, both for "
1134 "wildcard patterns and for regular expressions.  In the above we saw three "
1135 "types of items that can occur in a bracket expression: namely (i) the "
1136 "negation, (ii) explicit single characters, and (iii) ranges.  POSIX "
1137 "specifies ranges in an internationally more useful way and adds three more "
1138 "types:"
1139 msgstr ""
1140 "領域指定は、もともとはもちろん ASCII における順序並びを意味していた。 した"
1141 "がって \"I<[\\ -%]>\" は \"I<[\\ !\"#$%]>\" の意味であり、 \"I<[a-z]>\" は"
1142 "「すべての小文字」の意味であった。 UNIX の実装の中には、これを拡張したものが"
1143 "存在し、 そこでは X-Y という領域指定は、X のコードと Y のコードに挟まれたコー"
1144 "ドを持つ文字すべてを表すようになっていた。 しかし、これにはユーザーがローカル"
1145 "なシステムにおける 文字コードを知らなければならず、 さらにローカルなアルファ"
1146 "ベットに対する照合順序 (collating sequence) が文字コードの順序と異なっている"
1147 "場合には不便であった。 (訳注: collating sequence に関しては B<regex>(7)  を参"
1148 "照して下さい。)  したがって POSIX では、ワイルドカードパターンと正規表現の双"
1149 "方において、 ブラケット表記を大幅に拡張している。 これまで我々は、ブラケット"
1150 "表記には三つの要素が含まれうることを見てきた。 すなわち (i) 否定、(ii) 単一の"
1151 "文字、(iii) 領域指定、の三つである。 POSIX では、領域指定をより国際化に便利な"
1152 "ように定義しており、 また三つのタイプをブラケット表記の要素として追加してい"
1153 "る。"
1154
1155 #. type: Plain text
1156 #: build/C/man7/glob.7:178
1157 msgid ""
1158 "(iii) Ranges X-Y comprise all characters that fall between X and Y "
1159 "(inclusive) in the current collating sequence as defined by the "
1160 "B<LC_COLLATE> category in the current locale."
1161 msgstr ""
1162 "(iii) 領域指定 X-Y は X と Y に挟まれた (両端含む) すべての文字を意味する。 "
1163 "このとき、カレントロケール (current locale) の B<LC_COLLATE> カテゴリで定義さ"
1164 "れている照合順序が用いられる。"
1165
1166 #. type: Plain text
1167 #: build/C/man7/glob.7:180
1168 msgid "(iv) Named character classes, like"
1169 msgstr "(iv) 名前付き文字クラス: 以下のようなものである。"
1170
1171 #. type: Plain text
1172 #: build/C/man7/glob.7:185
1173 #, no-wrap
1174 msgid ""
1175 "[:alnum:]  [:alpha:]  [:blank:]  [:cntrl:]\n"
1176 "[:digit:]  [:graph:]  [:lower:]  [:print:]\n"
1177 "[:punct:]  [:space:]  [:upper:]  [:xdigit:]\n"
1178 msgstr ""
1179 "[:alnum:]  [:alpha:]  [:blank:]  [:cntrl:]\n"
1180 "[:digit:]  [:graph:]  [:lower:]  [:print:]\n"
1181 "[:punct:]  [:space:]  [:upper:]  [:xdigit:]\n"
1182
1183 #. type: Plain text
1184 #: build/C/man7/glob.7:194
1185 msgid ""
1186 "so that one can say \"I<[[:lower:]]>\" instead of \"I<[a-z]>\", and have "
1187 "things work in Denmark, too, where there are three letters past \\(aqz\\(aq "
1188 "in the alphabet.  These character classes are defined by the B<LC_CTYPE> "
1189 "category in the current locale."
1190 msgstr ""
1191 "これを用いれば \"I<[a-z]>\" の代わりに \"I<[[:lower:]]>\" のような指定ができ"
1192 "る。 またデンマークのように、アルファベットの \\(aqz\\(aq 以降に 3 つの文字が"
1193 "存在するような場合でも、同じような動作が期待できる。 これらの文字クラスはカレ"
1194 "ントロケールの B<LC_CTYPE> カテゴリで定義されている。"
1195
1196 #. type: Plain text
1197 #: build/C/man7/glob.7:200
1198 msgid ""
1199 "(v) Collating symbols, like \"I<[.ch.]>\" or \"I<[.a-acute.]>\", where the "
1200 "string between \"I<[.>\" and \"I<.]>\" is a collating element defined for "
1201 "the current locale.  Note that this may be a multicharacter element."
1202 msgstr ""
1203 "(v) 照合順序におけるシンボル: \"I<[.ch.]>\" や \"I<[.a-acute.]>\" のように "
1204 "\"I<[.>\" と \"I<.]>\" で挟まれた文字列は、カレントロケールで定義された照合順"
1205 "序の要素となる。 ある一つの要素が複数の文字からなる場合もありうることに注意。"
1206
1207 #. type: Plain text
1208 #: build/C/man7/glob.7:208
1209 #, fuzzy
1210 #| msgid ""
1211 #| "(vi) Equivalence class expressions, like \"I<[=a=]>\", where the string "
1212 #| "between \"I<[=>\" and \"I<=]>\" is any collating element from its "
1213 #| "equivalence class, as defined for the current locale.  For example, \"I<"
1214 #| "[[=a=]]>\" might be equivalent to \"I<[aáàäâ]>\" (warning: Latin-1 here), "
1215 #| "that is, to \"I<[a[.a-acute.][.a-grave.][.a-umlaut.][.a-circumflex.]]>\"."
1216 msgid ""
1217 "(vi) Equivalence class expressions, like \"I<[=a=]>\", where the string "
1218 "between \"I<[=>\" and \"I<=]>\" is any collating element from its "
1219 "equivalence class, as defined for the current locale.  For example, \"I<"
1220 "[[=a=]]>\" might be equivalent to \"I<[a\\('a\\(`a\\(:a\\(^a]>\", that is, "
1221 "to \"I<[a[.a-acute.][.a-grave.][.a-umlaut.][.a-circumflex.]]>\"."
1222 msgstr ""
1223 "(vi) 等価クラス表現 (equivalence class expressions):\n"
1224 "\"I<[=a=]>\" のように \"I<[=>\" と \"I<=]>\" とで挟まれた文字列であり、\n"
1225 "カレントロケールで定義された等価クラスのメンバーである照合要素のいずれかを表"
1226 "す。\n"
1227 "例えば、\"I<[[=a=]]>\" は \"I<[aáàäâ]>\" (注意: これは Latin-1 表記)、つま"
1228 "り\n"
1229 "\"I<[a[.a-acute.][.a-grave.][.a-umlaut.][.a-circumflex.]]>\" と等価になる。"
1230
1231 #. type: Plain text
1232 #: build/C/man7/glob.7:214
1233 msgid "B<sh>(1), B<fnmatch>(3), B<glob>(3), B<locale>(7), B<regex>(7)"
1234 msgstr "B<sh>(1), B<fnmatch>(3), B<glob>(3), B<locale>(7), B<regex>(7)"
1235
1236 #. type: TH
1237 #: build/C/man3/re_comp.3:27
1238 #, no-wrap
1239 msgid "RE_COMP"
1240 msgstr "RE_COMP"
1241
1242 #. type: TH
1243 #: build/C/man3/re_comp.3:27
1244 #, no-wrap
1245 msgid "1995-07-14"
1246 msgstr "1995-07-14"
1247
1248 #. type: Plain text
1249 #: build/C/man3/re_comp.3:30
1250 msgid "re_comp, re_exec - BSD regex functions"
1251 msgstr "re_comp, re_exec - BSD の正規表現関数"
1252
1253 #. type: Plain text
1254 #: build/C/man3/re_comp.3:32
1255 msgid "B<#define _REGEX_RE_COMP>"
1256 msgstr "B<#define _REGEX_RE_COMP>"
1257
1258 #. type: Plain text
1259 #: build/C/man3/re_comp.3:34
1260 msgid "B<#include E<lt>sys/types.hE<gt>>"
1261 msgstr "B<#include E<lt>sys/types.hE<gt>>"
1262
1263 #. type: Plain text
1264 #: build/C/man3/re_comp.3:36
1265 msgid "B<#include E<lt>regex.hE<gt>>"
1266 msgstr "B<#include E<lt>regex.hE<gt>>"
1267
1268 #. type: Plain text
1269 #: build/C/man3/re_comp.3:38
1270 msgid "B<char *re_comp(char *>I<regex>B<);>"
1271 msgstr "B<char *re_comp(char *>I<regex>B<);>"
1272
1273 #. type: Plain text
1274 #: build/C/man3/re_comp.3:40
1275 msgid "B<int re_exec(char *>I<string>B<);>"
1276 msgstr "B<int re_exec(char *>I<string>B<);>"
1277
1278 #. type: Plain text
1279 #: build/C/man3/re_comp.3:52
1280 msgid ""
1281 "B<re_comp>()  is used to compile the null-terminated regular expression "
1282 "pointed to by I<regex>.  The compiled pattern occupies a static area, the "
1283 "pattern buffer, which is overwritten by subsequent use of B<re_comp>().  If "
1284 "I<regex> is NULL, no operation is performed and the pattern buffer's "
1285 "contents are not altered."
1286 msgstr ""
1287 "B<re_comp>()  は、 I<regex> で示される NULL で終端された正規表現をコンパイル"
1288 "するために使用される。 コンパイルされたパターンは静的な領域を使用しており、そ"
1289 "のパターンバッファ は以降の B<re_comp>()  の使用によって上書きされる。 もし "
1290 "I<regex> が NULL ならば何の操作も行われず、パターンバッファの内容は 置き換え"
1291 "られない。"
1292
1293 #. type: Plain text
1294 #: build/C/man3/re_comp.3:58
1295 msgid ""
1296 "B<re_exec>()  is used to assess whether the null-terminated string pointed "
1297 "to by I<string> matches the previously compiled I<regex>."
1298 msgstr ""
1299 "B<re_exec>()  は、 I<string> が指す NULL で終端された文字列が前回コンパイルさ"
1300 "れた I<regex> にマッチするかどうかを評価するために使用される。"
1301
1302 #. type: Plain text
1303 #: build/C/man3/re_comp.3:63
1304 msgid ""
1305 "B<re_comp>()  returns NULL on successful compilation of I<regex> otherwise "
1306 "it returns a pointer to an appropriate error message."
1307 msgstr ""
1308 "B<re_comp>()  は、 I<regex> のコンパイルに成功した場合 NULL を返し、 それ以外"
1309 "の場合は適切なエラーメッセージへのポインタを返す。"
1310
1311 #. type: Plain text
1312 #: build/C/man3/re_comp.3:66
1313 msgid "B<re_exec>()  returns 1 for a successful match, zero for failure."
1314 msgstr "B<re_exec>()  は、一致した場合 1 を、失敗した場合 0 を返す。"
1315
1316 #. type: Plain text
1317 #: build/C/man3/re_comp.3:68
1318 msgid "4.3BSD."
1319 msgstr "4.3BSD."
1320
1321 #. type: Plain text
1322 #: build/C/man3/re_comp.3:72
1323 msgid ""
1324 "These functions are obsolete; the functions documented in B<regcomp>(3)  "
1325 "should be used instead."
1326 msgstr ""
1327 "これらの関数は廃止予定である。代わりに B<regcomp>(3)  に書かれている関数を使"
1328 "用すべきである。"
1329
1330 #. type: Plain text
1331 #: build/C/man3/re_comp.3:76
1332 msgid "B<regcomp>(3), B<regex>(7), GNU regex manual"
1333 msgstr "B<regcomp>(3), B<regex>(7), GNU regex manual"
1334
1335 #. type: TH
1336 #: build/C/man3/regex.3:34 build/C/man7/regex.7:37
1337 #, no-wrap
1338 msgid "REGEX"
1339 msgstr "REGEX"
1340
1341 #. type: TH
1342 #: build/C/man3/regex.3:34
1343 #, no-wrap
1344 msgid "2013-02-11"
1345 msgstr ""
1346
1347 #. type: Plain text
1348 #: build/C/man3/regex.3:37
1349 msgid "regcomp, regexec, regerror, regfree - POSIX regex functions"
1350 msgstr "regcomp, regexec, regerror, regfree - POSIX regex 関数"
1351
1352 #. type: Plain text
1353 #: build/C/man3/regex.3:41
1354 #, no-wrap
1355 msgid ""
1356 "B<#include E<lt>sys/types.hE<gt>>\n"
1357 "B<#include E<lt>regex.hE<gt>>\n"
1358 msgstr ""
1359 "B<#include E<lt>sys/types.hE<gt>>\n"
1360 "B<#include E<lt>regex.hE<gt>>\n"
1361
1362 #. type: Plain text
1363 #: build/C/man3/regex.3:43
1364 #, no-wrap
1365 msgid "B<int regcomp(regex_t *>I<preg>B<, const char *>I<regex>B<, int >I<cflags>B<);>\n"
1366 msgstr "B<int regcomp(regex_t *>I<preg>B<, const char *>I<regex>B<, int >I<cflags>B<);>\n"
1367
1368 #. type: Plain text
1369 #: build/C/man3/regex.3:47
1370 #, no-wrap
1371 msgid ""
1372 "B<int regexec(const regex_t *>I<preg>B<, const char *>I<string>B<, size_t >I<nmatch>B<,>\n"
1373 "B<            regmatch_t >I<pmatch[]>B<, int >I<eflags>B<);>\n"
1374 msgstr ""
1375 "B<int regexec(const regex_t *>I<preg>B<, const char *>I<string>B<, size_t >I<nmatch>B<,>\n"
1376 "B<            regmatch_t >I<pmatch[]>B<, int >I<eflags>B<);>\n"
1377
1378 #. type: Plain text
1379 #: build/C/man3/regex.3:50
1380 #, no-wrap
1381 msgid ""
1382 "B<size_t regerror(int >I<errcode>B<, const regex_t *>I<preg>B<, char *>I<errbuf>B<,>\n"
1383 "B<                size_t >I<errbuf_size>B<);>\n"
1384 msgstr ""
1385 "B<size_t regerror(int >I<errcode>B<, const regex_t *>I<preg>B<, char *>I<errbuf>B<,>\n"
1386 "B<                size_t >I<errbuf_size>B<);>\n"
1387
1388 #. type: Plain text
1389 #: build/C/man3/regex.3:52
1390 #, no-wrap
1391 msgid "B<void regfree(regex_t *>I<preg>B<);>\n"
1392 msgstr "B<void regfree(regex_t *>I<preg>B<);>\n"
1393
1394 #. type: SS
1395 #: build/C/man3/regex.3:54
1396 #, fuzzy, no-wrap
1397 #| msgid "POSIX Regex Compiling"
1398 msgid "POSIX regex compiling"
1399 msgstr "POSIX regex コンパイル"
1400
1401 #. type: Plain text
1402 #: build/C/man3/regex.3:60
1403 msgid ""
1404 "B<regcomp>()  is used to compile a regular expression into a form that is "
1405 "suitable for subsequent B<regexec>()  searches."
1406 msgstr ""
1407 "B<regcomp>()  は、正規表現をコンパイルして、 B<regexec>()  での検索処理に適合"
1408 "する形態にする。"
1409
1410 #. type: Plain text
1411 #: build/C/man3/regex.3:69
1412 msgid ""
1413 "B<regcomp>()  is supplied with I<preg>, a pointer to a pattern buffer "
1414 "storage area; I<regex>, a pointer to the null-terminated string and "
1415 "I<cflags>, flags used to determine the type of compilation."
1416 msgstr ""
1417 "B<regcomp>()  はパターンを記憶するバッファへのポインタ I<preg>、 ヌル文字で終"
1418 "端された文字列 I<regex>、 そしてコンパイルの形式を決めるためのフラグ "
1419 "I<cflag> を引数に伴う。"
1420
1421 #. type: Plain text
1422 #: build/C/man3/regex.3:76
1423 msgid ""
1424 "All regular expression searching must be done via a compiled pattern buffer, "
1425 "thus B<regexec>()  must always be supplied with the address of a B<regcomp>"
1426 "()  initialized pattern buffer."
1427 msgstr ""
1428 "全ての正規表現検索は、コンパイルされたパターンによって行わなければならない。 "
1429 "よって、 B<regexec>()  に指定するのは、必ず (B<regcomp>()  によってコンパイル"
1430 "された) パターンバッファへのアドレスでなければならない。"
1431
1432 #. type: Plain text
1433 #: build/C/man3/regex.3:81
1434 msgid "I<cflags> may be the bitwise-B<or> of one or more of the following:"
1435 msgstr ""
1436 "I<cflags> には以下に示す定数一つ以上のビットごとの OR (bitwise-or) を指定す"
1437 "る。"
1438
1439 #. type: TP
1440 #: build/C/man3/regex.3:81
1441 #, no-wrap
1442 msgid "B<REG_EXTENDED>"
1443 msgstr "B<REG_EXTENDED>"
1444
1445 #. type: Plain text
1446 #: build/C/man3/regex.3:90
1447 msgid ""
1448 "Use B<POSIX> Extended Regular Expression syntax when interpreting I<regex>.  "
1449 "If not set, B<POSIX> Basic Regular Expression syntax is used."
1450 msgstr ""
1451 "I<regex> に B<POSIX> 拡張正規表現を使用する。もしこのフラグが設定されない場"
1452 "合、 B<POSIX> 標準正規表現が使われる。"
1453
1454 #. type: TP
1455 #: build/C/man3/regex.3:90
1456 #, no-wrap
1457 msgid "B<REG_ICASE>"
1458 msgstr "B<REG_ICASE>"
1459
1460 #. type: Plain text
1461 #: build/C/man3/regex.3:96
1462 msgid ""
1463 "Do not differentiate case.  Subsequent B<regexec>()  searches using this "
1464 "pattern buffer will be case insensitive."
1465 msgstr ""
1466 "大文字小文字の違いを無視する。このフラグを指定してコンパイルされた パターン"
1467 "バッファを用いて B<regexec>()  関数を呼び出すと、大文字小文字の区別を付けずに"
1468 "検索が行われる。"
1469
1470 #. type: TP
1471 #: build/C/man3/regex.3:96
1472 #, no-wrap
1473 msgid "B<REG_NOSUB>"
1474 msgstr "B<REG_NOSUB>"
1475
1476 #. type: Plain text
1477 #: build/C/man3/regex.3:106
1478 #, fuzzy
1479 #| msgid ""
1480 #| "Support for substring addressing of matches is not required.  The "
1481 #| "I<nmatch> and I<pmatch> arguments to B<regexec>()  are ignored if the "
1482 #| "pattern buffer supplied was compiled with this flag set."
1483 msgid ""
1484 "Do not report position of matches.  The I<nmatch> and I<pmatch> arguments to "
1485 "B<regexec>()  are ignored if the pattern buffer supplied was compiled with "
1486 "this flag set."
1487 msgstr ""
1488 "このフラグを設定してコンパイルされたパターンバッファが B<regexec>()  の引数に"
1489 "指定されると、引き数 I<nmatch>, I<pmatch> が無視される。"
1490
1491 #. type: TP
1492 #: build/C/man3/regex.3:106
1493 #, no-wrap
1494 msgid "B<REG_NEWLINE>"
1495 msgstr "B<REG_NEWLINE>"
1496
1497 #. type: Plain text
1498 #: build/C/man3/regex.3:109
1499 msgid "Match-any-character operators don't match a newline."
1500 msgstr "全ての文字にマッチするオペレータに改行をマッチさせない。"
1501
1502 #. type: Plain text
1503 #: build/C/man3/regex.3:113
1504 msgid ""
1505 "A nonmatching list (B<[^...]>)  not containing a newline does not match a "
1506 "newline."
1507 msgstr ""
1508 "改行を含まない非マッチング文字リスト (B<[^...]>)  に改行をマッチさせない。"
1509
1510 #. type: Plain text
1511 #: build/C/man3/regex.3:123
1512 msgid ""
1513 "Match-beginning-of-line operator (B<^>)  matches the empty string "
1514 "immediately after a newline, regardless of whether I<eflags>, the execution "
1515 "flags of B<regexec>(), contains B<REG_NOTBOL>."
1516 msgstr ""
1517 "B<regexec>()  の実行時に指定するフラグ I<eflags> に B<REG_NOTBOL> を含むかど"
1518 "うかにかかわらず、行頭にマッチするオペレータ (B<^>)  を改行直後の空文字列に"
1519 "マッチさせる。"
1520
1521 #. type: Plain text
1522 #: build/C/man3/regex.3:131
1523 msgid ""
1524 "Match-end-of-line operator (B<$>)  matches the empty string immediately "
1525 "before a newline, regardless of whether I<eflags> contains B<REG_NOTEOL>."
1526 msgstr ""
1527 "I<eflags> に B<REG_NOTEOL> を含むかどうかにかかわらず、行末にマッチするオペ"
1528 "レータ (B<$>)  を改行直前の空文字列にマッチさせる。"
1529
1530 #. type: SS
1531 #: build/C/man3/regex.3:131
1532 #, fuzzy, no-wrap
1533 #| msgid "POSIX Regex Matching"
1534 msgid "POSIX regex matching"
1535 msgstr "POSIX regex マッチング"
1536
1537 #. type: Plain text
1538 #: build/C/man3/regex.3:148
1539 msgid ""
1540 "B<regexec>()  is used to match a null-terminated string against the "
1541 "precompiled pattern buffer, I<preg>.  I<nmatch> and I<pmatch> are used to "
1542 "provide information regarding the location of any matches.  I<eflags> may be "
1543 "the bitwise-B<or> of one or both of B<REG_NOTBOL> and B<REG_NOTEOL> which "
1544 "cause changes in matching behavior described below."
1545 msgstr ""
1546 "B<regexec>()  は、 プリコンパイルされたパターンバッファ I<preg> をヌル文字で"
1547 "終端された文字列にマッチさせる。 I<nmatch> と I<pmatch> はマッチングの位置に"
1548 "関する情報を取得するのに用いられる。 I<eflags> には B<REG_NOTBOL> と "
1549 "B<REG_NOTEOL> のどちらか、もしくは両方のビットごとの B<OR> (bitwise-B<or>)  "
1550 "を指定し、以下で説明するようにマッチング動作を変化させる。"
1551
1552 #. type: TP
1553 #: build/C/man3/regex.3:148
1554 #, no-wrap
1555 msgid "B<REG_NOTBOL>"
1556 msgstr "B<REG_NOTBOL>"
1557
1558 #. type: Plain text
1559 #: build/C/man3/regex.3:158
1560 msgid ""
1561 "The match-beginning-of-line operator always fails to match (but see the "
1562 "compilation flag B<REG_NEWLINE> above)  This flag may be used when different "
1563 "portions of a string are passed to B<regexec>()  and the beginning of the "
1564 "string should not be interpreted as the beginning of the line."
1565 msgstr ""
1566 "行頭にマッチするオペレータは、必ずマッチに失敗する (コンパイル時のフラグ "
1567 "B<REG_NEWLINE> の項目も参照)。 このフラグは、複数行にまたがる文字列を "
1568 "B<regexec>()  で検索する際に、文字列の先頭を行の先頭として解釈させない場合に"
1569 "用いる。"
1570
1571 #. type: TP
1572 #: build/C/man3/regex.3:158
1573 #, no-wrap
1574 msgid "B<REG_NOTEOL>"
1575 msgstr "B<REG_NOTEOL>"
1576
1577 #. type: Plain text
1578 #: build/C/man3/regex.3:164
1579 msgid ""
1580 "The match-end-of-line operator always fails to match (but see the "
1581 "compilation flag B<REG_NEWLINE> above)"
1582 msgstr ""
1583 "行末にマッチするオペレータは、必ずマッチに失敗する (コンパイル時のフラグ "
1584 "B<REG_NEWLINE> の項目も参照)。"
1585
1586 #. type: SS
1587 #: build/C/man3/regex.3:164
1588 #, fuzzy, no-wrap
1589 #| msgid "Byte Offsets"
1590 msgid "Byte offsets"
1591 msgstr "バイトオフセット"
1592
1593 #. type: Plain text
1594 #: build/C/man3/regex.3:189
1595 #, fuzzy
1596 #| msgid ""
1597 #| "Unless B<REG_NOSUB> was set for the compilation of the pattern buffer, it "
1598 #| "is possible to obtain substring match addressing information.  I<pmatch> "
1599 #| "must be dimensioned to have at least I<nmatch> elements.  These are "
1600 #| "filled in by B<regexec>()  with substring match addresses.  Any unused "
1601 #| "structure elements will contain the value -1."
1602 msgid ""
1603 "Unless B<REG_NOSUB> was set for the compilation of the pattern buffer, it is "
1604 "possible to obtain match addressing information.  I<pmatch> must be "
1605 "dimensioned to have at least I<nmatch> elements.  These are filled in by "
1606 "B<regexec>()  with substring match addresses.  The offsets of the "
1607 "subexpression starting at the I<i>th open parenthesis are stored in I<pmatch"
1608 "[i]>.  The entire regular expression's match addresses are stored in I<pmatch"
1609 "[0]>.  (Note that to return the offsets of I<N> subexpression matches, "
1610 "I<nmatch> must be at least I<N+1>.)  Any unused structure elements will "
1611 "contain the value -1."
1612 msgstr ""
1613 "パターンバッファのコンパイル時に B<REG_NOSUB> が設定されない場合は、部分文字"
1614 "列のマッチング位置情報を得ることができる。 I<pmatch> は、少なくとも "
1615 "I<nmatch> の大きさを持つように指定しなければならない。 B<regexec>()  の実行に"
1616 "よって、それらに部分文字列マッチング位置情報が代入される。 未使用の構造体要素"
1617 "には -1 が値として代入される。"
1618
1619 #. type: Plain text
1620 #: build/C/man3/regex.3:196
1621 msgid ""
1622 "The I<regmatch_t> structure which is the type of I<pmatch> is defined in "
1623 "I<E<lt>regex.hE<gt>>."
1624 msgstr ""
1625 "I<pmatch> の型である I<regmatch_t> 構造体は、 I<E<lt>regex.hE<gt>> 内で定義さ"
1626 "れる。"
1627
1628 #. type: Plain text
1629 #: build/C/man3/regex.3:203
1630 #, no-wrap
1631 msgid ""
1632 "typedef struct {\n"
1633 "    regoff_t rm_so;\n"
1634 "    regoff_t rm_eo;\n"
1635 "} regmatch_t;\n"
1636 msgstr ""
1637 "typedef struct {\n"
1638 "    regoff_t rm_so;\n"
1639 "    regoff_t rm_eo;\n"
1640 "} regmatch_t;\n"
1641
1642 #. type: Plain text
1643 #: build/C/man3/regex.3:214
1644 msgid ""
1645 "Each I<rm_so> element that is not -1 indicates the start offset of the next "
1646 "largest substring match within the string.  The relative I<rm_eo> element "
1647 "indicates the end offset of the match, which is the offset of the first "
1648 "character after the matching text."
1649 msgstr ""
1650 "構造体要素 I<rm_so> の値が -1 でない場合、それは文字列内での次の最大のマッチ"
1651 "ング部分の開始 オフセット位置を示す。それに対し、構造体要素 I<rm_eo> はマッチ"
1652 "ング部分の終了オフセット位置を示し、 マッチング部分の直後の文字のオフセット位"
1653 "置が使用される。"
1654
1655 #. type: SS
1656 #: build/C/man3/regex.3:214
1657 #, fuzzy, no-wrap
1658 #| msgid "Posix Error Reporting"
1659 msgid "POSIX error reporting"
1660 msgstr "POSIX エラーレポート"
1661
1662 #. type: Plain text
1663 #: build/C/man3/regex.3:221
1664 msgid ""
1665 "B<regerror>()  is used to turn the error codes that can be returned by both "
1666 "B<regcomp>()  and B<regexec>()  into error message strings."
1667 msgstr ""
1668 "B<regerror>()  は、 B<regcomp>()  と B<regexec>()  の実行によって得られるエ"
1669 "ラーコードから、エラーメッセージ文字列を 得るのに用いられる。"
1670
1671 #. type: Plain text
1672 #: build/C/man3/regex.3:243
1673 msgid ""
1674 "B<regerror>()  is passed the error code, I<errcode>, the pattern buffer, "
1675 "I<preg>, a pointer to a character string buffer, I<errbuf>, and the size of "
1676 "the string buffer, I<errbuf_size>.  It returns the size of the I<errbuf> "
1677 "required to contain the null-terminated error message string.  If both "
1678 "I<errbuf> and I<errbuf_size> are nonzero, I<errbuf> is filled in with the "
1679 "first I<errbuf_size - 1> characters of the error message and a terminating "
1680 "null byte (\\(aq\\e0\\(aq)."
1681 msgstr ""
1682 "B<regerror>()  はエラーコード I<errcode>、 パターンバッファ I<preg>、 文字列"
1683 "バッファへのポインタ I<errbuf>、 文字列バッファのサイズ I<errbuf_size> を引数"
1684 "にとる。 この関数は、ヌル文字で終端されたエラーメッセージ文字列を格納するのに"
1685 "必要な I<errbuf> のサイズを返す。もし I<errbuf> と I<errbuf_size> の両方が非 "
1686 "0 値であれば、 I<errbuf> には最初の I<errbuf_size - 1> 文字分にエラーメッセー"
1687 "ジと終端の NULL バイト (\\(aq\\e0\\(aq)  が収まるように代入される。"
1688
1689 #. type: SS
1690 #: build/C/man3/regex.3:243
1691 #, fuzzy, no-wrap
1692 #| msgid "POSIX Pattern Buffer Freeing"
1693 msgid "POSIX pattern buffer freeing"
1694 msgstr "POSIX パターンバッファ解放"
1695
1696 #. type: Plain text
1697 #: build/C/man3/regex.3:251
1698 msgid ""
1699 "Supplying B<regfree>()  with a precompiled pattern buffer, I<preg> will free "
1700 "the memory allocated to the pattern buffer by the compiling process, "
1701 "B<regcomp>()."
1702 msgstr ""
1703 "引数にコンパイルされたパターンバッファ I<preg> を与えて B<regfree>()  を呼び"
1704 "出すと、 B<regcomp>()  によるコンパイル時にパターンバッファに割り当てられたメ"
1705 "モリが解放される。"
1706
1707 #. type: Plain text
1708 #: build/C/man3/regex.3:254
1709 msgid ""
1710 "B<regcomp>()  returns zero for a successful compilation or an error code for "
1711 "failure."
1712 msgstr ""
1713 "B<regcomp>()  は、コンパイルの成功時には 0 を返し、失敗時にはエラーコードを返"
1714 "す。"
1715
1716 #. type: Plain text
1717 #: build/C/man3/regex.3:259
1718 msgid ""
1719 "B<regexec>()  returns zero for a successful match or B<REG_NOMATCH> for "
1720 "failure."
1721 msgstr ""
1722 "B<regexec>()  は、マッチングの成功時には 0 を返し、失敗時には B<REG_NOMATCH> "
1723 "を返す。"
1724
1725 #. type: SH
1726 #: build/C/man3/regex.3:259
1727 #, no-wrap
1728 msgid "ERRORS"
1729 msgstr "エラー"
1730
1731 #. type: Plain text
1732 #: build/C/man3/regex.3:262
1733 msgid "The following errors can be returned by B<regcomp>():"
1734 msgstr "B<regcomp>()  は以下のエラーを返す。"
1735
1736 #. type: TP
1737 #: build/C/man3/regex.3:262
1738 #, no-wrap
1739 msgid "B<REG_BADBR>"
1740 msgstr "B<REG_BADBR>"
1741
1742 #. type: Plain text
1743 #: build/C/man3/regex.3:265
1744 msgid "Invalid use of back reference operator."
1745 msgstr "無効な後方参照オペレータの使用。"
1746
1747 #. type: TP
1748 #: build/C/man3/regex.3:265
1749 #, no-wrap
1750 msgid "B<REG_BADPAT>"
1751 msgstr "B<REG_BADPAT>"
1752
1753 #. type: Plain text
1754 #: build/C/man3/regex.3:268
1755 msgid "Invalid use of pattern operators such as group or list."
1756 msgstr "グループやリストなどの、パターンオペレータの無効な使用。"
1757
1758 #. type: TP
1759 #: build/C/man3/regex.3:268
1760 #, no-wrap
1761 msgid "B<REG_BADRPT>"
1762 msgstr "B<REG_BADRPT>"
1763
1764 #. type: Plain text
1765 #: build/C/man3/regex.3:272
1766 msgid ""
1767 "Invalid use of repetition operators such as using \\(aq*\\(aq as the first "
1768 "character."
1769 msgstr ""
1770 "\\(aq*\\(aq が最初の文字としてくるような、無効な繰り返しオペレータの使用。"
1771
1772 #. type: TP
1773 #: build/C/man3/regex.3:272
1774 #, no-wrap
1775 msgid "B<REG_EBRACE>"
1776 msgstr "B<REG_EBRACE>"
1777
1778 #. type: Plain text
1779 #: build/C/man3/regex.3:275
1780 msgid "Un-matched brace interval operators."
1781 msgstr ""
1782 "インターバルオペレータ B<{}> (brace interval operators) が閉じていない。"
1783
1784 #. type: TP
1785 #: build/C/man3/regex.3:275
1786 #, no-wrap
1787 msgid "B<REG_EBRACK>"
1788 msgstr "B<REG_EBRACK>"
1789
1790 #. type: Plain text
1791 #: build/C/man3/regex.3:278
1792 msgid "Un-matched bracket list operators."
1793 msgstr "リストオペレータ B<[]> (bracket list operators) が閉じていない。"
1794
1795 #. type: TP
1796 #: build/C/man3/regex.3:278
1797 #, no-wrap
1798 msgid "B<REG_ECOLLATE>"
1799 msgstr "B<REG_ECOLLATE>"
1800
1801 #. type: Plain text
1802 #: build/C/man3/regex.3:281
1803 msgid "Invalid collating element."
1804 msgstr ""
1805 "照合順序の要素 (collating element) として有効ではない。 (訳注) 詳細は "
1806 "B<regex>(7)  を参照。"
1807
1808 #. type: TP
1809 #: build/C/man3/regex.3:281
1810 #, no-wrap
1811 msgid "B<REG_ECTYPE>"
1812 msgstr "B<REG_ECTYPE>"
1813
1814 #. type: Plain text
1815 #: build/C/man3/regex.3:284
1816 msgid "Unknown character class name."
1817 msgstr "未知のキャラクタクラス名。"
1818
1819 #. type: TP
1820 #: build/C/man3/regex.3:284
1821 #, no-wrap
1822 msgid "B<REG_EEND>"
1823 msgstr "B<REG_EEND>"
1824
1825 #. type: Plain text
1826 #: build/C/man3/regex.3:288
1827 #, fuzzy
1828 #| msgid "Non specific error.  This is not defined by POSIX.2."
1829 msgid "Nonspecific error.  This is not defined by POSIX.2."
1830 msgstr "未定義エラー。これは POSIX.2 には定義されていない。"
1831
1832 #. type: TP
1833 #: build/C/man3/regex.3:288
1834 #, no-wrap
1835 msgid "B<REG_EESCAPE>"
1836 msgstr "B<REG_EESCAPE>"
1837
1838 #. type: Plain text
1839 #: build/C/man3/regex.3:291
1840 msgid "Trailing backslash."
1841 msgstr "正規表現がバックスラッシュで終っている。"
1842
1843 #. type: TP
1844 #: build/C/man3/regex.3:291
1845 #, no-wrap
1846 msgid "B<REG_EPAREN>"
1847 msgstr "B<REG_EPAREN>"
1848
1849 #. type: Plain text
1850 #: build/C/man3/regex.3:294
1851 msgid "Un-matched parenthesis group operators."
1852 msgstr ""
1853 "グループオペレータ B<()> (parenthesis group operators) が閉じていない。"
1854
1855 #. type: TP
1856 #: build/C/man3/regex.3:294
1857 #, no-wrap
1858 msgid "B<REG_ERANGE>"
1859 msgstr "B<REG_ERANGE>"
1860
1861 #. type: Plain text
1862 #: build/C/man3/regex.3:298
1863 msgid ""
1864 "Invalid use of the range operator, e.g., the ending point of the range "
1865 "occurs prior to the starting point."
1866 msgstr ""
1867 "無効な範囲オペレータの使用。 例えば、範囲の終了位置が開始位置よりも前にあるよ"
1868 "うな場合。"
1869
1870 #. type: TP
1871 #: build/C/man3/regex.3:298
1872 #, no-wrap
1873 msgid "B<REG_ESIZE>"
1874 msgstr "B<REG_ESIZE>"
1875
1876 #. type: Plain text
1877 #: build/C/man3/regex.3:302
1878 msgid ""
1879 "Compiled regular expression requires a pattern buffer larger than 64Kb.  "
1880 "This is not defined by POSIX.2."
1881 msgstr ""
1882 "正規表現のコンパイルに、64Kb 以上のパターンバッファが必要。 これは POSIX.2 に"
1883 "は定義されていない。"
1884
1885 #. type: TP
1886 #: build/C/man3/regex.3:302
1887 #, no-wrap
1888 msgid "B<REG_ESPACE>"
1889 msgstr "B<REG_ESPACE>"
1890
1891 #. type: Plain text
1892 #: build/C/man3/regex.3:305
1893 msgid "The regex routines ran out of memory."
1894 msgstr "regex ルーチンがメモリを使いはたしている。"
1895
1896 #. type: TP
1897 #: build/C/man3/regex.3:305
1898 #, no-wrap
1899 msgid "B<REG_ESUBREG>"
1900 msgstr "B<REG_ESUBREG>"
1901
1902 #. type: Plain text
1903 #: build/C/man3/regex.3:308
1904 msgid "Invalid back reference to a subexpression."
1905 msgstr ""
1906 "サブエクスプレッション \\eB<(...\\e>)  (subexpression) への無効な後方参照。"
1907
1908 #. type: Plain text
1909 #: build/C/man3/regex.3:310 build/C/man3/wordexp.3:189
1910 msgid "POSIX.1-2001."
1911 msgstr "POSIX.1-2001."
1912
1913 #. type: Plain text
1914 #: build/C/man3/regex.3:313
1915 #, fuzzy
1916 #| msgid "B<grep>(1), B<regex>(3)"
1917 msgid "B<grep>(1), B<regex>(7)"
1918 msgstr "B<grep>(1), B<regex>(3)"
1919
1920 #. type: Plain text
1921 #: build/C/man3/regex.3:316
1922 msgid "The glibc manual section, I<Regular Expression Matching>"
1923 msgstr ""
1924
1925 #. type: TH
1926 #: build/C/man7/regex.7:37
1927 #, no-wrap
1928 msgid "2009-01-12"
1929 msgstr "2009-01-12"
1930
1931 #. type: Plain text
1932 #: build/C/man7/regex.7:40
1933 msgid "regex - POSIX.2 regular expressions"
1934 msgstr "regex - POSIX.2 正規表現"
1935
1936 #. type: Plain text
1937 #: build/C/man7/regex.7:54
1938 msgid ""
1939 "Regular expressions (\"RE\"s), as defined in POSIX.2, come in two forms: "
1940 "modern REs (roughly those of I<egrep>; POSIX.2 calls these \"extended\" "
1941 "REs)  and obsolete REs (roughly those of B<ed>(1); POSIX.2 \"basic\" REs).  "
1942 "Obsolete REs mostly exist for backward compatibility in some old programs; "
1943 "they will be discussed at the end.  POSIX.2 leaves some aspects of RE syntax "
1944 "and semantics open; \"\\*(dg\" marks decisions on these aspects that may not "
1945 "be fully portable to other POSIX.2 implementations."
1946 msgstr ""
1947 "正規表現 (Regular expression: RE) は POSIX.2 で定義されており、 二つの形式が"
1948 "ある。新しい正規表現 (modern RE) と古い正規表現 (obsolete RE)  である。新しい"
1949 "正規表現はだいたい I<egrep> のものと同じで、 POSIX.2 では「拡張」正規表現 "
1950 "(\"extended\" RE)  と呼ばれている。古い正規表現はだいたい B<ed>(1)  のものと"
1951 "同じで、 POSIX.2 では「基本」正規表現 (\"basic\" RE) である。 古い正規表現"
1952 "は、古いプログラムとの互換性を保つためのものである。 これについては最後に議論"
1953 "する。 POSIX.2 では、正規表現の文法や記号の一部が、未定義のまま残されてい"
1954 "る。 \"\\*(dg\" は、このような意味で、他の POSIX.2 の実装と 完全には互換でな"
1955 "いかも知れない部分である。"
1956
1957 #. type: Plain text
1958 #: build/C/man7/regex.7:58
1959 msgid ""
1960 "A (modern) RE is one\\*(dg or more nonempty\\*(dg I<branches>, separated by "
1961 "\\(aq|\\(aq.  It matches anything that matches one of the branches."
1962 msgstr ""
1963 "(新しい) 正規表現は一つ以上\\*(dg の空白でない I<枝 (branch)> からなる。 枝ど"
1964 "うしは \\(aq|\\(aq で区切られる。正規表現は、 枝のどれかにマッチ (match) した"
1965 "ものにマッチする。"
1966
1967 #. type: Plain text
1968 #: build/C/man7/regex.7:61
1969 msgid ""
1970 "A branch is one\\*(dg or more I<pieces>, concatenated.  It matches a match "
1971 "for the first, followed by a match for the second, etc."
1972 msgstr ""
1973 "枝は一つ以上の文節 (piece) が結合されたものである。 枝は第一の文節がマッチ"
1974 "し、 続いて第二の文節がマッチし、... したものにマッチする。"
1975
1976 #. type: Plain text
1977 #: build/C/man7/regex.7:70
1978 msgid ""
1979 "A piece is an I<atom> possibly followed by a single\\*(dg \\(aq*\\(aq, \\(aq+"
1980 "\\(aq, \\(aq?\\(aq, or I<bound>.  An atom followed by \\(aq*\\(aq matches a "
1981 "sequence of 0 or more matches of the atom.  An atom followed by \\(aq+\\(aq "
1982 "matches a sequence of 1 or more matches of the atom.  An atom followed by "
1983 "\\(aq?\\(aq matches a sequence of 0 or 1 matches of the atom."
1984 msgstr ""
1985 "文節はI<アトム (atom)> からなる。ただしアトムの後には一つ\\*(dg の \\(aq*"
1986 "\\(aq, \\(aq+\\(aq, \\(aq?\\(aq あるいは I<繰り返し指定 (bound)> が続くことも"
1987 "ある。 \\(aq*\\(aq が後置されたアトムは、マッチしたアトムの 0 個以上の並びに"
1988 "マッチする。 \\(aq+\\(aq が後置されたアトムは、マッチしたアトムの 1 個以上の"
1989 "並びにマッチする。 \\(aq?\\(aq が後置されたアトムは、マッチしたアトムの 0 個"
1990 "または 1 個にマッチする。"
1991
1992 #. type: Plain text
1993 #: build/C/man7/regex.7:88
1994 msgid ""
1995 "A I<bound> is \\(aq{\\(aq followed by an unsigned decimal integer, possibly "
1996 "followed by \\(aq,\\(aq possibly followed by another unsigned decimal "
1997 "integer, always followed by \\(aq}\\(aq.  The integers must lie between 0 "
1998 "and B<RE_DUP_MAX> (255\\*(dg) inclusive, and if there are two of them, the "
1999 "first may not exceed the second.  An atom followed by a bound containing one "
2000 "integer I<i> and no comma matches a sequence of exactly I<i> matches of the "
2001 "atom.  An atom followed by a bound containing one integer I<i> and a comma "
2002 "matches a sequence of I<i> or more matches of the atom.  An atom followed by "
2003 "a bound containing two integers I<i> and I<j> matches a sequence of I<i> "
2004 "through I<j> (inclusive) matches of the atom."
2005 msgstr ""
2006 "I<繰り返し指定>とは \\(aq{\\(aq に続いて、符号なし 10 進整数、\\(aq,\\(aq、 "
2007 "もう一つの 10 進整数、\\(aq}\\(aq を並べたものである。\\(aq,\\(aq と二つめの "
2008 "10 進整数は省略できる。二つめの 10 進整数だけを省略することもできる (最後の "
2009 "`}' は省略できない)。 整数は 0 以上 B<RE_DUP_MAX> (255\\*(dg) 以下の間で指定"
2010 "できる。 二つ指定する場合には、最初の数値は後の数値を越えてはならない。 整数 "
2011 "I<i> だけからなる繰り返し指定を後置されたアトムは、 アトムをぴったりちょうど "
2012 "I<i> 個だけ並べたものにマッチする。 整数 I<i> とコンマが指定された繰り返し指"
2013 "定を後置されたアトムは、 アトムを I<i>個以上並べたものにマッチする。 整数 "
2014 "I<i> と I<j> が指定された繰り返し指定を後置されたアトムは、 アトムを I<i>個以"
2015 "上 I<j> 個以下だけ並べたものにマッチする。"
2016
2017 #. type: Plain text
2018 #: build/C/man7/regex.7:105
2019 msgid ""
2020 "An atom is a regular expression enclosed in \"I<()>\" (matching a match for "
2021 "the regular expression), an empty set of \"I<()>\" (matching the null "
2022 "string)\\*(dg, a I<bracket expression> (see below), \\(aq.\\(aq (matching "
2023 "any single character), \\(aq^\\(aq (matching the null string at the "
2024 "beginning of a line), \\(aq$\\(aq (matching the null string at the end of a "
2025 "line), a \\(aq\\e\\(aq followed by one of the characters \"I<^.[$()|*+?{\\e>"
2026 "\" (matching that character taken as an ordinary character), a \\(aq\\e\\(aq "
2027 "followed by any other character\\*(dg (matching that character taken as an "
2028 "ordinary character, as if the \\(aq\\e\\(aq had not been present\\*(dg), or "
2029 "a single character with no other significance (matching that character).  A "
2030 "\\(aq{\\(aq followed by a character other than a digit is an ordinary "
2031 "character, not the beginning of a bound\\*(dg.  It is illegal to end an RE "
2032 "with \\(aq\\e\\(aq."
2033 msgstr ""
2034 "アトムの種類は以下の通り。\"I<()>\" に囲まれた正規表現 (その正規表現がマッチ"
2035 "する文字列にマッチする)、 中身が空の \"I<()>\" (null 文字列にマッチする)\\*"
2036 "(dg、 I<ブラケット表現 (bracket expression> :後述)、 \\(aq.\\(aq (任意の 1 文"
2037 "字にマッチする)、 \\(aq^\\(aq (行頭の空白文字にマッチする)、 \\(aq$\\(aq (行"
2038 "末の空白文字にマッチする)、 \\(aq\\e\\(aq に \"I<^.[$()|*+?{\\e>\" のいずれか"
2039 "一文字を後置したもの (通常の文字として扱われ、その文字にマッチする)、 \\(aq"
2040 "\\e\\(aq にそれ以外の文字を後置したもの\\*(dg (\\(aq\\e\\(aq がない場合と同じ"
2041 "ように、その文字にマッチする\\*(dg)、 特に意味を持たない文字一つ (その文字に"
2042 "マッチする)。 \\(aq{\\(aq は数字以外の文字が後置されると通常の文字として扱わ"
2043 "れ、 繰り返し指定の始まりとはされない\\*(dg。\\(aq\\e\\(aq で終わる正規表現は"
2044 "不正なものとみなされる。"
2045
2046 #. type: Plain text
2047 #: build/C/man7/regex.7:119
2048 msgid ""
2049 "A I<bracket expression> is a list of characters enclosed in \"I<[]>\".  It "
2050 "normally matches any single character from the list (but see below).  If the "
2051 "list begins with \\(aq^\\(aq, it matches any single character (but see "
2052 "below) I<not> from the rest of the list.  If two characters in the list are "
2053 "separated by \\(aq-\\(aq, this is shorthand for the full I<range> of "
2054 "characters between those two (inclusive) in the collating sequence, for "
2055 "example, \"I<[0-9]>\" in ASCII matches any decimal digit.  It is illegal\\*"
2056 "(dg for two ranges to share an endpoint, for example, \"I<a-c-e>\".  Ranges "
2057 "are very collating-sequence-dependent, and portable programs should avoid "
2058 "relying on them."
2059 msgstr ""
2060 "I<ブラケット表現>は \"I<[]>\" によって閉じられた文字のリストである。 これは通"
2061 "常リスト中に存在している文字にマッチする。 (例外あり、後述。) リストが \\(aq^"
2062 "\\(aq で始まると、 I<ブラケット表現>はリストに存在してI<いない>文字一つにマッ"
2063 "チする (例外あり、後述)。 リスト中の二つの文字が \\(aq-\\(aq で区切られている"
2064 "場合は、 これは照合順序 (collating sequence) でその二つの文字に挟まれる、 す"
2065 "べての文字の並びを短縮したものとみなされる (両端含む)。 例えば \"I<[0-9]>\" "
2066 "は ASCII では 10 進の数字 (digit) のいずれかにマッチする。 二つの領域指定が端"
2067 "点を共有してはならない\\*(dg。 つまり \"I<a-c-e>\" のようなものは不正である。"
2068 "領域指定は照合順序に強く依存する。 したがって移植性の高いプログラムを作る場合"
2069 "は、 領域指定には頼らないほうが良いだろう。 【B<訳注>: 照合順序 (collating "
2070 "sequence) というのは、国際化 (Internationalization) に関連した用語です。アル"
2071 "ファベット順に単語を並 べる際には、言語によって並べる基準が異なります。照合順"
2072 "序は、その差異を 吸収するための仕組みです。 例えば、スペイン語では ch という"
2073 "文字並びを特別扱いするため、アルファベッ ト順が a, b, c, ch, d, e, ... の順に"
2074 "なるそうです。このようなシーケンス のことを collating sequence と言います。こ"
2075 "のとき `ch' という文字並びは、 単語整列の際にあたかも「一文字」のように扱われ"
2076 "ます。ここで、 順序付けを行う際に最小の単位となる、`a'、`b' の文字や `ch' の"
2077 "ような特別な文字並びなど、照合順序の要素のことを collating element と言いま"
2078 "す。collating sequence は、文字単位ではなく collating element を単位として定"
2079 "義されます。】"
2080
2081 #. type: Plain text
2082 #: build/C/man7/regex.7:130
2083 msgid ""
2084 "To include a literal \\(aq]\\(aq in the list, make it the first character "
2085 "(following a possible \\(aq^\\(aq).  To include a literal \\(aq-\\(aq, make "
2086 "it the first or last character, or the second endpoint of a range.  To use a "
2087 "literal \\(aq-\\(aq as the first endpoint of a range, enclose it in \"I<[.>"
2088 "\" and \"I<.]>\" to make it a collating element (see below).  With the "
2089 "exception of these and some combinations using \\(aq[\\(aq (see next "
2090 "paragraphs), all other special characters, including \\(aq\\e\\(aq, lose "
2091 "their special significance within a bracket expression."
2092 msgstr ""
2093 "文字 \\(aq]\\(aq そのものをリストに入れたい場合は、 最初の文字として指定すれ"
2094 "ば良い (\\(aq^\\(aq) の後に続けるのでも良い)。 文字 \\(aq-\\(aq そのものをリ"
2095 "ストに入れたい場合は、 最初か最後の文字とすれば良い。 あるいは領域指定の終端"
2096 "文字として指定しても良い。 \\(aq-\\(aq を領域指定の先頭文字に指定するに"
2097 "は、\"I<[.>\" と \"I<.]>\" で囲って、 照合順序の要素 (collating element: 後"
2098 "述) にすれば良い。 他の特殊文字 ( も含む) は、 ブラケット表現の内部ではすべて"
2099 "通常の文字として扱われる。"
2100
2101 #. type: Plain text
2102 #: build/C/man7/regex.7:142
2103 msgid ""
2104 "Within a bracket expression, a collating element (a character, a "
2105 "multicharacter sequence that collates as if it were a single character, or a "
2106 "collating-sequence name for either)  enclosed in \"I<[.>\" and \"I<.]>\" "
2107 "stands for the sequence of characters of that collating element.  The "
2108 "sequence is a single element of the bracket expression's list.  A bracket "
2109 "expression containing a multicharacter collating element can thus match more "
2110 "than one character, for example, if the collating sequence includes a \"ch\" "
2111 "collating element, then the RE \"I<[[.ch.]]*c>\" matches the first five "
2112 "characters of \"chchcc\"."
2113 msgstr ""
2114 "ブラケット表現の内部では、\"I<[.>\" と \"I<.]>\" に囲われた照合順序の要素"
2115 "は、 その要素に対応する文字並びを表す。 「照合順序の要素」とは、 [1] 文字、 "
2116 "[2] 単一文字のように扱われる複数文字のシーケンス、 [3] 1, 2 いずれかに対応す"
2117 "る照合順序上の名前、のいずれかである。 この繰り返しは、ブラケット表現のリスト"
2118 "における単一の要素となる。 上記 [2] の、「複数文字からなる照合順序要素」を含"
2119 "むブラケット表現は、 したがって一文字以上にマッチすることがある。 例えば、も"
2120 "し照合順序が \"ch\" という要素を含んでいる場合には、 正規表現 \"I<[[.ch.]]*c>"
2121 "\" は \"chchcc\" の最初の 5 文字にマッチする。"
2122
2123 #. type: Plain text
2124 #: build/C/man7/regex.7:154
2125 msgid ""
2126 "Within a bracket expression, a collating element enclosed in \"I<[=>\" and "
2127 "\"I<=]>\" is an equivalence class, standing for the sequences of characters "
2128 "of all collating elements equivalent to that one, including itself.  (If "
2129 "there are no other equivalent collating elements, the treatment is as if the "
2130 "enclosing delimiters were \"I<[.>\" and \"I<.]>\".)  For example, if o and "
2131 "\\o'o^' are the members of an equivalence class, then \"I<[[=o=]]>\", \"I<[[="
2132 "\\o'o^'=]]>\", and \"I<[o\\o'o^']>\" are all synonymous.  An equivalence "
2133 "class may not\\*(dg be an endpoint of a range."
2134 msgstr ""
2135 "ブラケット表現の内部では、\"I<[=>\" と \"I<=]>\" に囲まれた照合順序の要素"
2136 "は、 等価クラス (equivalence class) となる。 これは、その要素と等価な要素すべ"
2137 "てからなる文字シーケンス (自身も含む) を表す。 他に等価な要素がなければ、 取"
2138 "り扱いは \"I<[.>\" と \"I<.]>\" で囲まれている場合と同じである。 例えば o と "
2139 "ou が等価クラスのメンバーであれば、 \"I<[[=o=]]>\", \"I<[[=\\o'o^'=]]>\", "
2140 "\"I<[o\\o'o^']>\" はすべて同じ意味になる。 等価クラスは領域指定の端点にはなれ"
2141 "ない\\*(dg。"
2142
2143 #. type: Plain text
2144 #: build/C/man7/regex.7:160
2145 msgid ""
2146 "Within a bracket expression, the name of a I<character class> enclosed in "
2147 "\"I<[:>\" and \"I<:]>\" stands for the list of all characters belonging to "
2148 "that class.  Standard character class names are:"
2149 msgstr ""
2150 "ブラケット表現の内部では、\"I<[:>\" と \"I<:]>\" で囲われたI<文字クラス "
2151 "(character class)> はそのクラスに属するすべての文字のリストを表す。 標準で用"
2152 "意されている文字クラスの名前は以下の通り:"
2153
2154 #. type: ta
2155 #: build/C/man7/regex.7:163
2156 #, no-wrap
2157 msgid "3c 6c 9c"
2158 msgstr "3c 6c 9c"
2159
2160 #. type: Plain text
2161 #: build/C/man7/regex.7:168
2162 #, no-wrap
2163 msgid ""
2164 "alnum\tdigit\tpunct\n"
2165 "alpha\tgraph\tspace\n"
2166 "blank\tlower\tupper\n"
2167 "cntrl\tprint\txdigit\n"
2168 msgstr ""
2169 "alnum\tdigit\tpunct\n"
2170 "alpha\tgraph\tspace\n"
2171 "blank\tlower\tupper\n"
2172 "cntrl\tprint\txdigit\n"
2173
2174 #.  As per http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=295666
2175 #.  The following does not seem to apply in the glibc implementation
2176 #.  .PP
2177 #.  There are two special cases\*(dg of bracket expressions:
2178 #.  the bracket expressions "\fI[[:<:]]\fP" and "\fI[[:>:]]\fP" match
2179 #.  the null string at the beginning and end of a word respectively.
2180 #.  A word is defined as a sequence of
2181 #.  word characters
2182 #.  which is neither preceded nor followed by
2183 #.  word characters.
2184 #.  A word character is an
2185 #.  .I alnum
2186 #.  character (as defined by
2187 #.  .BR wctype (3))
2188 #.  or an underscore.
2189 #.  This is an extension,
2190 #.  compatible with but not specified by POSIX.2,
2191 #.  and should be used with
2192 #.  caution in software intended to be portable to other systems.
2193 #. type: Plain text
2194 #: build/C/man7/regex.7:194
2195 msgid ""
2196 "These stand for the character classes defined in B<wctype>(3).  A locale may "
2197 "provide others.  A character class may not be used as an endpoint of a range."
2198 msgstr ""
2199 "これらは B<wctype>(3)  で定義されている文字クラスを表している。ロケール "
2200 "(locale) によって、 これら以外のクラスが定義されることもある。 文字クラスは領"
2201 "域指定の端点にはなれない。"
2202
2203 #. type: Plain text
2204 #: build/C/man7/regex.7:206
2205 msgid ""
2206 "In the event that an RE could match more than one substring of a given "
2207 "string, the RE matches the one starting earliest in the string.  If the RE "
2208 "could match more than one substring starting at that point, it matches the "
2209 "longest.  Subexpressions also match the longest possible substrings, subject "
2210 "to the constraint that the whole match be as long as possible, with "
2211 "subexpressions starting earlier in the RE taking priority over ones starting "
2212 "later.  Note that higher-level subexpressions thus take priority over their "
2213 "lower-level component subexpressions."
2214 msgstr ""
2215 "正規表現が、与えられた文字列の複数の部分文字列 (substring) にマッチできるよう"
2216 "な場合には、 最も先頭の近くから始まるものにマッチする。 その位置から始まり、"
2217 "正規表現がマッチできる部分文字列が複数ある場合には、 最長のものにマッチす"
2218 "る。 部分正規表現 (subexpression) も最も長い部分文字列にマッチする。 ただし、"
2219 "全体のマッチが最長であるように、という条件が優先される。 正規表現の中で先に現"
2220 "れる部分正規表現は、後に現れるものより優先される。 ただし、より高位の部分正規"
2221 "表現は、 それを構成する低位の部分正規表現よりも優先されることに注意すること。"
2222
2223 #. type: Plain text
2224 #: build/C/man7/regex.7:218
2225 msgid ""
2226 "Match lengths are measured in characters, not collating elements.  A null "
2227 "string is considered longer than no match at all.  For example, \"I<bb*>\" "
2228 "matches the three middle characters of \"abbbc\", \"I<(wee|week)(knights|"
2229 "nights)>\" matches all ten characters of \"weeknights\", when \"I<(.*).*>\" "
2230 "is matched against \"abc\" the parenthesized subexpression matches all three "
2231 "characters, and when \"I<(a*)*>\" is matched against \"bc\" both the whole "
2232 "RE and the parenthesized subexpression match the null string."
2233 msgstr ""
2234 "マッチ長は照合順序の要素ではなく、文字数を単位としてカウントされる。 null 文"
2235 "字列は、全くマッチしなかった場合よりも長いとみなされる。 例えば \"I<bb*>\" "
2236 "は \"abbbc\" のまん中の 3 文字にマッチする。 \"I<(wee|week)(knights|nights)>"
2237 "\" は \"weeknights\" の全体にマッチする。 \"I<(.*).*>\" を \"abc\" にマッチさ"
2238 "せると、 括弧の内部の部分正規表現が 3 文字すべてにマッチする。 \"I<(a*)*>\" "
2239 "を \"bc\" にマッチさせると、正規表現全体も、 括弧で括られた部分正規表現も "
2240 "null 文字列にマッチする。"
2241
2242 #. type: Plain text
2243 #: build/C/man7/regex.7:229
2244 msgid ""
2245 "If case-independent matching is specified, the effect is much as if all case "
2246 "distinctions had vanished from the alphabet.  When an alphabetic that exists "
2247 "in multiple cases appears as an ordinary character outside a bracket "
2248 "expression, it is effectively transformed into a bracket expression "
2249 "containing both cases, for example, \\(aqx\\(aq becomes \"I<[xX]>\".  When "
2250 "it appears inside a bracket expression, all case counterparts of it are "
2251 "added to the bracket expression, so that, for example, \"I<[x]>\" becomes "
2252 "\"I<[xX]>\" and \"I<[^x]>\" becomes \"I<[^xX]>\"."
2253 msgstr ""
2254 "マッチが大文字・小文字を無視するように指定されると、 アルファベット全体から大"
2255 "小文字の区別が無くなったかのような効果となる。 大文字・小文字を持つアルファ"
2256 "ベットがブラケット表現の外部で 通常の文字として現れると、 これは実効的に大小"
2257 "両方の文字のブラケット表現のように変換される。 すなわち \\(aqx\\(aq は \"I<"
2258 "[xX]>\" となる。ブラケット表現の内部に現れると、 大文字なら小文字が、小文字な"
2259 "ら大文字がそのブラケット表現に加えられる。 すなわち \"I<[x]>\" は \"I<[xX]>"
2260 "\" に、\"I<[^x]>\" は \"I<[^xX]>\" になる。"
2261
2262 #. type: Plain text
2263 #: build/C/man7/regex.7:235
2264 msgid ""
2265 "No particular limit is imposed on the length of REs\\*(dg.  Programs "
2266 "intended to be portable should not employ REs longer than 256 bytes, as an "
2267 "implementation can refuse to accept such REs and remain POSIX-compliant."
2268 msgstr ""
2269 "正規表現の長さには特に制限はない\\*(dg。 ただし移植性を高くしたいプログラムで"
2270 "は、 256 バイトより長い正規表現は実行しないようにするほうが良い。 なぜなら、"
2271 "そのような正規表現を拒否し、 しかも POSIX 互換を保つような実装が可能だからで"
2272 "ある。"
2273
2274 #. type: Plain text
2275 #: build/C/man7/regex.7:251
2276 msgid ""
2277 "Obsolete (\"basic\") regular expressions differ in several respects.  \\(aq|"
2278 "\\(aq, \\(aq+\\(aq, and \\(aq?\\(aq are ordinary characters and there is no "
2279 "equivalent for their functionality.  The delimiters for bounds are \"I<\\e{>"
2280 "\" and \"I<\\e}>\", with \\(aq{\\(aq and \\(aq}\\(aq by themselves ordinary "
2281 "characters.  The parentheses for nested subexpressions are \"I<\\e(>\" and "
2282 "\"I<\\e)>\", with \\(aq(\\(aq and \\(aq)\\(aq by themselves ordinary "
2283 "characters.  \\(aq^\\(aq is an ordinary character except at the beginning of "
2284 "the RE or\\*(dg the beginning of a parenthesized subexpression, \\(aq$\\(aq "
2285 "is an ordinary character except at the end of the RE or\\*(dg the end of a "
2286 "parenthesized subexpression, and \\(aq*\\(aq is an ordinary character if it "
2287 "appears at the beginning of the RE or the beginning of a parenthesized "
2288 "subexpression (after a possible leading \\(aq^\\(aq)."
2289 msgstr ""
2290 "古い (\"基本\") 正規表現は、いくつかの点において異なる。 \\(aq|\\(aq, \\(aq+"
2291 "\\(aq, and \\(aq?\\(aq は通常の文字となる。 対応する機能は存在しない。繰り返"
2292 "し指定の区切りは \"I<\\e{>\" および \"I<\\e}>\" となる。\\(aq{\\(aq と "
2293 "\\(aq}\\(aq は、 単独では通常の文字として扱われる。 部分正規表現をネストする"
2294 "括弧は \"I<\\e(>\" および \"I<\\e)>\" となり、 \\(aq(\\(aq と \\(aq)\\(aq は"
2295 "単独では通常の文字となる。 \\(aq^\\(aq は正規表現の先頭か、 括弧でくくられた"
2296 "部分表現の先頭\\*(dgを除いて通常の文字となる。 \\(aq$\\(aq は正規表現の末尾"
2297 "か、 括弧でくくられた部分正規表現の末尾\\*(dgを除いて通常の文字となる。 "
2298 "\\(aq*\\(aq は、正規表現の先頭か、 括弧でくくられた部分文字列の先頭に置かれた"
2299 "場合は通常の文字となる (\\(aq^\\(aq) が前置されていてもよい)。"
2300
2301 #. type: Plain text
2302 #: build/C/man7/regex.7:259
2303 msgid ""
2304 "Finally, there is one new type of atom, a I<back reference>: \\(aq\\e\\(aq "
2305 "followed by a nonzero decimal digit I<d> matches the same sequence of "
2306 "characters matched by the I<d>th parenthesized subexpression (numbering "
2307 "subexpressions by the positions of their opening parentheses, left to "
2308 "right), so that, for example, \"I<\\e([bc]\\e)\\e1>\" matches \"bb\" or \"cc"
2309 "\" but not \"bc\"."
2310 msgstr ""
2311 "最後に、アトムとして別のタイプが存在する。 I<後方参照 (back reference)> であ"
2312 "る。 \\(aq\\e\\(aq の後に 0 でない 10 進数値文字 I<d> が続くと、 括弧でくくら"
2313 "れた部分正規表現の I<d> 番目にマッチした文字並びと同じものにマッチする。 (部"
2314 "分正規表現の番号付けは、 開き括弧 `(' の位置が左のものから右のものへ向かって"
2315 "なされる。)  したがって \"I<\\e([bc]\\e)\\e1>\" は \"bb\" または \"cc\" には"
2316 "マッチするが、\"bc\" にはマッチしない。"
2317
2318 #. type: Plain text
2319 #: build/C/man7/regex.7:261
2320 msgid "Having two kinds of REs is a botch."
2321 msgstr "正規表現が 2 種類あるのは格好悪い。"
2322
2323 #. type: Plain text
2324 #: build/C/man7/regex.7:267
2325 msgid ""
2326 "The current POSIX.2 spec says that \\(aq)\\(aq is an ordinary character in "
2327 "the absence of an unmatched \\(aq(\\(aq; this was an unintentional result of "
2328 "a wording error, and change is likely.  Avoid relying on it."
2329 msgstr ""
2330 "現在の POSIX.2 規格においては、\\(aq)\\(aq は、 対応する \\(aq(\\(aq がない場"
2331 "合には通常の文字として扱われることになっている。 しかしこれは、本来の意図とは"
2332 "異なる記述上のエラーであり、 修正される可能性が高い。これに依存したコードは使"
2333 "わないこと。"
2334
2335 #. type: Plain text
2336 #: build/C/man7/regex.7:274
2337 msgid ""
2338 "Back references are a dreadful botch, posing major problems for efficient "
2339 "implementations.  They are also somewhat vaguely defined (does \"I<a\\e(\\e(b"
2340 "\\e)*\\e2\\e)*d>\" match \"abbbd\"?).  Avoid using them."
2341 msgstr ""
2342 "後方参照はひどく出来の悪い代物である。 効率の良い実装をするのはとても難し"
2343 "い。 また定義があいまいである。 (\"I<a\\e(\\e(b\\e)*\\e2\\e)*d>\" は \"abbbd"
2344 "\" にマッチすると思うか?)  使わないほうが良い。"
2345
2346 #.  As per http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=295666
2347 #.  The following does not seem to apply in the glibc implementation
2348 #.  .PP
2349 #.  The syntax for word boundaries is incredibly ugly.
2350 #. type: Plain text
2351 #: build/C/man7/regex.7:282
2352 msgid ""
2353 "POSIX.2's specification of case-independent matching is vague.  The \"one "
2354 "case implies all cases\" definition given above is current consensus among "
2355 "implementors as to the right interpretation."
2356 msgstr ""
2357 "POSIX.2 の規格では、case (大文字か小文字か)  に依存しないマッチの記述があいま"
2358 "いである。 現在のところでは「一つの case がすべての case を意味する」 という"
2359 "上記の定義が正しい解釈であるというのが、 実装者の間での共通認識のようである。"
2360
2361 #. type: SH
2362 #: build/C/man7/regex.7:282
2363 #, no-wrap
2364 msgid "AUTHOR"
2365 msgstr "著者"
2366
2367 #.  Sigh... The page license means we must have the author's name
2368 #.  in the formatted output.
2369 #. type: Plain text
2370 #: build/C/man7/regex.7:286
2371 msgid "This page was taken from Henry Spencer's regex package."
2372 msgstr "このページは Henry Spencer の regex パッケージから採録したものである。"
2373
2374 #. type: Plain text
2375 #: build/C/man7/regex.7:289
2376 msgid "B<grep>(1), B<regex>(3)"
2377 msgstr "B<grep>(1), B<regex>(3)"
2378
2379 #. type: Plain text
2380 #: build/C/man7/regex.7:291
2381 msgid "POSIX.2, section 2.8 (Regular Expression Notation)."
2382 msgstr "POSIX.2, section 2.8 (Regular Expression Notation)."
2383
2384 #. type: TH
2385 #: build/C/man3/wordexp.3:24
2386 #, no-wrap
2387 msgid "WORDEXP"
2388 msgstr "WORDEXP"
2389
2390 #. type: TH
2391 #: build/C/man3/wordexp.3:24
2392 #, no-wrap
2393 msgid "2008-07-14"
2394 msgstr "2008-07-14"
2395
2396 #. type: Plain text
2397 #: build/C/man3/wordexp.3:27
2398 msgid "wordexp, wordfree - perform word expansion like a posix-shell"
2399 msgstr "wordexp, wordfree - posix シェルのように単語の展開を行う"
2400
2401 #. type: Plain text
2402 #: build/C/man3/wordexp.3:29
2403 msgid "B<#include E<lt>wordexp.hE<gt>>"
2404 msgstr "B<#include E<lt>wordexp.hE<gt>>"
2405
2406 #. type: Plain text
2407 #: build/C/man3/wordexp.3:31
2408 msgid ""
2409 "B<int wordexp(const char *>I<s>B<, wordexp_t *>I<p>B<, int >I<flags>B<);>"
2410 msgstr ""
2411 "B<int wordexp(const char *>I<s>B<, wordexp_t *>I<p>B<, int >I<flags>B<);>"
2412
2413 #. type: Plain text
2414 #: build/C/man3/wordexp.3:33
2415 msgid "B<void wordfree(wordexp_t *>I<p>B<);>"
2416 msgstr "B<void wordfree(wordexp_t *>I<p>B<);>"
2417
2418 #. type: Plain text
2419 #: build/C/man3/wordexp.3:37
2420 msgid ""
2421 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
2422 msgstr "glibc 向けの機能検査マクロの要件 (B<feature_test_macros>(7)  参照):"
2423
2424 #. type: Plain text
2425 #: build/C/man3/wordexp.3:42
2426 msgid "B<wordexp>(), B<wordfree>(): _XOPEN_SOURCE"
2427 msgstr "B<wordexp>(), B<wordfree>(): _XOPEN_SOURCE"
2428
2429 #. type: Plain text
2430 #: build/C/man3/wordexp.3:76
2431 msgid ""
2432 "The function B<wordexp>()  performs a shell-like expansion of the string "
2433 "I<s> and returns the result in the structure pointed to by I<p>.  The data "
2434 "type I<wordexp_t> is a structure that at least has the fields I<we_wordc>, "
2435 "I<we_wordv>, and I<we_offs>.  The field I<we_wordc> is a I<size_t> that "
2436 "gives the number of words in the expansion of I<s>.  The field I<we_wordv> "
2437 "is a I<char **> that points to the array of words found.  The field "
2438 "I<we_offs> of type I<size_t> is sometimes (depending on I<flags>, see below) "
2439 "used to indicate the number of initial elements in the I<we_wordv> array "
2440 "that should be filled with NULLs."
2441 msgstr ""
2442 "関数 B<wordexp>()  はシェルのように文字列 I<s> を展開し、 I<p> で指し示す構造"
2443 "体に結果を返す。 データ型 I<wordexp_t> は少なくともフィールド I<we_wordc>, "
2444 "I<we_wordv>, I<we_offs> を持つ構造体である。 フィールド I<we_wordc> は "
2445 "I<size_t> であり、 I<s> を展開した結果に単語がいくつあるかを表す。 フィール"
2446 "ド I<we_wordv> は I<char **> であり、見つかった単語の配列を指し示す。 "
2447 "I<size_t> 型のフィールド I<we_offs> は、 I<we_wordv> 配列にある初期要素のうち"
2448 "いくつが NULL で埋められるべきかを表すのに使われたりする (I<flags> により決定"
2449 "される。下記を参照。)。"
2450
2451 #. type: Plain text
2452 #: build/C/man3/wordexp.3:84
2453 msgid ""
2454 "The function B<wordfree>()  frees the allocated memory again.  More "
2455 "precisely, it does not free its argument, but it frees the array I<we_wordv> "
2456 "and the strings that points to."
2457 msgstr ""
2458 "関数 B<wordfree>()  は割り当てたメモリを再度解放する。 より正確にいうと、この"
2459 "関数はその引き数を解放するのではなく、 配列 I<we_wordv> とそれが指し示す文字"
2460 "列を解放する。"
2461
2462 #. type: SS
2463 #: build/C/man3/wordexp.3:84
2464 #, no-wrap
2465 msgid "The string argument"
2466 msgstr "文字列引き数"
2467
2468 #. type: Plain text
2469 #: build/C/man3/wordexp.3:94
2470 msgid ""
2471 "Since the expansion is the same as the expansion by the shell (see B<sh>"
2472 "(1))  of the parameters to a command, the string I<s> must not contain "
2473 "characters that would be illegal in shell command parameters.  In "
2474 "particular, there must not be any unescaped newline or |, &, ;, E<lt>, "
2475 "E<gt>, (, ), {, } characters outside a command substitution or parameter "
2476 "substitution context."
2477 msgstr ""
2478 "この展開はシェルによるコマンドのパラメータの展開 (B<sh>(1)  を参照) と同じで"
2479 "あるので、文字列 I<s> はシェルコマンドパラメータで不正とされる文字を含んでは"
2480 "ならない。 特にエスケープされていない改行、|, &, ;, E<lt>, E<gt>, (, ), {, } "
2481 "文字を コマンド置換やパラメータ置換の場面以外に含めてはならない。"
2482
2483 #. type: Plain text
2484 #: build/C/man3/wordexp.3:100
2485 msgid ""
2486 "If the argument I<s> contains a word that starts with an unquoted comment "
2487 "character #, then it is unspecified whether that word and all following "
2488 "words are ignored, or the # is treated as a non-comment character."
2489 msgstr ""
2490 "引き数 I<s> にクォートしていないコメント文字 # で始まる単語が含まれている場合"
2491 "には、 その単語とそれ以降の単語が無視されるか、 それとも # がコメント文字とし"
2492 "て扱わないかは、規定されていない。"
2493
2494 #. type: SS
2495 #: build/C/man3/wordexp.3:100
2496 #, no-wrap
2497 msgid "The expansion"
2498 msgstr "展開"
2499
2500 #. type: Plain text
2501 #: build/C/man3/wordexp.3:107
2502 msgid ""
2503 "The expansion done consists of the following stages: tilde expansion "
2504 "(replacing ~user by user's home directory), variable substitution (replacing "
2505 "$FOO by the value of the environment variable FOO), command substitution "
2506 "(replacing $(command) or \\`command\\` by the output of command), arithmetic "
2507 "expansion, field splitting, wildcard expansion, quote removal."
2508 msgstr ""
2509 "実行される展開は、以下の段階で構成される: チルダ展開 (~user を user のホーム"
2510 "ディレクトリに置き換える)、 変数展開 ($FOO を環境変数 FOO の値に置き換え"
2511 "る)、 コマンド展開 ($(command) または \\`command\\` を command の出力で置き換"
2512 "える)、 算術展開、フィールド分割、ワイルドカード展開、クォートの除去。"
2513
2514 #. type: Plain text
2515 #: build/C/man3/wordexp.3:110
2516 msgid ""
2517 "The result of expansion of special parameters ($@, $*, $#, $?, $-, $$, $!, "
2518 "$0) is unspecified."
2519 msgstr ""
2520 "特殊なパラメータ ($@, $*, $#, $?, $-, $$, $!, $0) の 展開結果は規定されていな"
2521 "い。"
2522
2523 #. type: Plain text
2524 #: build/C/man3/wordexp.3:113
2525 msgid ""
2526 "Field splitting is done using the environment variable $IFS.  If it is not "
2527 "set, the field separators are space, tab and newline."
2528 msgstr ""
2529 "フィールド分割は環境変数 $IFS を用いて行われる。 この環境変数が設定されていな"
2530 "い場合、 フィールド区切り文字はスペース・タブ・改行である。"
2531
2532 #. type: SS
2533 #: build/C/man3/wordexp.3:113
2534 #, no-wrap
2535 msgid "The output array"
2536 msgstr "出力される配列"
2537
2538 #. type: Plain text
2539 #: build/C/man3/wordexp.3:117
2540 msgid "The array I<we_wordv> contains the words found, followed by a NULL."
2541 msgstr "配列 I<we_wordv> は見つかった単語をを含み、最後に NULL が続く。"
2542
2543 #. type: SS
2544 #: build/C/man3/wordexp.3:117
2545 #, no-wrap
2546 msgid "The flags argument"
2547 msgstr "flags 引き数"
2548
2549 #. type: Plain text
2550 #: build/C/man3/wordexp.3:121
2551 msgid "The I<flag> argument is a bitwise inclusive OR of the following values:"
2552 msgstr "I<flags> 引き数は以下の値のビット包含的 OR である:"
2553
2554 #. type: TP
2555 #: build/C/man3/wordexp.3:121
2556 #, no-wrap
2557 msgid "B<WRDE_APPEND>"
2558 msgstr "B<WRDE_APPEND>"
2559
2560 #. type: Plain text
2561 #: build/C/man3/wordexp.3:124
2562 msgid "Append the words found to the array resulting from a previous call."
2563 msgstr "見つかった単語を前回の呼び出し結果の配列に追加する。"
2564
2565 #. type: TP
2566 #: build/C/man3/wordexp.3:124
2567 #, no-wrap
2568 msgid "B<WRDE_DOOFFS>"
2569 msgstr "B<WRDE_DOOFFS>"
2570
2571 #. type: Plain text
2572 #: build/C/man3/wordexp.3:132
2573 msgid ""
2574 "Insert I<we_offs> initial NULLs in the array I<we_wordv>.  (These are not "
2575 "counted in the returned I<we_wordc>.)"
2576 msgstr ""
2577 "初期状態である I<we_offs> 個の NULL を配列 I<we_wordv> に挿入する (これらは返"
2578 "される I<we_wordc> にはカウントされない)。"
2579
2580 #. type: TP
2581 #: build/C/man3/wordexp.3:132
2582 #, no-wrap
2583 msgid "B<WRDE_NOCMD>"
2584 msgstr "B<WRDE_NOCMD>"
2585
2586 #. type: Plain text
2587 #: build/C/man3/wordexp.3:135
2588 msgid "Don't do command substitution."
2589 msgstr "コマンド置換を行わない。"
2590
2591 #. type: TP
2592 #: build/C/man3/wordexp.3:135
2593 #, no-wrap
2594 msgid "B<WRDE_REUSE>"
2595 msgstr "B<WRDE_REUSE>"
2596
2597 #. type: Plain text
2598 #: build/C/man3/wordexp.3:145
2599 msgid ""
2600 "The argument I<p> resulted from a previous call to B<wordexp>(), and "
2601 "B<wordfree>()  was not called.  Reuse the allocated storage."
2602 msgstr ""
2603 "引き数 I<p> は前回の B<wordexp>()  の呼び出し結果であり、 B<wordfree>()  が "
2604 "(まだ) 呼び出されない。 割り当てられた領域を再利用する。"
2605
2606 #. type: TP
2607 #: build/C/man3/wordexp.3:145
2608 #, no-wrap
2609 msgid "B<WRDE_SHOWERR>"
2610 msgstr "B<WRDE_SHOWERR>"
2611
2612 #. type: Plain text
2613 #: build/C/man3/wordexp.3:154
2614 msgid ""
2615 "Normally during command substitution I<stderr> is redirected to I</dev/"
2616 "null>.  This flag specifies that I<stderr> is not to be redirected."
2617 msgstr ""
2618 "通常はコマンド置換のときに I<stderr> が I</dev/null> にリダイレクトされる。 "
2619 "このフラグは I<stderr> をリダイレクトしないように指定する。"
2620
2621 #. type: TP
2622 #: build/C/man3/wordexp.3:154
2623 #, no-wrap
2624 msgid "B<WRDE_UNDEF>"
2625 msgstr "B<WRDE_UNDEF>"
2626
2627 #. type: Plain text
2628 #: build/C/man3/wordexp.3:157
2629 msgid "Consider it an error if an undefined shell variable is expanded."
2630 msgstr "未定義のシェル変数を展開しようとした場合に、エラーとして扱う。"
2631
2632 #. type: Plain text
2633 #: build/C/man3/wordexp.3:161
2634 msgid ""
2635 "In case of success 0 is returned.  In case of error one of the following "
2636 "five values is returned."
2637 msgstr ""
2638 "成功した場合は 0 が返される。 エラーの場合は以下の 5 つの値のうちの 1 つが返"
2639 "される。"
2640
2641 #. type: TP
2642 #: build/C/man3/wordexp.3:161
2643 #, no-wrap
2644 msgid "B<WRDE_BADCHAR>"
2645 msgstr "B<WRDE_BADCHAR>"
2646
2647 #. type: Plain text
2648 #: build/C/man3/wordexp.3:164
2649 msgid ""
2650 "Illegal occurrence of newline or one of |, &, ;, E<lt>, E<gt>, (, ), {, }."
2651 msgstr ""
2652 "改行または |, &, ;, E<lt>, E<gt>, (, ), {, } のうちの 1 つが不正に出現した。"
2653
2654 #. type: TP
2655 #: build/C/man3/wordexp.3:164
2656 #, no-wrap
2657 msgid "B<WRDE_BADVAL>"
2658 msgstr "B<WRDE_BADVAL>"
2659
2660 #. type: Plain text
2661 #: build/C/man3/wordexp.3:170
2662 msgid ""
2663 "An undefined shell variable was referenced, and the B<WRDE_UNDEF> flag told "
2664 "us to consider this an error."
2665 msgstr ""
2666 "未定義のシェル変数が参照され、かつ B<WRDE_UNDEF> フラグでこれをエラーとして扱"
2667 "うように指示されている。"
2668
2669 #. type: TP
2670 #: build/C/man3/wordexp.3:170
2671 #, no-wrap
2672 msgid "B<WRDE_CMDSUB>"
2673 msgstr "B<WRDE_CMDSUB>"
2674
2675 #. type: Plain text
2676 #: build/C/man3/wordexp.3:175
2677 msgid ""
2678 "Command substitution occurred, and the B<WRDE_NOCMD> flag told us to "
2679 "consider this an error."
2680 msgstr ""
2681 "コマンド置換が起こり、かつ B<WRDE_NOCMD> フラグでこれをエラーとして扱うように"
2682 "指示されている。"
2683
2684 #. type: TP
2685 #: build/C/man3/wordexp.3:175
2686 #, no-wrap
2687 msgid "B<WRDE_NOSPACE>"
2688 msgstr "B<WRDE_NOSPACE>"
2689
2690 #. type: Plain text
2691 #: build/C/man3/wordexp.3:178
2692 msgid "Out of memory."
2693 msgstr "メモリが足りない。"
2694
2695 #. type: TP
2696 #: build/C/man3/wordexp.3:178
2697 #, no-wrap
2698 msgid "B<WRDE_SYNTAX>"
2699 msgstr "B<WRDE_SYNTAX>"
2700
2701 #. type: Plain text
2702 #: build/C/man3/wordexp.3:182
2703 msgid "Shell syntax error, such as unbalanced parentheses or unmatched quotes."
2704 msgstr ""
2705 "対応する括弧がない、クォートが合致しないといった、 シェルの書式エラー。"
2706
2707 #. type: SH
2708 #: build/C/man3/wordexp.3:182
2709 #, no-wrap
2710 msgid "VERSIONS"
2711 msgstr "バージョン"
2712
2713 #. type: Plain text
2714 #: build/C/man3/wordexp.3:187
2715 msgid ""
2716 "B<wordexp>()  and B<wordfree>()  are provided in glibc since version 2.1."
2717 msgstr ""
2718 "B<wordexp>()  と B<wordfree>()  は、バージョン 2.1 以降の glibc で提供されて"
2719 "いる。"
2720
2721 #. type: Plain text
2722 #: build/C/man3/wordexp.3:192
2723 msgid ""
2724 "The output of the following example program is approximately that of \"ls [a-"
2725 "c]*.c\"."
2726 msgstr ""
2727 "以下のサンプルプログラムの出力はだいたい \"ls [a-c]*.c\" と同じになる。"
2728
2729 #. type: Plain text
2730 #: build/C/man3/wordexp.3:197
2731 #, no-wrap
2732 msgid ""
2733 "#include E<lt>stdio.hE<gt>\n"
2734 "#include E<lt>stdlib.hE<gt>\n"
2735 "#include E<lt>wordexp.hE<gt>\n"
2736 msgstr ""
2737 "#include E<lt>stdio.hE<gt>\n"
2738 "#include E<lt>stdlib.hE<gt>\n"
2739 "#include E<lt>wordexp.hE<gt>\n"
2740
2741 #. type: Plain text
2742 #: build/C/man3/wordexp.3:204
2743 #, no-wrap
2744 msgid ""
2745 "int\n"
2746 "main(int argc, char **argv)\n"
2747 "{\n"
2748 "    wordexp_t p;\n"
2749 "    char **w;\n"
2750 "    int i;\n"
2751 msgstr ""
2752 "int\n"
2753 "main(int argc, char **argv)\n"
2754 "{\n"
2755 "    wordexp_t p;\n"
2756 "    char **w;\n"
2757 "    int i;\n"
2758
2759 #. type: Plain text
2760 #: build/C/man3/wordexp.3:212
2761 #, no-wrap
2762 msgid ""
2763 "    wordexp(\"[a-c]*.c\", &p, 0);\n"
2764 "    w = p.we_wordv;\n"
2765 "    for (i = 0; i E<lt> p.we_wordc; i++)\n"
2766 "        printf(\"%s\\en\", w[i]);\n"
2767 "    wordfree(&p);\n"
2768 "    exit(EXIT_SUCCESS);\n"
2769 "}\n"
2770 msgstr ""
2771 "    wordexp(\"[a-c]*.c\", &p, 0);\n"
2772 "    w = p.we_wordv;\n"
2773 "    for (i = 0; i E<lt> p.we_wordc; i++)\n"
2774 "        printf(\"%s\\en\", w[i]);\n"
2775 "    wordfree(&p);\n"
2776 "    exit(EXIT_SUCCESS);\n"
2777 "}\n"
2778
2779 #. type: Plain text
2780 #: build/C/man3/wordexp.3:216
2781 msgid "B<fnmatch>(3), B<glob>(3)"
2782 msgstr "B<fnmatch>(3), B<glob>(3)"
2783
2784 #~ msgid "2003-08-24"
2785 #~ msgstr "2003-08-24"
2786
2787 #~ msgid "2011-09-27"
2788 #~ msgstr "2011-09-27"
2789
2790 #~ msgid "B<grep>(1), B<regex>(7), GNU regex manual"
2791 #~ msgstr "B<grep>(1), B<regex>(7), GNU regex マニュアル"