1 # Japanese translations for Rust package
2 # Copyright (C) 2014 The Rust Project Developers
3 # This file is distributed under the same license as the Rust package.
4 # Automatically generated, 2014.
8 "Project-Id-Version: Rust 0.10-pre\n"
9 "POT-Creation-Date: 2014-02-03 08:13+0900\n"
10 "PO-Revision-Date: 2014-01-13 12:01+0900\n"
11 "Last-Translator: Automatically generated\n"
12 "Language-Team: none\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=1; plural=0;\n"
20 #: src/doc/guide-pointers.md:2
22 #| msgid "% The Rust Language Tutorial"
23 msgid "% The Rust Pointer Guide"
24 msgstr "% Rust 言語チュートリアル"
27 #: src/doc/guide-pointers.md:21
29 #| msgid "~~~~ let square = |x: int| -> uint { (x * x) as uint }; ~~~~"
30 msgid "~~~rust fn succ(x: &int) -> int { *x + 1 } ~~~"
33 "let square = |x: int| -> uint { (x * x) as uint };\n"
37 #: src/doc/guide-pointers.md:31
39 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
44 " let succ_number = succ(number);\n"
45 " println!(\"{}\", succ_number);\n"
50 "# struct Point { x: f64, y: f64 }\n"
51 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
52 "let origin = Point { x: 0.0, y: 0.0 };"
55 #: src/doc/guide-pointers.md:50
57 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
60 "# fn succ(x: &int) -> int { *x + 1 }\n"
63 " let succ_number = succ(&number);\n"
64 " println!(\"{}\", succ_number);\n"
69 "# struct Point { x: f64, y: f64 }\n"
70 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
71 "let origin = Point { x: 0.0, y: 0.0 };"
74 #: src/doc/guide-pointers.md:58
76 #| msgid "~~~~ let square = |x: int| -> uint { (x * x) as uint }; ~~~~"
77 msgid "~~~rust fn succ(x: int) -> int { x + 1 }"
80 "let square = |x: int| -> uint { (x * x) as uint };\n"
84 #: src/doc/guide-pointers.md:65
86 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
90 " let succ_number = succ(number);\n"
91 " println!(\"{}\", succ_number);\n"
96 "# struct Point { x: f64, y: f64 }\n"
97 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
98 "let origin = Point { x: 0.0, y: 0.0 };"
101 #: src/doc/guide-pointers.md:109
103 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
106 "# fn transform(p: Point) -> Point { p }\n"
113 "# struct Point { x: f64, y: f64 }\n"
114 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
115 "let origin = Point { x: 0.0, y: 0.0 };"
118 #: src/doc/guide-pointers.md:115
120 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
123 " let p0 = Point { x: 5, y: 10};\n"
124 " let p1 = transform(p0);\n"
125 " println!(\"{:?}\", p1);\n"
129 "# struct Point { x: f64, y: f64 }\n"
130 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
131 "let origin = Point { x: 0.0, y: 0.0 };"
134 #: src/doc/guide-pointers.md:129
136 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
143 "# let p0 = Point { x: 5, y: 10};\n"
144 "fn transform(p: &Point) -> Point {\n"
145 " Point { x: p.x + 1, y: p.y + 1}\n"
149 "# struct Point { x: f64, y: f64 }\n"
150 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
151 "let origin = Point { x: 0.0, y: 0.0 };"
154 #: src/doc/guide-pointers.md:141 src/doc/guide-pointers.md:221
155 #: src/doc/guide-pointers.md:238 src/doc/guide-pointers.md:300
157 #| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
167 "extern crate world;\n"
168 "fn main() { println(~\"hello \" + world::explore()); }\n"
172 #: src/doc/guide-pointers.md:145
174 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
176 "fn transform(p: Point) -> Point {\n"
177 " Point { x: p.x + 1, y: p.y + 1}\n"
181 "# struct Point { x: f64, y: f64 }\n"
182 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
183 "let origin = Point { x: 0.0, y: 0.0 };"
186 #: src/doc/guide-pointers.md:152
188 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
191 " let p0 = Point { x: 5, y: 10};\n"
192 " let p1 = transform(p0);\n"
193 " println!(\"{:?}\", p1);\n"
198 "# struct Point { x: f64, y: f64 }\n"
199 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
200 "let origin = Point { x: 0.0, y: 0.0 };"
203 #: src/doc/guide-pointers.md:162
205 #| msgid "# Borrowed pointers"
206 msgid "# Owned Pointers"
210 #: src/doc/guide-pointers.md:175
212 msgid "## References to Traits"
213 msgstr "# ポインタのデリファレンス"
216 #: src/doc/guide-pointers.md:181
218 #| msgid "# Data structures"
219 msgid "## Recursive Data Structures"
223 #: src/doc/guide-pointers.md:189
225 #| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
230 " Cons(T, ~List<T>),\n"
235 "extern crate world;\n"
236 "fn main() { println(~\"hello \" + world::explore()); }\n"
240 #: src/doc/guide-pointers.md:195
242 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
245 " let list: List<int> = Cons(1, ~Cons(2, ~Cons(3, ~Nil)));\n"
246 " println!(\"{:?}\", list);\n"
251 "# struct Point { x: f64, y: f64 }\n"
252 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
253 "let origin = Point { x: 0.0, y: 0.0 };"
256 #: src/doc/guide-pointers.md:215
258 msgid "For example, this will work:"
262 #: src/doc/guide-pointers.md:229
264 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
267 " let a = Point { x: 10, y: 20 };\n"
269 " println!(\"{}\", a.x);\n"
275 "# struct Point { x: f64, y: f64 }\n"
276 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
277 "let origin = Point { x: 0.0, y: 0.0 };"
280 #: src/doc/guide-pointers.md:246
282 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
285 " let a = ~Point { x: 10, y: 20 };\n"
287 " println!(\"{}\", a.x);\n"
293 "# struct Point { x: f64, y: f64 }\n"
294 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
295 "let origin = Point { x: 0.0, y: 0.0 };"
298 #: src/doc/guide-pointers.md:251
300 #| msgid "## Managed boxes"
301 msgid "# Managed Pointers"
302 msgstr "## マネージドボックス"
305 #: src/doc/guide-pointers.md:269
307 #| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
317 "extern crate world;\n"
318 "fn main() { println(~\"hello \" + world::explore()); }\n"
322 #: src/doc/guide-pointers.md:277
324 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
327 " let a = ~Point { x: 10, y: 20 };\n"
329 " println!(\"{}\", b.x);\n"
330 " println!(\"{}\", a.x);\n"
335 "# struct Point { x: f64, y: f64 }\n"
336 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
337 "let origin = Point { x: 0.0, y: 0.0 };"
340 #: src/doc/guide-pointers.md:308
342 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
345 " let a = @Point { x: 10, y: 20 };\n"
347 " println!(\"{}\", b.x);\n"
348 " println!(\"{}\", a.x);\n"
353 "# struct Point { x: f64, y: f64 }\n"
354 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
355 "let origin = Point { x: 0.0, y: 0.0 };"
358 #: src/doc/guide-pointers.md:326 src/doc/tutorial.md:1360
361 msgstr "# ポインタのデリファレンス"
364 #: src/doc/guide-pointers.md:336
366 #| msgid "~~~~ use std::task::spawn;"
367 msgid "~~~rust use std::num::sqrt;"
370 "use std::task::spawn;"
373 #: src/doc/guide-pointers.md:341
375 #| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
384 "extern crate world;\n"
385 "fn main() { println(~\"hello \" + world::explore()); }\n"
389 #: src/doc/guide-pointers.md:352
391 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
394 " let origin = @Point { x: 0.0, y: 0.0 };\n"
395 " let p1 = ~Point { x: 5.0, y: 3.0 };\n"
398 "# struct Point { x: f64, y: f64 }\n"
399 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
400 "let origin = Point { x: 0.0, y: 0.0 };"
403 #: src/doc/guide-pointers.md:378
405 #| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
409 " println!(\"{}\", x);\n"
416 "extern crate world;\n"
417 "fn main() { println(~\"hello \" + world::explore()); }\n"
421 #: src/doc/guide-pointers.md:396
423 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
430 " println!(\"Oh no: {:?}\", y);\n"
434 " println!(\"Oh no: {:?}\", x);\n"
439 "# struct Point { x: f64, y: f64 }\n"
440 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
441 "let origin = Point { x: 0.0, y: 0.0 };"
444 #: src/doc/guide-pointers.md:407
446 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
456 "# struct Point { x: f64, y: f64 }\n"
457 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
458 "let origin = Point { x: 0.0, y: 0.0 };"
461 #: src/doc/guide-pointers.md:415
463 #| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
465 " println!(\"Oh no: {:?}\", y);\n"
469 " println!(\"Oh no: {:?}\", x);\n"
474 "# struct Point { x: f64, y: f64 }\n"
475 "let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
476 "let origin = Point { x: 0.0, y: 0.0 };"
479 #: src/doc/guide-pointers.md:433
481 #| msgid "# Dereferencing pointers"
482 msgid "# Returning Pointers"
483 msgstr "# ポインタのデリファレンス"
486 #: src/doc/guide-pointers.md:444
488 #| msgid "~~~~ let square = |x: int| -> uint { (x * x) as uint }; ~~~~"
491 "fn foo(x: ~int) -> ~int {\n"
496 "let square = |x: int| -> uint { (x * x) as uint };\n"
500 #: src/doc/guide-pointers.md:450
502 #| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
512 "extern crate world;\n"
513 "fn main() { println(~\"hello \" + world::explore()); }\n"
517 #: src/doc/guide-pointers.md:457 src/doc/guide-pointers.md:471
519 #| msgid "~~~~ let square = |x: int| -> uint { (x * x) as uint }; ~~~~"
522 "fn foo(x: ~int) -> int {\n"
527 "let square = |x: int| -> uint { (x * x) as uint };\n"
531 #: src/doc/guide-pointers.md:463
533 #| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
537 " let y = ~foo(x);\n"
543 "extern crate world;\n"
544 "fn main() { println(~\"hello \" + world::explore()); }\n"
548 #: src/doc/guide-pointers.md:477
550 #| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
554 " let y = @foo(x);\n"
560 "extern crate world;\n"
561 "fn main() { println(~\"hello \" + world::explore()); }\n"
565 #: src/doc/guide-pointers.md:491
567 #| msgid "# Modules and crates"
568 msgid "# Related Resources"
569 msgstr "# モジュールとクレート"
571 #. type: Bullet: '* '
572 #: src/doc/guide-pointers.md:492
574 #| msgid "% The Rust Language Tutorial"
575 msgid "[Lifetimes guide](guide-lifetimes.html)"
576 msgstr "% Rust 言語チュートリアル"