1 // /usr/libexec/gcc/powerpc-unknown-linux-gnu/4.1.2/cc1plus -quiet -D_GNU_SOURCE -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux -Asystem=unix -Asystem=posix conftest.cc -msecure-plt -quiet -dumpbase conftest.cc -mcpu=G3 -mtune=G3 -auxbase conftest -O2 -o - -frandom-seed=0
8 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iostream" 1 3
9 # 42 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iostream" 3
11 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iostream" 3
12 #pragma GCC visibility push(default)
14 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++config.h" 1 3
15 # 35 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++config.h" 3
16 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/os_defines.h" 1 3
17 # 39 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/os_defines.h" 3
18 # 1 "/usr/include/features.h" 1 3 4
19 # 323 "/usr/include/features.h" 3 4
20 # 1 "/usr/include/sys/cdefs.h" 1 3 4
21 # 313 "/usr/include/sys/cdefs.h" 3 4
22 # 1 "/usr/include/bits/wordsize.h" 1 3 4
23 # 314 "/usr/include/sys/cdefs.h" 2 3 4
24 # 324 "/usr/include/features.h" 2 3 4
25 # 346 "/usr/include/features.h" 3 4
26 # 1 "/usr/include/gnu/stubs.h" 1 3 4
30 # 1 "/usr/include/bits/wordsize.h" 1 3 4
31 # 5 "/usr/include/gnu/stubs.h" 2 3 4
34 # 1 "/usr/include/gnu/stubs-32.h" 1 3 4
35 # 8 "/usr/include/gnu/stubs.h" 2 3 4
36 # 347 "/usr/include/features.h" 2 3 4
37 # 40 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/os_defines.h" 2 3
38 # 36 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++config.h" 2 3
41 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/cpu_defines.h" 1 3
42 # 39 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++config.h" 2 3
47 namespace __gnu_debug_def { }
51 using namespace __gnu_debug_def;
53 # 46 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iostream" 2 3
54 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 1 3
55 # 42 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
57 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
58 #pragma GCC visibility push(default)
60 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ios" 1 3
61 # 42 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ios" 3
63 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ios" 3
64 #pragma GCC visibility push(default)
66 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iosfwd" 1 3
67 # 42 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iosfwd" 3
69 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iosfwd" 3
70 #pragma GCC visibility push(default)
73 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++locale.h" 1 3
74 # 39 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++locale.h" 3
76 # 40 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++locale.h" 3
78 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstring" 1 3
79 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstring" 3
81 # 49 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstring" 3
82 #pragma GCC visibility push(default)
84 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstddef" 1 3
85 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstddef" 3
87 # 49 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstddef" 3
88 #pragma GCC visibility push(default)
90 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
91 # 152 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 3 4
92 typedef int ptrdiff_t;
93 # 214 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 3 4
94 typedef unsigned int size_t;
95 # 52 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstddef" 2 3
103 #pragma GCC visibility pop
104 # 52 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstring" 2 3
106 # 1 "/usr/include/string.h" 1 3 4
107 # 28 "/usr/include/string.h" 3 4
113 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
114 # 34 "/usr/include/string.h" 2 3 4
119 extern void *memcpy (void *__restrict __dest,
120 __const void *__restrict __src, size_t __n)
121 throw () __attribute__ ((__nonnull__ (1, 2)));
124 extern void *memmove (void *__dest, __const void *__src, size_t __n)
125 throw () __attribute__ ((__nonnull__ (1, 2)));
132 extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
134 throw () __attribute__ ((__nonnull__ (1, 2)));
140 extern void *memset (void *__s, int __c, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
143 extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
144 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
147 extern void *memchr (__const void *__s, int __c, size_t __n)
148 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
154 extern void *rawmemchr (__const void *__s, int __c)
155 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
158 extern void *memrchr (__const void *__s, int __c, size_t __n)
159 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
165 extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
166 throw () __attribute__ ((__nonnull__ (1, 2)));
168 extern char *strncpy (char *__restrict __dest,
169 __const char *__restrict __src, size_t __n)
170 throw () __attribute__ ((__nonnull__ (1, 2)));
173 extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
174 throw () __attribute__ ((__nonnull__ (1, 2)));
176 extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
177 size_t __n) throw () __attribute__ ((__nonnull__ (1, 2)));
180 extern int strcmp (__const char *__s1, __const char *__s2)
181 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
183 extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
184 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
187 extern int strcoll (__const char *__s1, __const char *__s2)
188 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
190 extern size_t strxfrm (char *__restrict __dest,
191 __const char *__restrict __src, size_t __n)
192 throw () __attribute__ ((__nonnull__ (2)));
199 # 1 "/usr/include/xlocale.h" 1 3 4
200 # 28 "/usr/include/xlocale.h" 3 4
201 typedef struct __locale_struct
204 struct locale_data *__locales[13];
207 const unsigned short int *__ctype_b;
208 const int *__ctype_tolower;
209 const int *__ctype_toupper;
212 const char *__names[13];
214 # 119 "/usr/include/string.h" 2 3 4
217 extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l)
218 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
220 extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
221 __locale_t __l) throw () __attribute__ ((__nonnull__ (2, 4)));
226 extern char *strdup (__const char *__s)
227 throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
234 extern char *strndup (__const char *__string, size_t __n)
235 throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
236 # 165 "/usr/include/string.h" 3 4
239 extern char *strchr (__const char *__s, int __c)
240 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
242 extern char *strrchr (__const char *__s, int __c)
243 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
249 extern char *strchrnul (__const char *__s, int __c)
250 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
256 extern size_t strcspn (__const char *__s, __const char *__reject)
257 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
260 extern size_t strspn (__const char *__s, __const char *__accept)
261 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
263 extern char *strpbrk (__const char *__s, __const char *__accept)
264 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
266 extern char *strstr (__const char *__haystack, __const char *__needle)
267 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
271 extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
272 throw () __attribute__ ((__nonnull__ (2)));
277 extern char *__strtok_r (char *__restrict __s,
278 __const char *__restrict __delim,
279 char **__restrict __save_ptr)
280 throw () __attribute__ ((__nonnull__ (2, 3)));
282 extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
283 char **__restrict __save_ptr)
284 throw () __attribute__ ((__nonnull__ (2, 3)));
289 extern char *strcasestr (__const char *__haystack, __const char *__needle)
290 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
297 extern void *memmem (__const void *__haystack, size_t __haystacklen,
298 __const void *__needle, size_t __needlelen)
299 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3)));
303 extern void *__mempcpy (void *__restrict __dest,
304 __const void *__restrict __src, size_t __n)
305 throw () __attribute__ ((__nonnull__ (1, 2)));
306 extern void *mempcpy (void *__restrict __dest,
307 __const void *__restrict __src, size_t __n)
308 throw () __attribute__ ((__nonnull__ (1, 2)));
314 extern size_t strlen (__const char *__s)
315 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
321 extern size_t strnlen (__const char *__string, size_t __maxlen)
322 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
328 extern char *strerror (int __errnum) throw ();
330 # 281 "/usr/include/string.h" 3 4
331 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
332 throw () __attribute__ ((__nonnull__ (2)));
338 extern void __bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
342 extern void bcopy (__const void *__src, void *__dest, size_t __n)
343 throw () __attribute__ ((__nonnull__ (1, 2)));
346 extern void bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
349 extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
350 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
353 extern char *index (__const char *__s, int __c)
354 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
357 extern char *rindex (__const char *__s, int __c)
358 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
362 extern int ffs (int __i) throw () __attribute__ ((__const__));
367 extern int ffsl (long int __l) throw () __attribute__ ((__const__));
369 __extension__ extern int ffsll (long long int __ll)
370 throw () __attribute__ ((__const__));
375 extern int strcasecmp (__const char *__s1, __const char *__s2)
376 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
379 extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
380 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
386 extern int strcasecmp_l (__const char *__s1, __const char *__s2,
388 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
390 extern int strncasecmp_l (__const char *__s1, __const char *__s2,
391 size_t __n, __locale_t __loc)
392 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4)));
398 extern char *strsep (char **__restrict __stringp,
399 __const char *__restrict __delim)
400 throw () __attribute__ ((__nonnull__ (1, 2)));
405 extern int strverscmp (__const char *__s1, __const char *__s2)
406 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
409 extern char *strsignal (int __sig) throw ();
412 extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src)
413 throw () __attribute__ ((__nonnull__ (1, 2)));
414 extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
415 throw () __attribute__ ((__nonnull__ (1, 2)));
419 extern char *__stpncpy (char *__restrict __dest,
420 __const char *__restrict __src, size_t __n)
421 throw () __attribute__ ((__nonnull__ (1, 2)));
422 extern char *stpncpy (char *__restrict __dest,
423 __const char *__restrict __src, size_t __n)
424 throw () __attribute__ ((__nonnull__ (1, 2)));
427 extern char *strfry (char *__string) throw () __attribute__ ((__nonnull__ (1)));
430 extern void *memfrob (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
437 extern char *basename (__const char *__filename) throw () __attribute__ ((__nonnull__ (1)));
438 # 426 "/usr/include/string.h" 3 4
440 # 54 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstring" 2 3
441 # 79 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstring" 3
465 memchr(void* __p, int __c, size_t __n)
466 { return memchr(const_cast<const void*>(__p), __c, __n); }
471 strchr(char* __s1, int __n)
472 { return __builtin_strchr(const_cast<const char*>(__s1), __n); }
477 strpbrk(char* __s1, const char* __s2)
478 { return __builtin_strpbrk(const_cast<const char*>(__s1), __s2); }
483 strrchr(char* __s1, int __n)
484 { return __builtin_strrchr(const_cast<const char*>(__s1), __n); }
489 strstr(char* __s1, const char* __s2)
490 { return __builtin_strstr(const_cast<const char*>(__s1), __s2); }
493 #pragma GCC visibility pop
494 # 42 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++locale.h" 2 3
495 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdio" 1 3
496 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdio" 3
498 # 49 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdio" 3
499 #pragma GCC visibility push(default)
504 # 1 "/usr/include/stdio.h" 1 3 4
505 # 30 "/usr/include/stdio.h" 3 4
510 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
511 # 35 "/usr/include/stdio.h" 2 3 4
513 # 1 "/usr/include/bits/types.h" 1 3 4
514 # 28 "/usr/include/bits/types.h" 3 4
515 # 1 "/usr/include/bits/wordsize.h" 1 3 4
516 # 29 "/usr/include/bits/types.h" 2 3 4
519 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
520 # 32 "/usr/include/bits/types.h" 2 3 4
523 typedef unsigned char __u_char;
524 typedef unsigned short int __u_short;
525 typedef unsigned int __u_int;
526 typedef unsigned long int __u_long;
529 typedef signed char __int8_t;
530 typedef unsigned char __uint8_t;
531 typedef signed short int __int16_t;
532 typedef unsigned short int __uint16_t;
533 typedef signed int __int32_t;
534 typedef unsigned int __uint32_t;
539 __extension__ typedef signed long long int __int64_t;
540 __extension__ typedef unsigned long long int __uint64_t;
548 __extension__ typedef long long int __quad_t;
549 __extension__ typedef unsigned long long int __u_quad_t;
550 # 134 "/usr/include/bits/types.h" 3 4
551 # 1 "/usr/include/bits/typesizes.h" 1 3 4
552 # 135 "/usr/include/bits/types.h" 2 3 4
555 __extension__ typedef __u_quad_t __dev_t;
556 __extension__ typedef unsigned int __uid_t;
557 __extension__ typedef unsigned int __gid_t;
558 __extension__ typedef unsigned long int __ino_t;
559 __extension__ typedef __u_quad_t __ino64_t;
560 __extension__ typedef unsigned int __mode_t;
561 __extension__ typedef unsigned int __nlink_t;
562 __extension__ typedef long int __off_t;
563 __extension__ typedef __quad_t __off64_t;
564 __extension__ typedef int __pid_t;
565 __extension__ typedef struct { int __val[2]; } __fsid_t;
566 __extension__ typedef long int __clock_t;
567 __extension__ typedef unsigned long int __rlim_t;
568 __extension__ typedef __u_quad_t __rlim64_t;
569 __extension__ typedef unsigned int __id_t;
570 __extension__ typedef long int __time_t;
571 __extension__ typedef unsigned int __useconds_t;
572 __extension__ typedef long int __suseconds_t;
574 __extension__ typedef int __daddr_t;
575 __extension__ typedef long int __swblk_t;
576 __extension__ typedef int __key_t;
579 __extension__ typedef int __clockid_t;
582 __extension__ typedef void * __timer_t;
585 __extension__ typedef long int __blksize_t;
590 __extension__ typedef long int __blkcnt_t;
591 __extension__ typedef __quad_t __blkcnt64_t;
594 __extension__ typedef unsigned long int __fsblkcnt_t;
595 __extension__ typedef __u_quad_t __fsblkcnt64_t;
598 __extension__ typedef unsigned long int __fsfilcnt_t;
599 __extension__ typedef __u_quad_t __fsfilcnt64_t;
601 __extension__ typedef int __ssize_t;
605 typedef __off64_t __loff_t;
606 typedef __quad_t *__qaddr_t;
607 typedef char *__caddr_t;
610 __extension__ typedef int __intptr_t;
613 __extension__ typedef unsigned int __socklen_t;
614 # 37 "/usr/include/stdio.h" 2 3 4
624 typedef struct _IO_FILE FILE;
630 # 62 "/usr/include/stdio.h" 3 4
631 typedef struct _IO_FILE __FILE;
632 # 72 "/usr/include/stdio.h" 3 4
633 # 1 "/usr/include/libio.h" 1 3 4
634 # 32 "/usr/include/libio.h" 3 4
635 # 1 "/usr/include/_G_config.h" 1 3 4
636 # 14 "/usr/include/_G_config.h" 3 4
637 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
638 # 355 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 3 4
639 typedef unsigned int wint_t;
640 # 15 "/usr/include/_G_config.h" 2 3 4
641 # 24 "/usr/include/_G_config.h" 3 4
642 # 1 "/usr/include/wchar.h" 1 3 4
643 # 48 "/usr/include/wchar.h" 3 4
644 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
645 # 49 "/usr/include/wchar.h" 2 3 4
647 # 1 "/usr/include/bits/wchar.h" 1 3 4
648 # 51 "/usr/include/wchar.h" 2 3 4
649 # 76 "/usr/include/wchar.h" 3 4
659 # 25 "/usr/include/_G_config.h" 2 3 4
671 # 44 "/usr/include/_G_config.h" 3 4
672 # 1 "/usr/include/gconv.h" 1 3 4
673 # 28 "/usr/include/gconv.h" 3 4
674 # 1 "/usr/include/wchar.h" 1 3 4
675 # 48 "/usr/include/wchar.h" 3 4
676 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
677 # 49 "/usr/include/wchar.h" 2 3 4
678 # 29 "/usr/include/gconv.h" 2 3 4
681 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
682 # 32 "/usr/include/gconv.h" 2 3 4
697 __GCONV_ILLEGAL_INPUT,
698 __GCONV_INCOMPLETE_INPUT,
700 __GCONV_ILLEGAL_DESCRIPTOR,
701 __GCONV_INTERNAL_ERROR
708 __GCONV_IS_LAST = 0x0001,
709 __GCONV_IGNORE_ERRORS = 0x0002
715 struct __gconv_step_data;
716 struct __gconv_loaded_object;
717 struct __gconv_trans_data;
721 typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *,
722 __const unsigned char **, __const unsigned char *,
723 unsigned char **, size_t *, int, int);
726 typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char);
729 typedef int (*__gconv_init_fct) (struct __gconv_step *);
730 typedef void (*__gconv_end_fct) (struct __gconv_step *);
734 typedef int (*__gconv_trans_fct) (struct __gconv_step *,
735 struct __gconv_step_data *, void *,
736 __const unsigned char *,
737 __const unsigned char **,
738 __const unsigned char *, unsigned char **,
742 typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *,
743 __const unsigned char *,
744 unsigned char *, unsigned char *);
747 typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***,
751 typedef int (*__gconv_trans_init_fct) (void **, const char *);
752 typedef void (*__gconv_trans_end_fct) (void *);
754 struct __gconv_trans_data
757 __gconv_trans_fct __trans_fct;
758 __gconv_trans_context_fct __trans_context_fct;
759 __gconv_trans_end_fct __trans_end_fct;
761 struct __gconv_trans_data *__next;
768 struct __gconv_loaded_object *__shlib_handle;
769 __const char *__modname;
777 __gconv_btowc_fct __btowc_fct;
778 __gconv_init_fct __init_fct;
779 __gconv_end_fct __end_fct;
783 int __min_needed_from;
784 int __max_needed_from;
796 struct __gconv_step_data
798 unsigned char *__outbuf;
799 unsigned char *__outbufend;
807 int __invocation_counter;
813 __mbstate_t *__statep;
818 struct __gconv_trans_data *__trans;
823 typedef struct __gconv_info
826 struct __gconv_step *__steps;
827 __extension__ struct __gconv_step_data __data [];
829 # 45 "/usr/include/_G_config.h" 2 3 4
832 struct __gconv_info __cd;
835 struct __gconv_info __cd;
836 struct __gconv_step_data __data;
840 typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
841 typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
842 typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
843 typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
844 # 33 "/usr/include/libio.h" 2 3 4
845 # 53 "/usr/include/libio.h" 3 4
846 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stdarg.h" 1 3 4
847 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stdarg.h" 3 4
848 typedef __builtin_va_list __gnuc_va_list;
849 # 54 "/usr/include/libio.h" 2 3 4
850 # 166 "/usr/include/libio.h" 3 4
851 struct _IO_jump_t; struct _IO_FILE;
852 # 176 "/usr/include/libio.h" 3 4
853 typedef void _IO_lock_t;
860 struct _IO_marker *_next;
861 struct _IO_FILE *_sbuf;
866 # 199 "/usr/include/libio.h" 3 4
870 enum __codecvt_result
877 # 267 "/usr/include/libio.h" 3 4
887 char* _IO_write_base;
894 char *_IO_backup_base;
897 struct _IO_marker *_markers;
899 struct _IO_FILE *_chain;
911 unsigned short _cur_column;
912 signed char _vtable_offset;
918 # 315 "/usr/include/libio.h" 3 4
920 # 324 "/usr/include/libio.h" 3 4
929 char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
937 struct _IO_FILE_plus;
939 extern struct _IO_FILE_plus _IO_2_1_stdin_;
940 extern struct _IO_FILE_plus _IO_2_1_stdout_;
941 extern struct _IO_FILE_plus _IO_2_1_stderr_;
942 # 360 "/usr/include/libio.h" 3 4
943 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
951 typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
960 typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
963 typedef int __io_close_fn (void *__cookie);
968 typedef __io_read_fn cookie_read_function_t;
969 typedef __io_write_fn cookie_write_function_t;
970 typedef __io_seek_fn cookie_seek_function_t;
971 typedef __io_close_fn cookie_close_function_t;
977 __io_write_fn *write;
979 __io_close_fn *close;
980 } _IO_cookie_io_functions_t;
981 typedef _IO_cookie_io_functions_t cookie_io_functions_t;
983 struct _IO_cookie_file;
986 extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write,
987 void *__cookie, _IO_cookie_io_functions_t __fns);
995 extern int __underflow (_IO_FILE *) throw ();
996 extern int __uflow (_IO_FILE *) throw ();
997 extern int __overflow (_IO_FILE *, int) throw ();
998 extern wint_t __wunderflow (_IO_FILE *) throw ();
999 extern wint_t __wuflow (_IO_FILE *) throw ();
1000 extern wint_t __woverflow (_IO_FILE *, wint_t) throw ();
1001 # 450 "/usr/include/libio.h" 3 4
1002 extern int _IO_getc (_IO_FILE *__fp) throw ();
1003 extern int _IO_putc (int __c, _IO_FILE *__fp) throw ();
1004 extern int _IO_feof (_IO_FILE *__fp) throw ();
1005 extern int _IO_ferror (_IO_FILE *__fp) throw ();
1007 extern int _IO_peekc_locked (_IO_FILE *__fp) throw ();
1013 extern void _IO_flockfile (_IO_FILE *) throw ();
1014 extern void _IO_funlockfile (_IO_FILE *) throw ();
1015 extern int _IO_ftrylockfile (_IO_FILE *) throw ();
1016 # 480 "/usr/include/libio.h" 3 4
1017 extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
1018 __gnuc_va_list, int *__restrict);
1019 extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
1021 extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) throw ();
1022 extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) throw ();
1024 extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) throw ();
1025 extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) throw ();
1027 extern void _IO_free_backup_area (_IO_FILE *) throw ();
1028 # 538 "/usr/include/libio.h" 3 4
1029 # 1 "/usr/include/bits/libio-ldbl.h" 1 3 4
1030 # 24 "/usr/include/bits/libio-ldbl.h" 3 4
1031 extern __typeof (_IO_vfscanf) _IO_vfscanf __asm ("" "__nldbl_" "_IO_vfscanf");
1032 extern __typeof (_IO_vfprintf) _IO_vfprintf __asm ("" "__nldbl_" "_IO_vfprintf");
1033 # 539 "/usr/include/libio.h" 2 3 4
1038 # 73 "/usr/include/stdio.h" 2 3 4
1043 typedef __gnuc_va_list va_list;
1044 # 86 "/usr/include/stdio.h" 3 4
1047 typedef _G_fpos_t fpos_t;
1053 typedef _G_fpos64_t fpos64_t;
1054 # 138 "/usr/include/stdio.h" 3 4
1055 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
1056 # 139 "/usr/include/stdio.h" 2 3 4
1060 extern struct _IO_FILE *stdin;
1061 extern struct _IO_FILE *stdout;
1062 extern struct _IO_FILE *stderr;
1070 extern int remove (__const char *__filename) throw ();
1072 extern int rename (__const char *__old, __const char *__new) throw ();
1077 extern int renameat (int __oldfd, __const char *__old, int __newfd,
1078 __const char *__new) throw ();
1087 extern FILE *tmpfile (void);
1088 # 179 "/usr/include/stdio.h" 3 4
1089 extern FILE *tmpfile64 (void);
1093 extern char *tmpnam (char *__s) throw ();
1099 extern char *tmpnam_r (char *__s) throw ();
1100 # 201 "/usr/include/stdio.h" 3 4
1101 extern char *tempnam (__const char *__dir, __const char *__pfx)
1102 throw () __attribute__ ((__malloc__));
1111 extern int fclose (FILE *__stream);
1116 extern int fflush (FILE *__stream);
1118 # 226 "/usr/include/stdio.h" 3 4
1119 extern int fflush_unlocked (FILE *__stream);
1120 # 236 "/usr/include/stdio.h" 3 4
1121 extern int fcloseall (void);
1131 extern FILE *fopen (__const char *__restrict __filename,
1132 __const char *__restrict __modes);
1137 extern FILE *freopen (__const char *__restrict __filename,
1138 __const char *__restrict __modes,
1139 FILE *__restrict __stream);
1140 # 267 "/usr/include/stdio.h" 3 4
1143 extern FILE *fopen64 (__const char *__restrict __filename,
1144 __const char *__restrict __modes);
1145 extern FILE *freopen64 (__const char *__restrict __filename,
1146 __const char *__restrict __modes,
1147 FILE *__restrict __stream);
1152 extern FILE *fdopen (int __fd, __const char *__modes) throw ();
1158 extern FILE *fopencookie (void *__restrict __magic_cookie,
1159 __const char *__restrict __modes,
1160 _IO_cookie_io_functions_t __io_funcs) throw ();
1163 extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes) throw ();
1168 extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) throw ();
1175 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) throw ();
1179 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
1180 int __modes, size_t __n) throw ();
1186 extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
1187 size_t __size) throw ();
1190 extern void setlinebuf (FILE *__stream) throw ();
1199 extern int fprintf (FILE *__restrict __stream,
1200 __const char *__restrict __format, ...);
1205 extern int printf (__const char *__restrict __format, ...);
1207 extern int sprintf (char *__restrict __s,
1208 __const char *__restrict __format, ...) throw ();
1214 extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
1215 __gnuc_va_list __arg);
1220 extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
1222 extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
1223 __gnuc_va_list __arg) throw ();
1229 extern int snprintf (char *__restrict __s, size_t __maxlen,
1230 __const char *__restrict __format, ...)
1231 throw () __attribute__ ((__format__ (__printf__, 3, 4)));
1233 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
1234 __const char *__restrict __format, __gnuc_va_list __arg)
1235 throw () __attribute__ ((__format__ (__printf__, 3, 0)));
1242 extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
1243 __gnuc_va_list __arg)
1244 throw () __attribute__ ((__format__ (__printf__, 2, 0)));
1245 extern int __asprintf (char **__restrict __ptr,
1246 __const char *__restrict __fmt, ...)
1247 throw () __attribute__ ((__format__ (__printf__, 2, 3)));
1248 extern int asprintf (char **__restrict __ptr,
1249 __const char *__restrict __fmt, ...)
1250 throw () __attribute__ ((__format__ (__printf__, 2, 3)));
1258 extern int vdprintf (int __fd, __const char *__restrict __fmt,
1259 __gnuc_va_list __arg)
1260 __attribute__ ((__format__ (__printf__, 2, 0)));
1261 extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
1262 __attribute__ ((__format__ (__printf__, 2, 3)));
1271 extern int fscanf (FILE *__restrict __stream,
1272 __const char *__restrict __format, ...) ;
1277 extern int scanf (__const char *__restrict __format, ...) ;
1279 extern int sscanf (__const char *__restrict __s,
1280 __const char *__restrict __format, ...) throw ();
1289 extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
1290 __gnuc_va_list __arg)
1291 __attribute__ ((__format__ (__scanf__, 2, 0))) ;
1297 extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
1298 __attribute__ ((__format__ (__scanf__, 1, 0))) ;
1301 extern int vsscanf (__const char *__restrict __s,
1302 __const char *__restrict __format, __gnuc_va_list __arg)
1303 throw () __attribute__ ((__format__ (__scanf__, 2, 0)));
1313 extern int fgetc (FILE *__stream);
1314 extern int getc (FILE *__stream);
1320 extern int getchar (void);
1322 # 458 "/usr/include/stdio.h" 3 4
1323 extern int getc_unlocked (FILE *__stream);
1324 extern int getchar_unlocked (void);
1325 # 469 "/usr/include/stdio.h" 3 4
1326 extern int fgetc_unlocked (FILE *__stream);
1338 extern int fputc (int __c, FILE *__stream);
1339 extern int putc (int __c, FILE *__stream);
1345 extern int putchar (int __c);
1347 # 502 "/usr/include/stdio.h" 3 4
1348 extern int fputc_unlocked (int __c, FILE *__stream);
1356 extern int putc_unlocked (int __c, FILE *__stream);
1357 extern int putchar_unlocked (int __c);
1364 extern int getw (FILE *__stream);
1367 extern int putw (int __w, FILE *__stream);
1376 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
1384 extern char *gets (char *__s) ;
1386 # 548 "/usr/include/stdio.h" 3 4
1387 extern char *fgets_unlocked (char *__restrict __s, int __n,
1388 FILE *__restrict __stream) ;
1389 # 564 "/usr/include/stdio.h" 3 4
1390 extern __ssize_t __getdelim (char **__restrict __lineptr,
1391 size_t *__restrict __n, int __delimiter,
1392 FILE *__restrict __stream) ;
1393 extern __ssize_t getdelim (char **__restrict __lineptr,
1394 size_t *__restrict __n, int __delimiter,
1395 FILE *__restrict __stream) ;
1403 extern __ssize_t getline (char **__restrict __lineptr,
1404 size_t *__restrict __n,
1405 FILE *__restrict __stream) ;
1414 extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
1420 extern int puts (__const char *__s);
1427 extern int ungetc (int __c, FILE *__stream);
1434 extern size_t fread (void *__restrict __ptr, size_t __size,
1435 size_t __n, FILE *__restrict __stream) ;
1440 extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
1441 size_t __n, FILE *__restrict __s) ;
1443 # 625 "/usr/include/stdio.h" 3 4
1444 extern int fputs_unlocked (__const char *__restrict __s,
1445 FILE *__restrict __stream);
1446 # 636 "/usr/include/stdio.h" 3 4
1447 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
1448 size_t __n, FILE *__restrict __stream) ;
1449 extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
1450 size_t __n, FILE *__restrict __stream) ;
1459 extern int fseek (FILE *__stream, long int __off, int __whence);
1464 extern long int ftell (FILE *__stream) ;
1469 extern void rewind (FILE *__stream);
1471 # 672 "/usr/include/stdio.h" 3 4
1472 extern int fseeko (FILE *__stream, __off_t __off, int __whence);
1477 extern __off_t ftello (FILE *__stream) ;
1478 # 691 "/usr/include/stdio.h" 3 4
1485 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
1490 extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
1491 # 714 "/usr/include/stdio.h" 3 4
1495 extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
1496 extern __off64_t ftello64 (FILE *__stream) ;
1497 extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos);
1498 extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);
1503 extern void clearerr (FILE *__stream) throw ();
1505 extern int feof (FILE *__stream) throw () ;
1507 extern int ferror (FILE *__stream) throw () ;
1512 extern void clearerr_unlocked (FILE *__stream) throw ();
1513 extern int feof_unlocked (FILE *__stream) throw () ;
1514 extern int ferror_unlocked (FILE *__stream) throw () ;
1523 extern void perror (__const char *__s);
1530 # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
1531 # 27 "/usr/include/bits/sys_errlist.h" 3 4
1532 extern int sys_nerr;
1533 extern __const char *__const sys_errlist[];
1536 extern int _sys_nerr;
1537 extern __const char *__const _sys_errlist[];
1538 # 753 "/usr/include/stdio.h" 2 3 4
1543 extern int fileno (FILE *__stream) throw () ;
1548 extern int fileno_unlocked (FILE *__stream) throw () ;
1549 # 772 "/usr/include/stdio.h" 3 4
1550 extern FILE *popen (__const char *__command, __const char *__modes) ;
1556 extern int pclose (FILE *__stream);
1562 extern char *ctermid (char *__s) throw ();
1568 extern char *cuserid (char *__s);
1576 extern int obstack_printf (struct obstack *__restrict __obstack,
1577 __const char *__restrict __format, ...)
1578 throw () __attribute__ ((__format__ (__printf__, 2, 3)));
1579 extern int obstack_vprintf (struct obstack *__restrict __obstack,
1580 __const char *__restrict __format,
1581 __gnuc_va_list __args)
1582 throw () __attribute__ ((__format__ (__printf__, 2, 0)));
1590 extern void flockfile (FILE *__stream) throw ();
1594 extern int ftrylockfile (FILE *__stream) throw () ;
1597 extern void funlockfile (FILE *__stream) throw ();
1598 # 833 "/usr/include/stdio.h" 3 4
1599 # 1 "/usr/include/bits/stdio.h" 1 3 4
1600 # 33 "/usr/include/bits/stdio.h" 3 4
1602 vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg)
1604 return vfprintf (stdout, __fmt, __arg);
1611 return _IO_getc (stdin);
1618 getc_unlocked (FILE *__fp)
1620 return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
1625 getchar_unlocked (void)
1627 return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++);
1636 return _IO_putc (__c, stdout);
1643 fputc_unlocked (int __c, FILE *__stream)
1645 return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
1653 putc_unlocked (int __c, FILE *__stream)
1655 return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
1660 putchar_unlocked (int __c)
1662 return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c)));
1670 getline (char **__lineptr, size_t *__n, FILE *__stream)
1672 return __getdelim (__lineptr, __n, '\n', __stream);
1680 feof_unlocked (FILE *__stream) throw ()
1682 return (((__stream)->_flags & 0x10) != 0);
1687 ferror_unlocked (FILE *__stream) throw ()
1689 return (((__stream)->_flags & 0x20) != 0);
1691 # 834 "/usr/include/stdio.h" 2 3 4
1697 # 1 "/usr/include/bits/stdio-ldbl.h" 1 3 4
1698 # 24 "/usr/include/bits/stdio-ldbl.h" 3 4
1700 extern __typeof (fprintf) fprintf __asm ("" "__nldbl_" "fprintf");
1701 extern __typeof (printf) printf __asm ("" "__nldbl_" "printf");
1702 extern __typeof (sprintf) sprintf __asm ("" "__nldbl_" "sprintf");
1703 extern __typeof (vfprintf) vfprintf __asm ("" "__nldbl_" "vfprintf");
1704 extern __typeof (vprintf) vprintf __asm ("" "__nldbl_" "vprintf");
1705 extern __typeof (vsprintf) vsprintf __asm ("" "__nldbl_" "vsprintf");
1706 extern __typeof (fscanf) fscanf __asm ("" "__nldbl_" "fscanf");
1707 extern __typeof (scanf) scanf __asm ("" "__nldbl_" "scanf");
1708 extern __typeof (sscanf) sscanf __asm ("" "__nldbl_" "sscanf");
1713 extern __typeof (snprintf) snprintf __asm ("" "__nldbl_" "snprintf");
1714 extern __typeof (vsnprintf) vsnprintf __asm ("" "__nldbl_" "vsnprintf");
1720 extern __typeof (vfscanf) vfscanf __asm ("" "__nldbl_" "vfscanf");
1721 extern __typeof (vsscanf) vsscanf __asm ("" "__nldbl_" "vsscanf");
1722 extern __typeof (vscanf) vscanf __asm ("" "__nldbl_" "vscanf");
1727 extern __typeof (vdprintf) vdprintf __asm ("" "__nldbl_" "vdprintf");
1728 extern __typeof (dprintf) dprintf __asm ("" "__nldbl_" "dprintf");
1729 extern __typeof (vasprintf) vasprintf __asm ("" "__nldbl_" "vasprintf");
1730 extern __typeof (__asprintf) __asprintf __asm ("" "__nldbl_" "__asprintf");
1731 extern __typeof (asprintf) asprintf __asm ("" "__nldbl_" "asprintf");
1732 extern __typeof (obstack_printf) obstack_printf __asm ("" "__nldbl_" "obstack_printf");
1733 extern __typeof (obstack_vprintf) obstack_vprintf __asm ("" "__nldbl_" "obstack_vprintf");
1734 # 840 "/usr/include/stdio.h" 2 3 4
1738 # 55 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdio" 2 3
1739 # 99 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdio" 3
1787 # 155 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdio" 3
1790 # 170 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdio" 3
1801 using __gnu_cxx::snprintf;
1802 using __gnu_cxx::vfscanf;
1803 using __gnu_cxx::vscanf;
1804 using __gnu_cxx::vsnprintf;
1805 using __gnu_cxx::vsscanf;
1809 #pragma GCC visibility pop
1810 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++locale.h" 2 3
1811 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/clocale" 1 3
1812 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/clocale" 3
1814 # 49 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/clocale" 3
1815 #pragma GCC visibility push(default)
1817 # 1 "/usr/include/locale.h" 1 3 4
1818 # 29 "/usr/include/locale.h" 3 4
1819 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
1820 # 30 "/usr/include/locale.h" 2 3 4
1821 # 1 "/usr/include/bits/locale.h" 1 3 4
1822 # 27 "/usr/include/bits/locale.h" 3 4
1835 __LC_TELEPHONE = 10,
1836 __LC_MEASUREMENT = 11,
1837 __LC_IDENTIFICATION = 12
1839 # 31 "/usr/include/locale.h" 2 3 4
1842 # 52 "/usr/include/locale.h" 3 4
1847 char *decimal_point;
1848 char *thousands_sep;
1860 char *int_curr_symbol;
1861 char *currency_symbol;
1862 char *mon_decimal_point;
1863 char *mon_thousands_sep;
1865 char *positive_sign;
1866 char *negative_sign;
1867 char int_frac_digits;
1872 char p_sep_by_space;
1876 char n_sep_by_space;
1887 char int_p_cs_precedes;
1889 char int_p_sep_by_space;
1891 char int_n_cs_precedes;
1893 char int_n_sep_by_space;
1900 char int_p_sign_posn;
1901 char int_n_sign_posn;
1902 # 119 "/usr/include/locale.h" 3 4
1909 extern char *setlocale (int __category, __const char *__locale) throw ();
1912 extern struct lconv *localeconv (void) throw ();
1915 # 148 "/usr/include/locale.h" 3 4
1916 typedef __locale_t locale_t;
1922 extern __locale_t newlocale (int __category_mask, __const char *__locale,
1923 __locale_t __base) throw ();
1924 # 189 "/usr/include/locale.h" 3 4
1925 extern __locale_t duplocale (__locale_t __dataset) throw ();
1929 extern void freelocale (__locale_t __dataset) throw ();
1936 extern __locale_t uselocale (__locale_t __dataset) throw ();
1945 # 52 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/clocale" 2 3
1958 #pragma GCC visibility pop
1959 # 44 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++locale.h" 2 3
1960 # 1 "/usr/include/langinfo.h" 1 3 4
1961 # 24 "/usr/include/langinfo.h" 3 4
1962 # 1 "/usr/include/nl_types.h" 1 3 4
1963 # 31 "/usr/include/nl_types.h" 3 4
1967 typedef void *nl_catd;
1970 typedef int nl_item;
1976 extern nl_catd catopen (__const char *__cat_name, int __flag) __attribute__ ((__nonnull__ (1)));
1980 extern char *catgets (nl_catd __catalog, int __set, int __number,
1981 __const char *__string) throw () __attribute__ ((__nonnull__ (1)));
1984 extern int catclose (nl_catd __catalog) throw () __attribute__ ((__nonnull__ (1)));
1987 # 25 "/usr/include/langinfo.h" 2 3 4
1989 # 1 "/usr/include/bits/locale.h" 1 3 4
1990 # 27 "/usr/include/langinfo.h" 2 3 4
1994 # 42 "/usr/include/langinfo.h" 3 4
2000 ABDAY_1 = (((__LC_TIME) << 16) | (0)),
2112 _NL_TIME_ERA_NUM_ENTRIES,
2113 _NL_TIME_ERA_ENTRIES,
2174 _NL_TIME_WEEK_NDAYS,
2175 _NL_TIME_WEEK_1STDAY,
2176 _NL_TIME_WEEK_1STWEEK,
2177 _NL_TIME_FIRST_WEEKDAY,
2178 _NL_TIME_FIRST_WORKDAY,
2179 _NL_TIME_CAL_DIRECTION,
2193 _NL_COLLATE_NRULES = (((__LC_COLLATE) << 16) | (0)),
2194 _NL_COLLATE_RULESETS,
2195 _NL_COLLATE_TABLEMB,
2196 _NL_COLLATE_WEIGHTMB,
2197 _NL_COLLATE_EXTRAMB,
2198 _NL_COLLATE_INDIRECTMB,
2202 _NL_COLLATE_TABLEWC,
2203 _NL_COLLATE_WEIGHTWC,
2204 _NL_COLLATE_EXTRAWC,
2205 _NL_COLLATE_INDIRECTWC,
2206 _NL_COLLATE_SYMB_HASH_SIZEMB,
2207 _NL_COLLATE_SYMB_TABLEMB,
2208 _NL_COLLATE_SYMB_EXTRAMB,
2209 _NL_COLLATE_COLLSEQMB,
2210 _NL_COLLATE_COLLSEQWC,
2211 _NL_COLLATE_CODESET,
2217 _NL_CTYPE_CLASS = (((__LC_CTYPE) << 16) | (0)),
2227 _NL_CTYPE_CLASS_NAMES,
2228 _NL_CTYPE_MAP_NAMES,
2230 _NL_CTYPE_MB_CUR_MAX,
2231 _NL_CTYPE_CODESET_NAME,
2232 CODESET = _NL_CTYPE_CODESET_NAME,
2234 _NL_CTYPE_TOUPPER32,
2235 _NL_CTYPE_TOLOWER32,
2236 _NL_CTYPE_CLASS_OFFSET,
2237 _NL_CTYPE_MAP_OFFSET,
2238 _NL_CTYPE_INDIGITS_MB_LEN,
2239 _NL_CTYPE_INDIGITS0_MB,
2240 _NL_CTYPE_INDIGITS1_MB,
2241 _NL_CTYPE_INDIGITS2_MB,
2242 _NL_CTYPE_INDIGITS3_MB,
2243 _NL_CTYPE_INDIGITS4_MB,
2244 _NL_CTYPE_INDIGITS5_MB,
2245 _NL_CTYPE_INDIGITS6_MB,
2246 _NL_CTYPE_INDIGITS7_MB,
2247 _NL_CTYPE_INDIGITS8_MB,
2248 _NL_CTYPE_INDIGITS9_MB,
2249 _NL_CTYPE_INDIGITS_WC_LEN,
2250 _NL_CTYPE_INDIGITS0_WC,
2251 _NL_CTYPE_INDIGITS1_WC,
2252 _NL_CTYPE_INDIGITS2_WC,
2253 _NL_CTYPE_INDIGITS3_WC,
2254 _NL_CTYPE_INDIGITS4_WC,
2255 _NL_CTYPE_INDIGITS5_WC,
2256 _NL_CTYPE_INDIGITS6_WC,
2257 _NL_CTYPE_INDIGITS7_WC,
2258 _NL_CTYPE_INDIGITS8_WC,
2259 _NL_CTYPE_INDIGITS9_WC,
2260 _NL_CTYPE_OUTDIGIT0_MB,
2261 _NL_CTYPE_OUTDIGIT1_MB,
2262 _NL_CTYPE_OUTDIGIT2_MB,
2263 _NL_CTYPE_OUTDIGIT3_MB,
2264 _NL_CTYPE_OUTDIGIT4_MB,
2265 _NL_CTYPE_OUTDIGIT5_MB,
2266 _NL_CTYPE_OUTDIGIT6_MB,
2267 _NL_CTYPE_OUTDIGIT7_MB,
2268 _NL_CTYPE_OUTDIGIT8_MB,
2269 _NL_CTYPE_OUTDIGIT9_MB,
2270 _NL_CTYPE_OUTDIGIT0_WC,
2271 _NL_CTYPE_OUTDIGIT1_WC,
2272 _NL_CTYPE_OUTDIGIT2_WC,
2273 _NL_CTYPE_OUTDIGIT3_WC,
2274 _NL_CTYPE_OUTDIGIT4_WC,
2275 _NL_CTYPE_OUTDIGIT5_WC,
2276 _NL_CTYPE_OUTDIGIT6_WC,
2277 _NL_CTYPE_OUTDIGIT7_WC,
2278 _NL_CTYPE_OUTDIGIT8_WC,
2279 _NL_CTYPE_OUTDIGIT9_WC,
2280 _NL_CTYPE_TRANSLIT_TAB_SIZE,
2281 _NL_CTYPE_TRANSLIT_FROM_IDX,
2282 _NL_CTYPE_TRANSLIT_FROM_TBL,
2283 _NL_CTYPE_TRANSLIT_TO_IDX,
2284 _NL_CTYPE_TRANSLIT_TO_TBL,
2285 _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN,
2286 _NL_CTYPE_TRANSLIT_DEFAULT_MISSING,
2287 _NL_CTYPE_TRANSLIT_IGNORE_LEN,
2288 _NL_CTYPE_TRANSLIT_IGNORE,
2289 _NL_CTYPE_MAP_TO_NONASCII,
2290 _NL_CTYPE_EXTRA_MAP_1,
2291 _NL_CTYPE_EXTRA_MAP_2,
2292 _NL_CTYPE_EXTRA_MAP_3,
2293 _NL_CTYPE_EXTRA_MAP_4,
2294 _NL_CTYPE_EXTRA_MAP_5,
2295 _NL_CTYPE_EXTRA_MAP_6,
2296 _NL_CTYPE_EXTRA_MAP_7,
2297 _NL_CTYPE_EXTRA_MAP_8,
2298 _NL_CTYPE_EXTRA_MAP_9,
2299 _NL_CTYPE_EXTRA_MAP_10,
2300 _NL_CTYPE_EXTRA_MAP_11,
2301 _NL_CTYPE_EXTRA_MAP_12,
2302 _NL_CTYPE_EXTRA_MAP_13,
2303 _NL_CTYPE_EXTRA_MAP_14,
2309 __INT_CURR_SYMBOL = (((__LC_MONETARY) << 16) | (0)),
2317 __MON_DECIMAL_POINT,
2321 __MON_THOUSANDS_SEP,
2369 _NL_MONETARY_CRNCYSTR,
2371 __INT_P_CS_PRECEDES,
2375 __INT_P_SEP_BY_SPACE,
2379 __INT_N_CS_PRECEDES,
2383 __INT_N_SEP_BY_SPACE,
2395 _NL_MONETARY_DUO_INT_CURR_SYMBOL,
2396 _NL_MONETARY_DUO_CURRENCY_SYMBOL,
2397 _NL_MONETARY_DUO_INT_FRAC_DIGITS,
2398 _NL_MONETARY_DUO_FRAC_DIGITS,
2399 _NL_MONETARY_DUO_P_CS_PRECEDES,
2400 _NL_MONETARY_DUO_P_SEP_BY_SPACE,
2401 _NL_MONETARY_DUO_N_CS_PRECEDES,
2402 _NL_MONETARY_DUO_N_SEP_BY_SPACE,
2403 _NL_MONETARY_DUO_INT_P_CS_PRECEDES,
2404 _NL_MONETARY_DUO_INT_P_SEP_BY_SPACE,
2405 _NL_MONETARY_DUO_INT_N_CS_PRECEDES,
2406 _NL_MONETARY_DUO_INT_N_SEP_BY_SPACE,
2407 _NL_MONETARY_DUO_P_SIGN_POSN,
2408 _NL_MONETARY_DUO_N_SIGN_POSN,
2409 _NL_MONETARY_DUO_INT_P_SIGN_POSN,
2410 _NL_MONETARY_DUO_INT_N_SIGN_POSN,
2411 _NL_MONETARY_UNO_VALID_FROM,
2412 _NL_MONETARY_UNO_VALID_TO,
2413 _NL_MONETARY_DUO_VALID_FROM,
2414 _NL_MONETARY_DUO_VALID_TO,
2415 _NL_MONETARY_CONVERSION_RATE,
2416 _NL_MONETARY_DECIMAL_POINT_WC,
2417 _NL_MONETARY_THOUSANDS_SEP_WC,
2418 _NL_MONETARY_CODESET,
2419 _NL_NUM_LC_MONETARY,
2423 __DECIMAL_POINT = (((__LC_NUMERIC) << 16) | (0)),
2427 RADIXCHAR = __DECIMAL_POINT,
2433 THOUSEP = __THOUSANDS_SEP,
2439 _NL_NUMERIC_DECIMAL_POINT_WC,
2440 _NL_NUMERIC_THOUSANDS_SEP_WC,
2441 _NL_NUMERIC_CODESET,
2444 __YESEXPR = (((__LC_MESSAGES) << 16) | (0)),
2456 _NL_MESSAGES_CODESET,
2457 _NL_NUM_LC_MESSAGES,
2459 _NL_PAPER_HEIGHT = (((__LC_PAPER) << 16) | (0)),
2464 _NL_NAME_NAME_FMT = (((__LC_NAME) << 16) | (0)),
2473 _NL_ADDRESS_POSTAL_FMT = (((__LC_ADDRESS) << 16) | (0)),
2474 _NL_ADDRESS_COUNTRY_NAME,
2475 _NL_ADDRESS_COUNTRY_POST,
2476 _NL_ADDRESS_COUNTRY_AB2,
2477 _NL_ADDRESS_COUNTRY_AB3,
2478 _NL_ADDRESS_COUNTRY_CAR,
2479 _NL_ADDRESS_COUNTRY_NUM,
2480 _NL_ADDRESS_COUNTRY_ISBN,
2481 _NL_ADDRESS_LANG_NAME,
2482 _NL_ADDRESS_LANG_AB,
2483 _NL_ADDRESS_LANG_TERM,
2484 _NL_ADDRESS_LANG_LIB,
2485 _NL_ADDRESS_CODESET,
2488 _NL_TELEPHONE_TEL_INT_FMT = (((__LC_TELEPHONE) << 16) | (0)),
2489 _NL_TELEPHONE_TEL_DOM_FMT,
2490 _NL_TELEPHONE_INT_SELECT,
2491 _NL_TELEPHONE_INT_PREFIX,
2492 _NL_TELEPHONE_CODESET,
2493 _NL_NUM_LC_TELEPHONE,
2495 _NL_MEASUREMENT_MEASUREMENT = (((__LC_MEASUREMENT) << 16) | (0)),
2496 _NL_MEASUREMENT_CODESET,
2497 _NL_NUM_LC_MEASUREMENT,
2499 _NL_IDENTIFICATION_TITLE = (((__LC_IDENTIFICATION) << 16) | (0)),
2500 _NL_IDENTIFICATION_SOURCE,
2501 _NL_IDENTIFICATION_ADDRESS,
2502 _NL_IDENTIFICATION_CONTACT,
2503 _NL_IDENTIFICATION_EMAIL,
2504 _NL_IDENTIFICATION_TEL,
2505 _NL_IDENTIFICATION_FAX,
2506 _NL_IDENTIFICATION_LANGUAGE,
2507 _NL_IDENTIFICATION_TERRITORY,
2508 _NL_IDENTIFICATION_AUDIENCE,
2509 _NL_IDENTIFICATION_APPLICATION,
2510 _NL_IDENTIFICATION_ABBREVIATION,
2511 _NL_IDENTIFICATION_REVISION,
2512 _NL_IDENTIFICATION_DATE,
2513 _NL_IDENTIFICATION_CATEGORY,
2514 _NL_IDENTIFICATION_CODESET,
2515 _NL_NUM_LC_IDENTIFICATION,
2520 # 582 "/usr/include/langinfo.h" 3 4
2521 extern char *nl_langinfo (nl_item __item) throw ();
2522 # 593 "/usr/include/langinfo.h" 3 4
2523 extern char *nl_langinfo_l (nl_item __item, __locale_t l);
2527 # 45 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++locale.h" 2 3
2528 # 1 "/usr/include/iconv.h" 1 3 4
2529 # 24 "/usr/include/iconv.h" 3 4
2530 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
2531 # 25 "/usr/include/iconv.h" 2 3 4
2537 typedef void *iconv_t;
2545 extern iconv_t iconv_open (__const char *__tocode, __const char *__fromcode);
2550 extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
2551 size_t *__restrict __inbytesleft,
2552 char **__restrict __outbuf,
2553 size_t *__restrict __outbytesleft);
2559 extern int iconv_close (iconv_t __cd);
2562 # 46 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++locale.h" 2 3
2563 # 1 "/usr/include/libintl.h" 1 3 4
2564 # 35 "/usr/include/libintl.h" 3 4
2570 extern char *gettext (__const char *__msgid)
2571 throw () __attribute__ ((__format_arg__ (1)));
2575 extern char *dgettext (__const char *__domainname, __const char *__msgid)
2576 throw () __attribute__ ((__format_arg__ (2)));
2577 extern char *__dgettext (__const char *__domainname, __const char *__msgid)
2578 throw () __attribute__ ((__format_arg__ (2)));
2582 extern char *dcgettext (__const char *__domainname,
2583 __const char *__msgid, int __category)
2584 throw () __attribute__ ((__format_arg__ (2)));
2585 extern char *__dcgettext (__const char *__domainname,
2586 __const char *__msgid, int __category)
2587 throw () __attribute__ ((__format_arg__ (2)));
2592 extern char *ngettext (__const char *__msgid1, __const char *__msgid2,
2593 unsigned long int __n)
2594 throw () __attribute__ ((__format_arg__ (1))) __attribute__ ((__format_arg__ (2)));
2598 extern char *dngettext (__const char *__domainname, __const char *__msgid1,
2599 __const char *__msgid2, unsigned long int __n)
2600 throw () __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3)));
2604 extern char *dcngettext (__const char *__domainname, __const char *__msgid1,
2605 __const char *__msgid2, unsigned long int __n,
2607 throw () __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3)));
2613 extern char *textdomain (__const char *__domainname) throw ();
2617 extern char *bindtextdomain (__const char *__domainname,
2618 __const char *__dirname) throw ();
2622 extern char *bind_textdomain_codeset (__const char *__domainname,
2623 __const char *__codeset) throw ();
2624 # 122 "/usr/include/libintl.h" 3 4
2626 # 47 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++locale.h" 2 3
2635 extern "C" __typeof(uselocale) __uselocale;
2641 typedef __locale_t __c_locale;
2647 template<typename _Tv>
2649 __convert_from_v(char* __out,
2650 const int __size __attribute__ ((__unused__)),
2653 _Tv __v, const __c_locale& __cloc, int __prec)
2655 __c_locale __old = __gnu_cxx::__uselocale(__cloc);
2656 # 86 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++locale.h" 3
2657 const int __ret = std::snprintf(__out, __size, __fmt, __prec, __v);
2663 __gnu_cxx::__uselocale(__old);
2671 # 47 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iosfwd" 2 3
2672 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++io.h" 1 3
2673 # 38 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++io.h" 3
2674 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/gthr.h" 1 3
2675 # 33 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/gthr.h" 3
2676 #pragma GCC visibility push(default)
2677 # 114 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/gthr.h" 3
2678 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/gthr-default.h" 1 3
2679 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/gthr-default.h" 3
2680 # 1 "/usr/include/pthread.h" 1 3 4
2681 # 23 "/usr/include/pthread.h" 3 4
2682 # 1 "/usr/include/sched.h" 1 3 4
2683 # 29 "/usr/include/sched.h" 3 4
2684 # 1 "/usr/include/time.h" 1 3 4
2685 # 121 "/usr/include/time.h" 3 4
2691 # 30 "/usr/include/sched.h" 2 3 4
2694 # 1 "/usr/include/bits/sched.h" 1 3 4
2695 # 65 "/usr/include/bits/sched.h" 3 4
2698 int __sched_priority;
2705 extern int clone (int (*__fn) (void *__arg), void *__child_stack,
2706 int __flags, void *__arg, ...) throw ();
2709 extern int unshare (int __flags) throw ();
2720 struct __sched_param
2722 int __sched_priority;
2724 # 104 "/usr/include/bits/sched.h" 3 4
2725 typedef unsigned long int __cpu_mask;
2734 __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))];
2736 # 33 "/usr/include/sched.h" 2 3 4
2744 extern int sched_setparam (__pid_t __pid, __const struct sched_param *__param)
2748 extern int sched_getparam (__pid_t __pid, struct sched_param *__param) throw ();
2751 extern int sched_setscheduler (__pid_t __pid, int __policy,
2752 __const struct sched_param *__param) throw ();
2755 extern int sched_getscheduler (__pid_t __pid) throw ();
2758 extern int sched_yield (void) throw ();
2761 extern int sched_get_priority_max (int __algorithm) throw ();
2764 extern int sched_get_priority_min (int __algorithm) throw ();
2767 extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) throw ();
2768 # 76 "/usr/include/sched.h" 3 4
2769 extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
2770 __const cpu_set_t *__cpuset) throw ();
2773 extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
2774 cpu_set_t *__cpuset) throw ();
2778 # 24 "/usr/include/pthread.h" 2 3 4
2779 # 1 "/usr/include/time.h" 1 3 4
2780 # 31 "/usr/include/time.h" 3 4
2789 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
2790 # 40 "/usr/include/time.h" 2 3 4
2794 # 1 "/usr/include/bits/time.h" 1 3 4
2795 # 44 "/usr/include/time.h" 2 3 4
2796 # 59 "/usr/include/time.h" 3 4
2799 typedef __clock_t clock_t;
2803 # 75 "/usr/include/time.h" 3 4
2806 typedef __time_t time_t;
2810 # 93 "/usr/include/time.h" 3 4
2811 typedef __clockid_t clockid_t;
2812 # 105 "/usr/include/time.h" 3 4
2813 typedef __timer_t timer_t;
2814 # 132 "/usr/include/time.h" 3 4
2831 __const char *tm_zone;
2847 struct timespec it_interval;
2848 struct timespec it_value;
2858 typedef __pid_t pid_t;
2867 extern clock_t clock (void) throw ();
2870 extern time_t time (time_t *__timer) throw ();
2873 extern double difftime (time_t __time1, time_t __time0)
2874 throw () __attribute__ ((__const__));
2877 extern time_t mktime (struct tm *__tp) throw ();
2883 extern size_t strftime (char *__restrict __s, size_t __maxsize,
2884 __const char *__restrict __format,
2885 __const struct tm *__restrict __tp) throw ();
2891 extern char *strptime (__const char *__restrict __s,
2892 __const char *__restrict __fmt, struct tm *__tp)
2901 extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
2902 __const char *__restrict __format,
2903 __const struct tm *__restrict __tp,
2904 __locale_t __loc) throw ();
2906 extern char *strptime_l (__const char *__restrict __s,
2907 __const char *__restrict __fmt, struct tm *__tp,
2908 __locale_t __loc) throw ();
2915 extern struct tm *gmtime (__const time_t *__timer) throw ();
2919 extern struct tm *localtime (__const time_t *__timer) throw ();
2925 extern struct tm *gmtime_r (__const time_t *__restrict __timer,
2926 struct tm *__restrict __tp) throw ();
2930 extern struct tm *localtime_r (__const time_t *__restrict __timer,
2931 struct tm *__restrict __tp) throw ();
2937 extern char *asctime (__const struct tm *__tp) throw ();
2940 extern char *ctime (__const time_t *__timer) throw ();
2948 extern char *asctime_r (__const struct tm *__restrict __tp,
2949 char *__restrict __buf) throw ();
2952 extern char *ctime_r (__const time_t *__restrict __timer,
2953 char *__restrict __buf) throw ();
2958 extern char *__tzname[2];
2959 extern int __daylight;
2960 extern long int __timezone;
2965 extern char *tzname[2];
2969 extern void tzset (void) throw ();
2973 extern int daylight;
2974 extern long int timezone;
2980 extern int stime (__const time_t *__when) throw ();
2981 # 312 "/usr/include/time.h" 3 4
2982 extern time_t timegm (struct tm *__tp) throw ();
2985 extern time_t timelocal (struct tm *__tp) throw ();
2988 extern int dysize (int __year) throw () __attribute__ ((__const__));
2989 # 327 "/usr/include/time.h" 3 4
2990 extern int nanosleep (__const struct timespec *__requested_time,
2991 struct timespec *__remaining);
2995 extern int clock_getres (clockid_t __clock_id, struct timespec *__res) throw ();
2998 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) throw ();
3001 extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
3009 extern int clock_nanosleep (clockid_t __clock_id, int __flags,
3010 __const struct timespec *__req,
3011 struct timespec *__rem);
3014 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) throw ();
3019 extern int timer_create (clockid_t __clock_id,
3020 struct sigevent *__restrict __evp,
3021 timer_t *__restrict __timerid) throw ();
3024 extern int timer_delete (timer_t __timerid) throw ();
3027 extern int timer_settime (timer_t __timerid, int __flags,
3028 __const struct itimerspec *__restrict __value,
3029 struct itimerspec *__restrict __ovalue) throw ();
3032 extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
3036 extern int timer_getoverrun (timer_t __timerid) throw ();
3037 # 389 "/usr/include/time.h" 3 4
3038 extern int getdate_err;
3039 # 398 "/usr/include/time.h" 3 4
3040 extern struct tm *getdate (__const char *__string);
3041 # 412 "/usr/include/time.h" 3 4
3042 extern int getdate_r (__const char *__restrict __string,
3043 struct tm *__restrict __resbufp);
3047 # 25 "/usr/include/pthread.h" 2 3 4
3050 # 1 "/usr/include/signal.h" 1 3 4
3051 # 31 "/usr/include/signal.h" 3 4
3054 # 1 "/usr/include/bits/sigset.h" 1 3 4
3055 # 23 "/usr/include/bits/sigset.h" 3 4
3056 typedef int __sig_atomic_t;
3063 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
3065 # 34 "/usr/include/signal.h" 2 3 4
3066 # 50 "/usr/include/signal.h" 3 4
3067 typedef __sigset_t sigset_t;
3068 # 400 "/usr/include/signal.h" 3 4
3070 # 28 "/usr/include/pthread.h" 2 3 4
3071 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
3072 # 24 "/usr/include/bits/pthreadtypes.h" 3 4
3073 # 1 "/usr/include/bits/wordsize.h" 1 3 4
3074 # 25 "/usr/include/bits/pthreadtypes.h" 2 3 4
3075 # 51 "/usr/include/bits/pthreadtypes.h" 3 4
3076 typedef unsigned long int pthread_t;
3084 # 68 "/usr/include/bits/pthreadtypes.h" 3 4
3085 typedef struct __pthread_internal_slist
3087 struct __pthread_internal_slist *__next;
3088 } __pthread_slist_t;
3096 struct __pthread_mutex_s
3099 unsigned int __count;
3112 unsigned int __nusers;
3116 __pthread_slist_t __list;
3128 } pthread_mutexattr_t;
3138 unsigned int __futex;
3139 __extension__ unsigned long long int __total_seq;
3140 __extension__ unsigned long long int __wakeup_seq;
3141 __extension__ unsigned long long int __woken_seq;
3143 unsigned int __nwaiters;
3144 unsigned int __broadcast_seq;
3147 __extension__ long long int __align;
3154 } pthread_condattr_t;
3158 typedef unsigned int pthread_key_t;
3162 typedef int pthread_once_t;
3170 # 171 "/usr/include/bits/pthreadtypes.h" 3 4
3174 unsigned int __nr_readers;
3175 unsigned int __readers_wakeup;
3176 unsigned int __writer_wakeup;
3177 unsigned int __nr_readers_queued;
3178 unsigned int __nr_writers_queued;
3181 unsigned int __flags;
3193 } pthread_rwlockattr_t;
3199 typedef volatile int pthread_spinlock_t;
3208 } pthread_barrier_t;
3214 } pthread_barrierattr_t;
3215 # 29 "/usr/include/pthread.h" 2 3 4
3216 # 1 "/usr/include/bits/setjmp.h" 1 3 4
3217 # 33 "/usr/include/bits/setjmp.h" 3 4
3218 # 1 "/usr/include/bits/wordsize.h" 1 3 4
3219 # 34 "/usr/include/bits/setjmp.h" 2 3 4
3220 # 48 "/usr/include/bits/setjmp.h" 3 4
3221 typedef long int __jmp_buf[64 + (12 * 4)] __attribute__ ((__aligned__ (16)));
3222 # 30 "/usr/include/pthread.h" 2 3 4
3223 # 1 "/usr/include/bits/wordsize.h" 1 3 4
3224 # 31 "/usr/include/pthread.h" 2 3 4
3230 PTHREAD_CREATE_JOINABLE,
3232 PTHREAD_CREATE_DETACHED
3240 PTHREAD_MUTEX_TIMED_NP,
3241 PTHREAD_MUTEX_RECURSIVE_NP,
3242 PTHREAD_MUTEX_ERRORCHECK_NP,
3243 PTHREAD_MUTEX_ADAPTIVE_NP
3246 PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP,
3247 PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,
3248 PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP,
3249 PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL
3253 , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP
3262 PTHREAD_MUTEX_STALLED_NP,
3263 PTHREAD_MUTEX_ROBUST_NP
3273 PTHREAD_PRIO_INHERIT,
3274 PTHREAD_PRIO_PROTECT
3276 # 113 "/usr/include/pthread.h" 3 4
3279 PTHREAD_RWLOCK_PREFER_READER_NP,
3280 PTHREAD_RWLOCK_PREFER_WRITER_NP,
3281 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP,
3282 PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP
3284 # 143 "/usr/include/pthread.h" 3 4
3287 PTHREAD_INHERIT_SCHED,
3289 PTHREAD_EXPLICIT_SCHED
3297 PTHREAD_SCOPE_SYSTEM,
3299 PTHREAD_SCOPE_PROCESS
3307 PTHREAD_PROCESS_PRIVATE,
3309 PTHREAD_PROCESS_SHARED
3312 # 178 "/usr/include/pthread.h" 3 4
3313 struct _pthread_cleanup_buffer
3315 void (*__routine) (void *);
3318 struct _pthread_cleanup_buffer *__prev;
3324 PTHREAD_CANCEL_ENABLE,
3326 PTHREAD_CANCEL_DISABLE
3331 PTHREAD_CANCEL_DEFERRED,
3333 PTHREAD_CANCEL_ASYNCHRONOUS
3336 # 216 "/usr/include/pthread.h" 3 4
3342 extern int pthread_create (pthread_t *__restrict __newthread,
3343 __const pthread_attr_t *__restrict __attr,
3344 void *(*__start_routine) (void *),
3345 void *__restrict __arg) throw () __attribute__ ((__nonnull__ (1, 3)));
3351 extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__));
3359 extern int pthread_join (pthread_t __th, void **__thread_return);
3364 extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) throw ();
3372 extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return,
3373 __const struct timespec *__abstime);
3380 extern int pthread_detach (pthread_t __th) throw ();
3384 extern pthread_t pthread_self (void) throw () __attribute__ ((__const__));
3387 extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) throw ();
3395 extern int pthread_attr_init (pthread_attr_t *__attr) throw () __attribute__ ((__nonnull__ (1)));
3398 extern int pthread_attr_destroy (pthread_attr_t *__attr)
3399 throw () __attribute__ ((__nonnull__ (1)));
3402 extern int pthread_attr_getdetachstate (__const pthread_attr_t *__attr,
3404 throw () __attribute__ ((__nonnull__ (1, 2)));
3407 extern int pthread_attr_setdetachstate (pthread_attr_t *__attr,
3409 throw () __attribute__ ((__nonnull__ (1)));
3413 extern int pthread_attr_getguardsize (__const pthread_attr_t *__attr,
3414 size_t *__guardsize)
3415 throw () __attribute__ ((__nonnull__ (1, 2)));
3418 extern int pthread_attr_setguardsize (pthread_attr_t *__attr,
3420 throw () __attribute__ ((__nonnull__ (1)));
3424 extern int pthread_attr_getschedparam (__const pthread_attr_t *__restrict
3426 struct sched_param *__restrict __param)
3427 throw () __attribute__ ((__nonnull__ (1, 2)));
3430 extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr,
3431 __const struct sched_param *__restrict
3432 __param) throw () __attribute__ ((__nonnull__ (1, 2)));
3435 extern int pthread_attr_getschedpolicy (__const pthread_attr_t *__restrict
3436 __attr, int *__restrict __policy)
3437 throw () __attribute__ ((__nonnull__ (1, 2)));
3440 extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy)
3441 throw () __attribute__ ((__nonnull__ (1)));
3444 extern int pthread_attr_getinheritsched (__const pthread_attr_t *__restrict
3445 __attr, int *__restrict __inherit)
3446 throw () __attribute__ ((__nonnull__ (1, 2)));
3449 extern int pthread_attr_setinheritsched (pthread_attr_t *__attr,
3451 throw () __attribute__ ((__nonnull__ (1)));
3455 extern int pthread_attr_getscope (__const pthread_attr_t *__restrict __attr,
3456 int *__restrict __scope)
3457 throw () __attribute__ ((__nonnull__ (1, 2)));
3460 extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope)
3461 throw () __attribute__ ((__nonnull__ (1)));
3464 extern int pthread_attr_getstackaddr (__const pthread_attr_t *__restrict
3465 __attr, void **__restrict __stackaddr)
3466 throw () __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__));
3472 extern int pthread_attr_setstackaddr (pthread_attr_t *__attr,
3474 throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__));
3477 extern int pthread_attr_getstacksize (__const pthread_attr_t *__restrict
3478 __attr, size_t *__restrict __stacksize)
3479 throw () __attribute__ ((__nonnull__ (1, 2)));
3484 extern int pthread_attr_setstacksize (pthread_attr_t *__attr,
3486 throw () __attribute__ ((__nonnull__ (1)));
3490 extern int pthread_attr_getstack (__const pthread_attr_t *__restrict __attr,
3491 void **__restrict __stackaddr,
3492 size_t *__restrict __stacksize)
3493 throw () __attribute__ ((__nonnull__ (1, 2, 3)));
3498 extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
3499 size_t __stacksize) throw () __attribute__ ((__nonnull__ (1)));
3505 extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr,
3506 size_t __cpusetsize,
3507 __const cpu_set_t *__cpuset)
3508 throw () __attribute__ ((__nonnull__ (1, 3)));
3512 extern int pthread_attr_getaffinity_np (__const pthread_attr_t *__attr,
3513 size_t __cpusetsize,
3514 cpu_set_t *__cpuset)
3515 throw () __attribute__ ((__nonnull__ (1, 3)));
3521 extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr)
3522 throw () __attribute__ ((__nonnull__ (2)));
3530 extern int pthread_setschedparam (pthread_t __target_thread, int __policy,
3531 __const struct sched_param *__param)
3532 throw () __attribute__ ((__nonnull__ (3)));
3535 extern int pthread_getschedparam (pthread_t __target_thread,
3536 int *__restrict __policy,
3537 struct sched_param *__restrict __param)
3538 throw () __attribute__ ((__nonnull__ (2, 3)));
3541 extern int pthread_setschedprio (pthread_t __target_thread, int __prio)
3547 extern int pthread_getconcurrency (void) throw ();
3550 extern int pthread_setconcurrency (int __level) throw ();
3558 extern int pthread_yield (void) throw ();
3563 extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize,
3564 __const cpu_set_t *__cpuset)
3565 throw () __attribute__ ((__nonnull__ (3)));
3568 extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize,
3569 cpu_set_t *__cpuset)
3570 throw () __attribute__ ((__nonnull__ (3)));
3571 # 462 "/usr/include/pthread.h" 3 4
3572 extern int pthread_once (pthread_once_t *__once_control,
3573 void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2)));
3574 # 474 "/usr/include/pthread.h" 3 4
3575 extern int pthread_setcancelstate (int __state, int *__oldstate);
3579 extern int pthread_setcanceltype (int __type, int *__oldtype);
3582 extern int pthread_cancel (pthread_t __th);
3587 extern void pthread_testcancel (void);
3596 __jmp_buf __cancel_jmp_buf;
3597 int __mask_was_saved;
3598 } __cancel_jmp_buf[1];
3600 } __pthread_unwind_buf_t __attribute__ ((__aligned__));
3601 # 508 "/usr/include/pthread.h" 3 4
3602 struct __pthread_cleanup_frame
3604 void (*__cancel_routine) (void *);
3613 class __pthread_cleanup_class
3615 void (*__cancel_routine) (void *);
3621 __pthread_cleanup_class (void (*__fct) (void *), void *__arg)
3622 : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { }
3623 ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); }
3624 void __setdoit (int __newval) { __do_it = __newval; }
3625 void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED,
3627 void __restore () const { pthread_setcanceltype (__cancel_type, 0); }
3629 # 708 "/usr/include/pthread.h" 3 4
3630 struct __jmp_buf_tag;
3631 extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) throw ();
3637 extern int pthread_mutex_init (pthread_mutex_t *__mutex,
3638 __const pthread_mutexattr_t *__mutexattr)
3639 throw () __attribute__ ((__nonnull__ (1)));
3642 extern int pthread_mutex_destroy (pthread_mutex_t *__mutex)
3643 throw () __attribute__ ((__nonnull__ (1)));
3646 extern int pthread_mutex_trylock (pthread_mutex_t *__mutex)
3647 throw () __attribute__ ((__nonnull__ (1)));
3650 extern int pthread_mutex_lock (pthread_mutex_t *__mutex)
3651 throw () __attribute__ ((__nonnull__ (1)));
3655 extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex,
3656 __const struct timespec *__restrict
3657 __abstime) throw () __attribute__ ((__nonnull__ (1, 2)));
3661 extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
3662 throw () __attribute__ ((__nonnull__ (1)));
3667 extern int pthread_mutex_getprioceiling (__const pthread_mutex_t *
3669 int *__restrict __prioceiling)
3670 throw () __attribute__ ((__nonnull__ (1, 2)));
3674 extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex,
3676 int *__restrict __old_ceiling)
3677 throw () __attribute__ ((__nonnull__ (1, 3)));
3683 extern int pthread_mutex_consistent_np (pthread_mutex_t *__mutex)
3684 throw () __attribute__ ((__nonnull__ (1)));
3692 extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr)
3693 throw () __attribute__ ((__nonnull__ (1)));
3696 extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr)
3697 throw () __attribute__ ((__nonnull__ (1)));
3700 extern int pthread_mutexattr_getpshared (__const pthread_mutexattr_t *
3702 int *__restrict __pshared)
3703 throw () __attribute__ ((__nonnull__ (1, 2)));
3706 extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr,
3708 throw () __attribute__ ((__nonnull__ (1)));
3712 extern int pthread_mutexattr_gettype (__const pthread_mutexattr_t *__restrict
3713 __attr, int *__restrict __kind)
3714 throw () __attribute__ ((__nonnull__ (1, 2)));
3719 extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind)
3720 throw () __attribute__ ((__nonnull__ (1)));
3723 extern int pthread_mutexattr_getprotocol (__const pthread_mutexattr_t *
3725 int *__restrict __protocol)
3726 throw () __attribute__ ((__nonnull__ (1, 2)));
3730 extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr,
3732 throw () __attribute__ ((__nonnull__ (1)));
3735 extern int pthread_mutexattr_getprioceiling (__const pthread_mutexattr_t *
3737 int *__restrict __prioceiling)
3738 throw () __attribute__ ((__nonnull__ (1, 2)));
3741 extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr,
3743 throw () __attribute__ ((__nonnull__ (1)));
3748 extern int pthread_mutexattr_getrobust_np (__const pthread_mutexattr_t *__attr,
3750 throw () __attribute__ ((__nonnull__ (1, 2)));
3753 extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *__attr,
3755 throw () __attribute__ ((__nonnull__ (1)));
3756 # 842 "/usr/include/pthread.h" 3 4
3757 extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock,
3758 __const pthread_rwlockattr_t *__restrict
3759 __attr) throw () __attribute__ ((__nonnull__ (1)));
3762 extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock)
3763 throw () __attribute__ ((__nonnull__ (1)));
3766 extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock)
3767 throw () __attribute__ ((__nonnull__ (1)));
3770 extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock)
3771 throw () __attribute__ ((__nonnull__ (1)));
3775 extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock,
3776 __const struct timespec *__restrict
3777 __abstime) throw () __attribute__ ((__nonnull__ (1, 2)));
3781 extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock)
3782 throw () __attribute__ ((__nonnull__ (1)));
3785 extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock)
3786 throw () __attribute__ ((__nonnull__ (1)));
3790 extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock,
3791 __const struct timespec *__restrict
3792 __abstime) throw () __attribute__ ((__nonnull__ (1, 2)));
3796 extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock)
3797 throw () __attribute__ ((__nonnull__ (1)));
3803 extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr)
3804 throw () __attribute__ ((__nonnull__ (1)));
3807 extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr)
3808 throw () __attribute__ ((__nonnull__ (1)));
3811 extern int pthread_rwlockattr_getpshared (__const pthread_rwlockattr_t *
3813 int *__restrict __pshared)
3814 throw () __attribute__ ((__nonnull__ (1, 2)));
3817 extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr,
3819 throw () __attribute__ ((__nonnull__ (1)));
3822 extern int pthread_rwlockattr_getkind_np (__const pthread_rwlockattr_t *
3824 int *__restrict __pref)
3825 throw () __attribute__ ((__nonnull__ (1, 2)));
3828 extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr,
3829 int __pref) throw () __attribute__ ((__nonnull__ (1)));
3837 extern int pthread_cond_init (pthread_cond_t *__restrict __cond,
3838 __const pthread_condattr_t *__restrict
3839 __cond_attr) throw () __attribute__ ((__nonnull__ (1)));
3842 extern int pthread_cond_destroy (pthread_cond_t *__cond)
3843 throw () __attribute__ ((__nonnull__ (1)));
3846 extern int pthread_cond_signal (pthread_cond_t *__cond)
3847 throw () __attribute__ ((__nonnull__ (1)));
3850 extern int pthread_cond_broadcast (pthread_cond_t *__cond)
3851 throw () __attribute__ ((__nonnull__ (1)));
3858 extern int pthread_cond_wait (pthread_cond_t *__restrict __cond,
3859 pthread_mutex_t *__restrict __mutex)
3860 __attribute__ ((__nonnull__ (1, 2)));
3861 # 954 "/usr/include/pthread.h" 3 4
3862 extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond,
3863 pthread_mutex_t *__restrict __mutex,
3864 __const struct timespec *__restrict
3865 __abstime) __attribute__ ((__nonnull__ (1, 2, 3)));
3870 extern int pthread_condattr_init (pthread_condattr_t *__attr)
3871 throw () __attribute__ ((__nonnull__ (1)));
3874 extern int pthread_condattr_destroy (pthread_condattr_t *__attr)
3875 throw () __attribute__ ((__nonnull__ (1)));
3878 extern int pthread_condattr_getpshared (__const pthread_condattr_t *
3880 int *__restrict __pshared)
3881 throw () __attribute__ ((__nonnull__ (1, 2)));
3884 extern int pthread_condattr_setpshared (pthread_condattr_t *__attr,
3885 int __pshared) throw () __attribute__ ((__nonnull__ (1)));
3889 extern int pthread_condattr_getclock (__const pthread_condattr_t *
3891 __clockid_t *__restrict __clock_id)
3892 throw () __attribute__ ((__nonnull__ (1, 2)));
3895 extern int pthread_condattr_setclock (pthread_condattr_t *__attr,
3896 __clockid_t __clock_id)
3897 throw () __attribute__ ((__nonnull__ (1)));
3898 # 998 "/usr/include/pthread.h" 3 4
3899 extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
3900 throw () __attribute__ ((__nonnull__ (1)));
3903 extern int pthread_spin_destroy (pthread_spinlock_t *__lock)
3904 throw () __attribute__ ((__nonnull__ (1)));
3907 extern int pthread_spin_lock (pthread_spinlock_t *__lock)
3908 throw () __attribute__ ((__nonnull__ (1)));
3911 extern int pthread_spin_trylock (pthread_spinlock_t *__lock)
3912 throw () __attribute__ ((__nonnull__ (1)));
3915 extern int pthread_spin_unlock (pthread_spinlock_t *__lock)
3916 throw () __attribute__ ((__nonnull__ (1)));
3923 extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier,
3924 __const pthread_barrierattr_t *__restrict
3925 __attr, unsigned int __count)
3926 throw () __attribute__ ((__nonnull__ (1)));
3929 extern int pthread_barrier_destroy (pthread_barrier_t *__barrier)
3930 throw () __attribute__ ((__nonnull__ (1)));
3933 extern int pthread_barrier_wait (pthread_barrier_t *__barrier)
3934 throw () __attribute__ ((__nonnull__ (1)));
3938 extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr)
3939 throw () __attribute__ ((__nonnull__ (1)));
3942 extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr)
3943 throw () __attribute__ ((__nonnull__ (1)));
3946 extern int pthread_barrierattr_getpshared (__const pthread_barrierattr_t *
3948 int *__restrict __pshared)
3949 throw () __attribute__ ((__nonnull__ (1, 2)));
3952 extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr,
3954 throw () __attribute__ ((__nonnull__ (1)));
3955 # 1065 "/usr/include/pthread.h" 3 4
3956 extern int pthread_key_create (pthread_key_t *__key,
3957 void (*__destr_function) (void *))
3958 throw () __attribute__ ((__nonnull__ (1)));
3961 extern int pthread_key_delete (pthread_key_t __key) throw ();
3964 extern void *pthread_getspecific (pthread_key_t __key) throw ();
3967 extern int pthread_setspecific (pthread_key_t __key,
3968 __const void *__pointer) throw () ;
3973 extern int pthread_getcpuclockid (pthread_t __thread_id,
3974 __clockid_t *__clock_id)
3975 throw () __attribute__ ((__nonnull__ (2)));
3976 # 1099 "/usr/include/pthread.h" 3 4
3977 extern int pthread_atfork (void (*__prepare) (void),
3978 void (*__parent) (void),
3979 void (*__child) (void)) throw ();
3985 pthread_equal (pthread_t __thread1, pthread_t __thread2) throw ()
3987 return __thread1 == __thread2;
3992 # 44 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/gthr-default.h" 2 3
3993 # 1 "/usr/include/unistd.h" 1 3 4
3994 # 28 "/usr/include/unistd.h" 3 4
3996 # 171 "/usr/include/unistd.h" 3 4
3997 # 1 "/usr/include/bits/posix_opt.h" 1 3 4
3998 # 172 "/usr/include/unistd.h" 2 3 4
4002 # 1 "/usr/include/bits/environments.h" 1 3 4
4003 # 23 "/usr/include/bits/environments.h" 3 4
4004 # 1 "/usr/include/bits/wordsize.h" 1 3 4
4005 # 24 "/usr/include/bits/environments.h" 2 3 4
4006 # 176 "/usr/include/unistd.h" 2 3 4
4007 # 189 "/usr/include/unistd.h" 3 4
4008 typedef __ssize_t ssize_t;
4014 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
4015 # 196 "/usr/include/unistd.h" 2 3 4
4021 typedef __gid_t gid_t;
4026 typedef __uid_t uid_t;
4032 typedef __off_t off_t;
4039 typedef __off64_t off64_t;
4044 typedef __useconds_t useconds_t;
4045 # 236 "/usr/include/unistd.h" 3 4
4046 typedef __intptr_t intptr_t;
4053 typedef __socklen_t socklen_t;
4054 # 256 "/usr/include/unistd.h" 3 4
4055 extern int access (__const char *__name, int __type) throw () __attribute__ ((__nonnull__ (1)));
4060 extern int euidaccess (__const char *__name, int __type)
4061 throw () __attribute__ ((__nonnull__ (1)));
4064 extern int eaccess (__const char *__name, int __type)
4065 throw () __attribute__ ((__nonnull__ (1)));
4072 extern int faccessat (int __fd, __const char *__file, int __type, int __flag)
4073 throw () __attribute__ ((__nonnull__ (2))) ;
4074 # 299 "/usr/include/unistd.h" 3 4
4075 extern __off_t lseek (int __fd, __off_t __offset, int __whence) throw ();
4076 # 310 "/usr/include/unistd.h" 3 4
4077 extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence)
4085 extern int close (int __fd);
4092 extern ssize_t read (int __fd, void *__buf, size_t __nbytes) ;
4098 extern ssize_t write (int __fd, __const void *__buf, size_t __n) ;
4099 # 341 "/usr/include/unistd.h" 3 4
4100 extern ssize_t pread (int __fd, void *__buf, size_t __nbytes,
4108 extern ssize_t pwrite (int __fd, __const void *__buf, size_t __n,
4110 # 369 "/usr/include/unistd.h" 3 4
4111 extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes,
4112 __off64_t __offset) ;
4115 extern ssize_t pwrite64 (int __fd, __const void *__buf, size_t __n,
4116 __off64_t __offset) ;
4124 extern int pipe (int __pipedes[2]) throw () ;
4125 # 391 "/usr/include/unistd.h" 3 4
4126 extern unsigned int alarm (unsigned int __seconds) throw ();
4127 # 403 "/usr/include/unistd.h" 3 4
4128 extern unsigned int sleep (unsigned int __seconds);
4135 extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval)
4143 extern int usleep (__useconds_t __useconds);
4144 # 427 "/usr/include/unistd.h" 3 4
4145 extern int pause (void);
4149 extern int chown (__const char *__file, __uid_t __owner, __gid_t __group)
4150 throw () __attribute__ ((__nonnull__ (1))) ;
4154 extern int fchown (int __fd, __uid_t __owner, __gid_t __group) throw () ;
4159 extern int lchown (__const char *__file, __uid_t __owner, __gid_t __group)
4160 throw () __attribute__ ((__nonnull__ (1))) ;
4167 extern int fchownat (int __fd, __const char *__file, __uid_t __owner,
4168 __gid_t __group, int __flag)
4169 throw () __attribute__ ((__nonnull__ (2))) ;
4173 extern int chdir (__const char *__path) throw () __attribute__ ((__nonnull__ (1))) ;
4177 extern int fchdir (int __fd) throw () ;
4178 # 469 "/usr/include/unistd.h" 3 4
4179 extern char *getcwd (char *__buf, size_t __size) throw () ;
4185 extern char *get_current_dir_name (void) throw ();
4192 extern char *getwd (char *__buf)
4193 throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) ;
4198 extern int dup (int __fd) throw () ;
4201 extern int dup2 (int __fd, int __fd2) throw ();
4204 extern char **__environ;
4206 extern char **environ;
4212 extern int execve (__const char *__path, char *__const __argv[],
4213 char *__const __envp[]) throw () __attribute__ ((__nonnull__ (1)));
4218 extern int fexecve (int __fd, char *__const __argv[], char *__const __envp[])
4224 extern int execv (__const char *__path, char *__const __argv[])
4225 throw () __attribute__ ((__nonnull__ (1)));
4229 extern int execle (__const char *__path, __const char *__arg, ...)
4230 throw () __attribute__ ((__nonnull__ (1)));
4234 extern int execl (__const char *__path, __const char *__arg, ...)
4235 throw () __attribute__ ((__nonnull__ (1)));
4239 extern int execvp (__const char *__file, char *__const __argv[])
4240 throw () __attribute__ ((__nonnull__ (1)));
4245 extern int execlp (__const char *__file, __const char *__arg, ...)
4246 throw () __attribute__ ((__nonnull__ (1)));
4251 extern int nice (int __inc) throw () ;
4256 extern void _exit (int __status) __attribute__ ((__noreturn__));
4262 # 1 "/usr/include/bits/confname.h" 1 3 4
4263 # 26 "/usr/include/bits/confname.h" 3 4
4278 _PC_CHOWN_RESTRICTED,
4294 _PC_REC_INCR_XFER_SIZE,
4296 _PC_REC_MAX_XFER_SIZE,
4298 _PC_REC_MIN_XFER_SIZE,
4331 _SC_REALTIME_SIGNALS,
4333 _SC_PRIORITY_SCHEDULING,
4337 _SC_ASYNCHRONOUS_IO,
4341 _SC_SYNCHRONIZED_IO,
4351 _SC_MEMORY_PROTECTION,
4353 _SC_MESSAGE_PASSING,
4357 _SC_SHARED_MEMORY_OBJECTS,
4363 _SC_AIO_PRIO_DELTA_MAX,
4397 _SC_COLL_WEIGHTS_MAX,
4399 _SC_EQUIV_CLASS_MAX,
4407 _SC_CHARCLASS_NAME_MAX,
4441 _SC_IOV_MAX = _SC_UIO_MAXIOV,
4443 _SC_PII_INTERNET_STREAM,
4445 _SC_PII_INTERNET_DGRAM,
4459 _SC_THREAD_SAFE_FUNCTIONS,
4461 _SC_GETGR_R_SIZE_MAX,
4463 _SC_GETPW_R_SIZE_MAX,
4469 _SC_THREAD_DESTRUCTOR_ITERATIONS,
4471 _SC_THREAD_KEYS_MAX,
4473 _SC_THREAD_STACK_MIN,
4475 _SC_THREAD_THREADS_MAX,
4477 _SC_THREAD_ATTR_STACKADDR,
4479 _SC_THREAD_ATTR_STACKSIZE,
4481 _SC_THREAD_PRIORITY_SCHEDULING,
4483 _SC_THREAD_PRIO_INHERIT,
4485 _SC_THREAD_PRIO_PROTECT,
4487 _SC_THREAD_PROCESS_SHARED,
4490 _SC_NPROCESSORS_CONF,
4492 _SC_NPROCESSORS_ONLN,
4505 _SC_XOPEN_XCU_VERSION,
4580 _SC_XBS5_ILP32_OFF32,
4582 _SC_XBS5_ILP32_OFFBIG,
4584 _SC_XBS5_LP64_OFF64,
4586 _SC_XBS5_LPBIG_OFFBIG,
4593 _SC_XOPEN_REALTIME_THREADS,
4604 _SC_C_LANG_SUPPORT_R,
4606 _SC_CLOCK_SELECTION,
4614 _SC_DEVICE_SPECIFIC,
4616 _SC_DEVICE_SPECIFIC_R,
4624 _SC_FILE_ATTRIBUTES,
4630 _SC_MONOTONIC_CLOCK,
4638 _SC_READER_WRITER_LOCKS,
4652 _SC_SPORADIC_SERVER,
4654 _SC_THREAD_SPORADIC_SERVER,
4656 _SC_SYSTEM_DATABASE,
4658 _SC_SYSTEM_DATABASE_R,
4662 _SC_TYPED_MEMORY_OBJECTS,
4670 _SC_2_PBS_ACCOUNTING,
4682 _SC_2_PBS_CHECKPOINT,
4687 _SC_V6_ILP32_OFFBIG,
4691 _SC_V6_LPBIG_OFFBIG,
4698 _SC_TRACE_EVENT_FILTER,
4705 _SC_LEVEL1_ICACHE_SIZE,
4707 _SC_LEVEL1_ICACHE_ASSOC,
4709 _SC_LEVEL1_ICACHE_LINESIZE,
4711 _SC_LEVEL1_DCACHE_SIZE,
4713 _SC_LEVEL1_DCACHE_ASSOC,
4715 _SC_LEVEL1_DCACHE_LINESIZE,
4717 _SC_LEVEL2_CACHE_SIZE,
4719 _SC_LEVEL2_CACHE_ASSOC,
4721 _SC_LEVEL2_CACHE_LINESIZE,
4723 _SC_LEVEL3_CACHE_SIZE,
4725 _SC_LEVEL3_CACHE_ASSOC,
4727 _SC_LEVEL3_CACHE_LINESIZE,
4729 _SC_LEVEL4_CACHE_SIZE,
4731 _SC_LEVEL4_CACHE_ASSOC,
4733 _SC_LEVEL4_CACHE_LINESIZE,
4737 _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,
4749 _CS_V6_WIDTH_RESTRICTED_ENVS,
4752 _CS_GNU_LIBC_VERSION,
4754 _CS_GNU_LIBPTHREAD_VERSION,
4757 _CS_LFS_CFLAGS = 1000,
4771 _CS_LFS64_LINTFLAGS,
4774 _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,
4776 _CS_XBS5_ILP32_OFF32_LDFLAGS,
4778 _CS_XBS5_ILP32_OFF32_LIBS,
4780 _CS_XBS5_ILP32_OFF32_LINTFLAGS,
4782 _CS_XBS5_ILP32_OFFBIG_CFLAGS,
4784 _CS_XBS5_ILP32_OFFBIG_LDFLAGS,
4786 _CS_XBS5_ILP32_OFFBIG_LIBS,
4788 _CS_XBS5_ILP32_OFFBIG_LINTFLAGS,
4790 _CS_XBS5_LP64_OFF64_CFLAGS,
4792 _CS_XBS5_LP64_OFF64_LDFLAGS,
4794 _CS_XBS5_LP64_OFF64_LIBS,
4796 _CS_XBS5_LP64_OFF64_LINTFLAGS,
4798 _CS_XBS5_LPBIG_OFFBIG_CFLAGS,
4800 _CS_XBS5_LPBIG_OFFBIG_LDFLAGS,
4802 _CS_XBS5_LPBIG_OFFBIG_LIBS,
4804 _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS,
4807 _CS_POSIX_V6_ILP32_OFF32_CFLAGS,
4809 _CS_POSIX_V6_ILP32_OFF32_LDFLAGS,
4811 _CS_POSIX_V6_ILP32_OFF32_LIBS,
4813 _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS,
4815 _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS,
4817 _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS,
4819 _CS_POSIX_V6_ILP32_OFFBIG_LIBS,
4821 _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS,
4823 _CS_POSIX_V6_LP64_OFF64_CFLAGS,
4825 _CS_POSIX_V6_LP64_OFF64_LDFLAGS,
4827 _CS_POSIX_V6_LP64_OFF64_LIBS,
4829 _CS_POSIX_V6_LP64_OFF64_LINTFLAGS,
4831 _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS,
4833 _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS,
4835 _CS_POSIX_V6_LPBIG_OFFBIG_LIBS,
4837 _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS
4840 # 553 "/usr/include/unistd.h" 2 3 4
4843 extern long int pathconf (__const char *__path, int __name)
4844 throw () __attribute__ ((__nonnull__ (1)));
4847 extern long int fpathconf (int __fd, int __name) throw ();
4850 extern long int sysconf (int __name) throw () __attribute__ ((__const__));
4854 extern size_t confstr (int __name, char *__buf, size_t __len) throw ();
4859 extern __pid_t getpid (void) throw ();
4862 extern __pid_t getppid (void) throw ();
4867 extern __pid_t getpgrp (void) throw ();
4868 # 589 "/usr/include/unistd.h" 3 4
4869 extern __pid_t __getpgid (__pid_t __pid) throw ();
4871 extern __pid_t getpgid (__pid_t __pid) throw ();
4878 extern int setpgid (__pid_t __pid, __pid_t __pgid) throw ();
4879 # 615 "/usr/include/unistd.h" 3 4
4880 extern int setpgrp (void) throw ();
4881 # 632 "/usr/include/unistd.h" 3 4
4882 extern __pid_t setsid (void) throw ();
4886 extern __pid_t getsid (__pid_t __pid) throw ();
4890 extern __uid_t getuid (void) throw ();
4893 extern __uid_t geteuid (void) throw ();
4896 extern __gid_t getgid (void) throw ();
4899 extern __gid_t getegid (void) throw ();
4904 extern int getgroups (int __size, __gid_t __list[]) throw () ;
4908 extern int group_member (__gid_t __gid) throw ();
4915 extern int setuid (__uid_t __uid) throw ();
4920 extern int setreuid (__uid_t __ruid, __uid_t __euid) throw ();
4925 extern int seteuid (__uid_t __uid) throw ();
4932 extern int setgid (__gid_t __gid) throw ();
4937 extern int setregid (__gid_t __rgid, __gid_t __egid) throw ();
4942 extern int setegid (__gid_t __gid) throw ();
4948 extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid)
4953 extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid)
4958 extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid)
4963 extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid)
4971 extern __pid_t fork (void) throw ();
4978 extern __pid_t vfork (void) throw ();
4984 extern char *ttyname (int __fd) throw ();
4988 extern int ttyname_r (int __fd, char *__buf, size_t __buflen)
4989 throw () __attribute__ ((__nonnull__ (2))) ;
4993 extern int isatty (int __fd) throw ();
4999 extern int ttyslot (void) throw ();
5004 extern int link (__const char *__from, __const char *__to)
5005 throw () __attribute__ ((__nonnull__ (1, 2))) ;
5010 extern int linkat (int __fromfd, __const char *__from, int __tofd,
5011 __const char *__to, int __flags)
5012 throw () __attribute__ ((__nonnull__ (2, 4))) ;
5017 extern int symlink (__const char *__from, __const char *__to)
5018 throw () __attribute__ ((__nonnull__ (1, 2))) ;
5023 extern ssize_t readlink (__const char *__restrict __path,
5024 char *__restrict __buf, size_t __len)
5025 throw () __attribute__ ((__nonnull__ (1, 2))) ;
5030 extern int symlinkat (__const char *__from, int __tofd,
5031 __const char *__to) throw () __attribute__ ((__nonnull__ (1, 3))) ;
5034 extern ssize_t readlinkat (int __fd, __const char *__restrict __path,
5035 char *__restrict __buf, size_t __len)
5036 throw () __attribute__ ((__nonnull__ (2, 3))) ;
5040 extern int unlink (__const char *__name) throw () __attribute__ ((__nonnull__ (1)));
5044 extern int unlinkat (int __fd, __const char *__name, int __flag)
5045 throw () __attribute__ ((__nonnull__ (2)));
5049 extern int rmdir (__const char *__path) throw () __attribute__ ((__nonnull__ (1)));
5053 extern __pid_t tcgetpgrp (int __fd) throw ();
5056 extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) throw ();
5063 extern char *getlogin (void);
5071 extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1)));
5076 extern int setlogin (__const char *__name) throw () __attribute__ ((__nonnull__ (1)));
5077 # 835 "/usr/include/unistd.h" 3 4
5078 # 1 "/usr/include/getopt.h" 1 3 4
5079 # 50 "/usr/include/getopt.h" 3 4
5081 # 59 "/usr/include/getopt.h" 3 4
5082 extern char *optarg;
5083 # 73 "/usr/include/getopt.h" 3 4
5094 # 152 "/usr/include/getopt.h" 3 4
5095 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
5097 # 171 "/usr/include/getopt.h" 3 4
5099 # 836 "/usr/include/unistd.h" 2 3 4
5107 extern int gethostname (char *__name, size_t __len) throw () __attribute__ ((__nonnull__ (1)));
5114 extern int sethostname (__const char *__name, size_t __len)
5115 throw () __attribute__ ((__nonnull__ (1))) ;
5119 extern int sethostid (long int __id) throw () ;
5125 extern int getdomainname (char *__name, size_t __len)
5126 throw () __attribute__ ((__nonnull__ (1))) ;
5127 extern int setdomainname (__const char *__name, size_t __len)
5128 throw () __attribute__ ((__nonnull__ (1))) ;
5134 extern int vhangup (void) throw ();
5137 extern int revoke (__const char *__file) throw () __attribute__ ((__nonnull__ (1))) ;
5145 extern int profil (unsigned short int *__sample_buffer, size_t __size,
5146 size_t __offset, unsigned int __scale)
5147 throw () __attribute__ ((__nonnull__ (1)));
5153 extern int acct (__const char *__name) throw ();
5157 extern char *getusershell (void) throw ();
5158 extern void endusershell (void) throw ();
5159 extern void setusershell (void) throw ();
5165 extern int daemon (int __nochdir, int __noclose) throw () ;
5172 extern int chroot (__const char *__path) throw () __attribute__ ((__nonnull__ (1))) ;
5176 extern char *getpass (__const char *__prompt) __attribute__ ((__nonnull__ (1)));
5177 # 921 "/usr/include/unistd.h" 3 4
5178 extern int fsync (int __fd);
5185 extern long int gethostid (void);
5188 extern void sync (void) throw ();
5193 extern int getpagesize (void) throw () __attribute__ ((__const__));
5198 extern int getdtablesize (void) throw ();
5203 extern int truncate (__const char *__file, __off_t __length)
5204 throw () __attribute__ ((__nonnull__ (1))) ;
5205 # 958 "/usr/include/unistd.h" 3 4
5206 extern int truncate64 (__const char *__file, __off64_t __length)
5207 throw () __attribute__ ((__nonnull__ (1))) ;
5208 # 968 "/usr/include/unistd.h" 3 4
5209 extern int ftruncate (int __fd, __off_t __length) throw () ;
5210 # 978 "/usr/include/unistd.h" 3 4
5211 extern int ftruncate64 (int __fd, __off64_t __length) throw () ;
5212 # 988 "/usr/include/unistd.h" 3 4
5213 extern int brk (void *__addr) throw () ;
5219 extern void *sbrk (intptr_t __delta) throw ();
5220 # 1009 "/usr/include/unistd.h" 3 4
5221 extern long int syscall (long int __sysno, ...) throw ();
5222 # 1032 "/usr/include/unistd.h" 3 4
5223 extern int lockf (int __fd, int __cmd, __off_t __len) ;
5224 # 1042 "/usr/include/unistd.h" 3 4
5225 extern int lockf64 (int __fd, int __cmd, __off64_t __len) ;
5226 # 1063 "/usr/include/unistd.h" 3 4
5227 extern int fdatasync (int __fildes) throw ();
5235 extern char *crypt (__const char *__key, __const char *__salt)
5236 throw () __attribute__ ((__nonnull__ (1, 2)));
5240 extern void encrypt (char *__block, int __edflag) throw () __attribute__ ((__nonnull__ (1)));
5247 extern void swab (__const void *__restrict __from, void *__restrict __to,
5248 ssize_t __n) throw () __attribute__ ((__nonnull__ (1, 2)));
5256 extern char *ctermid (char *__s) throw ();
5257 # 1101 "/usr/include/unistd.h" 3 4
5259 # 45 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/gthr-default.h" 2 3
5261 typedef pthread_key_t __gthread_key_t;
5262 typedef pthread_once_t __gthread_once_t;
5263 typedef pthread_mutex_t __gthread_mutex_t;
5264 typedef pthread_mutex_t __gthread_recursive_mutex_t;
5265 # 88 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/gthr-default.h" 3
5266 extern __typeof(pthread_once) __gthrw_pthread_once __attribute__ ((__weakref__("pthread_once")));
5267 extern __typeof(pthread_getspecific) __gthrw_pthread_getspecific __attribute__ ((__weakref__("pthread_getspecific")));
5268 extern __typeof(pthread_setspecific) __gthrw_pthread_setspecific __attribute__ ((__weakref__("pthread_setspecific")));
5269 extern __typeof(pthread_create) __gthrw_pthread_create __attribute__ ((__weakref__("pthread_create")));
5270 extern __typeof(pthread_cancel) __gthrw_pthread_cancel __attribute__ ((__weakref__("pthread_cancel")));
5271 extern __typeof(pthread_mutex_lock) __gthrw_pthread_mutex_lock __attribute__ ((__weakref__("pthread_mutex_lock")));
5272 extern __typeof(pthread_mutex_trylock) __gthrw_pthread_mutex_trylock __attribute__ ((__weakref__("pthread_mutex_trylock")));
5273 extern __typeof(pthread_mutex_unlock) __gthrw_pthread_mutex_unlock __attribute__ ((__weakref__("pthread_mutex_unlock")));
5274 extern __typeof(pthread_mutex_init) __gthrw_pthread_mutex_init __attribute__ ((__weakref__("pthread_mutex_init")));
5277 extern __typeof(pthread_key_create) __gthrw_pthread_key_create __attribute__ ((__weakref__("pthread_key_create")));
5278 extern __typeof(pthread_key_delete) __gthrw_pthread_key_delete __attribute__ ((__weakref__("pthread_key_delete")));
5279 extern __typeof(pthread_mutexattr_init) __gthrw_pthread_mutexattr_init __attribute__ ((__weakref__("pthread_mutexattr_init")));
5280 extern __typeof(pthread_mutexattr_settype) __gthrw_pthread_mutexattr_settype __attribute__ ((__weakref__("pthread_mutexattr_settype")));
5281 extern __typeof(pthread_mutexattr_destroy) __gthrw_pthread_mutexattr_destroy __attribute__ ((__weakref__("pthread_mutexattr_destroy")));
5282 # 145 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/gthr-default.h" 3
5284 __gthread_active_p (void)
5286 static void *const __gthread_active_ptr
5287 = __extension__ (void *) &__gthrw_pthread_cancel;
5288 return __gthread_active_ptr != 0;
5290 # 512 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/gthr-default.h" 3
5292 __gthread_once (__gthread_once_t *once, void (*func) (void))
5294 if (__gthread_active_p ())
5295 return __gthrw_pthread_once (once, func);
5301 __gthread_key_create (__gthread_key_t *key, void (*dtor) (void *))
5303 return __gthrw_pthread_key_create (key, dtor);
5307 __gthread_key_delete (__gthread_key_t key)
5309 return __gthrw_pthread_key_delete (key);
5312 static inline void *
5313 __gthread_getspecific (__gthread_key_t key)
5315 return __gthrw_pthread_getspecific (key);
5319 __gthread_setspecific (__gthread_key_t key, const void *ptr)
5321 return __gthrw_pthread_setspecific (key, ptr);
5325 __gthread_mutex_lock (__gthread_mutex_t *mutex)
5327 if (__gthread_active_p ())
5328 return __gthrw_pthread_mutex_lock (mutex);
5334 __gthread_mutex_trylock (__gthread_mutex_t *mutex)
5336 if (__gthread_active_p ())
5337 return __gthrw_pthread_mutex_trylock (mutex);
5343 __gthread_mutex_unlock (__gthread_mutex_t *mutex)
5345 if (__gthread_active_p ())
5346 return __gthrw_pthread_mutex_unlock (mutex);
5350 # 594 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/gthr-default.h" 3
5352 __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *mutex)
5354 return __gthread_mutex_lock (mutex);
5358 __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *mutex)
5360 return __gthread_mutex_trylock (mutex);
5364 __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *mutex)
5366 return __gthread_mutex_unlock (mutex);
5368 # 115 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/gthr.h" 2 3
5376 #pragma GCC visibility pop
5377 # 39 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++io.h" 2 3
5381 typedef __gthread_mutex_t __c_lock;
5384 typedef FILE __c_file;
5386 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iosfwd" 2 3
5387 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cctype" 1 3
5388 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cctype" 3
5390 # 49 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cctype" 3
5391 #pragma GCC visibility push(default)
5394 # 1 "/usr/include/ctype.h" 1 3 4
5395 # 30 "/usr/include/ctype.h" 3 4
5397 # 41 "/usr/include/ctype.h" 3 4
5398 # 1 "/usr/include/endian.h" 1 3 4
5399 # 37 "/usr/include/endian.h" 3 4
5400 # 1 "/usr/include/bits/endian.h" 1 3 4
5401 # 38 "/usr/include/endian.h" 2 3 4
5402 # 42 "/usr/include/ctype.h" 2 3 4
5411 _ISupper = (1 << (0)),
5412 _ISlower = (1 << (1)),
5413 _ISalpha = (1 << (2)),
5414 _ISdigit = (1 << (3)),
5415 _ISxdigit = (1 << (4)),
5416 _ISspace = (1 << (5)),
5417 _ISprint = (1 << (6)),
5418 _ISgraph = (1 << (7)),
5419 _ISblank = (1 << (8)),
5420 _IScntrl = (1 << (9)),
5421 _ISpunct = (1 << (10)),
5422 _ISalnum = (1 << (11))
5424 # 81 "/usr/include/ctype.h" 3 4
5425 extern __const unsigned short int **__ctype_b_loc (void)
5426 __attribute__ ((__const));
5427 extern __const __int32_t **__ctype_tolower_loc (void)
5428 __attribute__ ((__const));
5429 extern __const __int32_t **__ctype_toupper_loc (void)
5430 __attribute__ ((__const));
5431 # 96 "/usr/include/ctype.h" 3 4
5438 extern int isalnum (int) throw ();
5439 extern int isalpha (int) throw ();
5440 extern int iscntrl (int) throw ();
5441 extern int isdigit (int) throw ();
5442 extern int islower (int) throw ();
5443 extern int isgraph (int) throw ();
5444 extern int isprint (int) throw ();
5445 extern int ispunct (int) throw ();
5446 extern int isspace (int) throw ();
5447 extern int isupper (int) throw ();
5448 extern int isxdigit (int) throw ();
5452 extern int tolower (int __c) throw ();
5455 extern int toupper (int __c) throw ();
5464 extern int isblank (int) throw ();
5471 extern int isctype (int __c, int __mask) throw ();
5478 extern int isascii (int __c) throw ();
5482 extern int toascii (int __c) throw ();
5486 extern int _toupper (int) throw ();
5487 extern int _tolower (int) throw ();
5488 # 247 "/usr/include/ctype.h" 3 4
5489 extern int isalnum_l (int, __locale_t) throw ();
5490 extern int isalpha_l (int, __locale_t) throw ();
5491 extern int iscntrl_l (int, __locale_t) throw ();
5492 extern int isdigit_l (int, __locale_t) throw ();
5493 extern int islower_l (int, __locale_t) throw ();
5494 extern int isgraph_l (int, __locale_t) throw ();
5495 extern int isprint_l (int, __locale_t) throw ();
5496 extern int ispunct_l (int, __locale_t) throw ();
5497 extern int isspace_l (int, __locale_t) throw ();
5498 extern int isupper_l (int, __locale_t) throw ();
5499 extern int isxdigit_l (int, __locale_t) throw ();
5501 extern int isblank_l (int, __locale_t) throw ();
5505 extern int __tolower_l (int __c, __locale_t __l) throw ();
5506 extern int tolower_l (int __c, __locale_t __l) throw ();
5509 extern int __toupper_l (int __c, __locale_t __l) throw ();
5510 extern int toupper_l (int __c, __locale_t __l) throw ();
5511 # 323 "/usr/include/ctype.h" 3 4
5513 # 53 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cctype" 2 3
5514 # 69 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cctype" 3
5532 #pragma GCC visibility pop
5533 # 49 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iosfwd" 2 3
5534 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stringfwd.h" 1 3
5535 # 42 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stringfwd.h" 3
5537 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stringfwd.h" 3
5543 template<typename _Alloc>
5546 template<class _CharT>
5549 template<typename _CharT, typename _Traits = char_traits<_CharT>,
5550 typename _Alloc = allocator<_CharT> >
5553 template<> struct char_traits<char>;
5555 typedef basic_string<char> string;
5558 template<> struct char_traits<wchar_t>;
5560 typedef basic_string<wchar_t> wstring;
5563 # 50 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iosfwd" 2 3
5564 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/postypes.h" 1 3
5565 # 44 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/postypes.h" 3
5567 # 45 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/postypes.h" 3
5569 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cwchar" 1 3
5570 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cwchar" 3
5572 # 49 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cwchar" 3
5573 #pragma GCC visibility push(default)
5577 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ctime" 1 3
5578 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ctime" 3
5580 # 49 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ctime" 3
5581 #pragma GCC visibility push(default)
5582 # 66 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ctime" 3
5600 #pragma GCC visibility pop
5601 # 54 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cwchar" 2 3
5604 # 1 "/usr/include/wchar.h" 1 3 4
5605 # 40 "/usr/include/wchar.h" 3 4
5606 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stdarg.h" 1 3 4
5607 # 41 "/usr/include/wchar.h" 2 3 4
5615 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
5616 # 49 "/usr/include/wchar.h" 2 3 4
5617 # 93 "/usr/include/wchar.h" 3 4
5620 typedef __mbstate_t mbstate_t;
5624 # 118 "/usr/include/wchar.h" 3 4
5640 extern wchar_t *wcscpy (wchar_t *__restrict __dest,
5641 __const wchar_t *__restrict __src) throw ();
5643 extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
5644 __const wchar_t *__restrict __src, size_t __n)
5648 extern wchar_t *wcscat (wchar_t *__restrict __dest,
5649 __const wchar_t *__restrict __src) throw ();
5651 extern wchar_t *wcsncat (wchar_t *__restrict __dest,
5652 __const wchar_t *__restrict __src, size_t __n)
5656 extern int wcscmp (__const wchar_t *__s1, __const wchar_t *__s2)
5657 throw () __attribute__ ((__pure__));
5659 extern int wcsncmp (__const wchar_t *__s1, __const wchar_t *__s2, size_t __n)
5660 throw () __attribute__ ((__pure__));
5665 extern int wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2) throw ();
5668 extern int wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2,
5669 size_t __n) throw ();
5675 extern int wcscasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2,
5676 __locale_t __loc) throw ();
5678 extern int wcsncasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2,
5679 size_t __n, __locale_t __loc) throw ();
5685 extern int wcscoll (__const wchar_t *__s1, __const wchar_t *__s2) throw ();
5689 extern size_t wcsxfrm (wchar_t *__restrict __s1,
5690 __const wchar_t *__restrict __s2, size_t __n) throw ();
5699 extern int wcscoll_l (__const wchar_t *__s1, __const wchar_t *__s2,
5700 __locale_t __loc) throw ();
5705 extern size_t wcsxfrm_l (wchar_t *__s1, __const wchar_t *__s2,
5706 size_t __n, __locale_t __loc) throw ();
5709 extern wchar_t *wcsdup (__const wchar_t *__s) throw () __attribute__ ((__malloc__));
5714 extern wchar_t *wcschr (__const wchar_t *__wcs, wchar_t __wc)
5715 throw () __attribute__ ((__pure__));
5717 extern wchar_t *wcsrchr (__const wchar_t *__wcs, wchar_t __wc)
5718 throw () __attribute__ ((__pure__));
5724 extern wchar_t *wcschrnul (__const wchar_t *__s, wchar_t __wc)
5725 throw () __attribute__ ((__pure__));
5731 extern size_t wcscspn (__const wchar_t *__wcs, __const wchar_t *__reject)
5732 throw () __attribute__ ((__pure__));
5735 extern size_t wcsspn (__const wchar_t *__wcs, __const wchar_t *__accept)
5736 throw () __attribute__ ((__pure__));
5738 extern wchar_t *wcspbrk (__const wchar_t *__wcs, __const wchar_t *__accept)
5739 throw () __attribute__ ((__pure__));
5741 extern wchar_t *wcsstr (__const wchar_t *__haystack, __const wchar_t *__needle)
5742 throw () __attribute__ ((__pure__));
5745 extern wchar_t *wcstok (wchar_t *__restrict __s,
5746 __const wchar_t *__restrict __delim,
5747 wchar_t **__restrict __ptr) throw ();
5750 extern size_t wcslen (__const wchar_t *__s) throw () __attribute__ ((__pure__));
5755 extern wchar_t *wcswcs (__const wchar_t *__haystack, __const wchar_t *__needle)
5756 throw () __attribute__ ((__pure__));
5761 extern size_t wcsnlen (__const wchar_t *__s, size_t __maxlen)
5762 throw () __attribute__ ((__pure__));
5768 extern wchar_t *wmemchr (__const wchar_t *__s, wchar_t __c, size_t __n)
5769 throw () __attribute__ ((__pure__));
5772 extern int wmemcmp (__const wchar_t *__restrict __s1,
5773 __const wchar_t *__restrict __s2, size_t __n)
5774 throw () __attribute__ ((__pure__));
5777 extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
5778 __const wchar_t *__restrict __s2, size_t __n) throw ();
5782 extern wchar_t *wmemmove (wchar_t *__s1, __const wchar_t *__s2, size_t __n)
5786 extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) throw ();
5792 extern wchar_t *wmempcpy (wchar_t *__restrict __s1,
5793 __const wchar_t *__restrict __s2, size_t __n)
5801 extern wint_t btowc (int __c) throw ();
5805 extern int wctob (wint_t __c) throw ();
5809 extern int mbsinit (__const mbstate_t *__ps) throw () __attribute__ ((__pure__));
5813 extern size_t mbrtowc (wchar_t *__restrict __pwc,
5814 __const char *__restrict __s, size_t __n,
5815 mbstate_t *__p) throw ();
5818 extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
5819 mbstate_t *__restrict __ps) throw ();
5822 extern size_t __mbrlen (__const char *__restrict __s, size_t __n,
5823 mbstate_t *__restrict __ps) throw ();
5824 extern size_t mbrlen (__const char *__restrict __s, size_t __n,
5825 mbstate_t *__restrict __ps) throw ();
5827 # 341 "/usr/include/wchar.h" 3 4
5828 extern __inline size_t
5829 mbrlen (__const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) throw ()
5831 { return (__ps != __null
5832 ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); }
5838 extern size_t mbsrtowcs (wchar_t *__restrict __dst,
5839 __const char **__restrict __src, size_t __len,
5840 mbstate_t *__restrict __ps) throw ();
5844 extern size_t wcsrtombs (char *__restrict __dst,
5845 __const wchar_t **__restrict __src, size_t __len,
5846 mbstate_t *__restrict __ps) throw ();
5853 extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
5854 __const char **__restrict __src, size_t __nmc,
5855 size_t __len, mbstate_t *__restrict __ps) throw ();
5859 extern size_t wcsnrtombs (char *__restrict __dst,
5860 __const wchar_t **__restrict __src,
5861 size_t __nwc, size_t __len,
5862 mbstate_t *__restrict __ps) throw ();
5869 extern int wcwidth (wchar_t __c) throw ();
5873 extern int wcswidth (__const wchar_t *__s, size_t __n) throw ();
5880 extern double wcstod (__const wchar_t *__restrict __nptr,
5881 wchar_t **__restrict __endptr) throw ();
5885 extern float wcstof (__const wchar_t *__restrict __nptr,
5886 wchar_t **__restrict __endptr) throw ();
5887 extern long double wcstold (__const wchar_t *__restrict __nptr,
5888 wchar_t **__restrict __endptr) throw ();
5894 extern long int wcstol (__const wchar_t *__restrict __nptr,
5895 wchar_t **__restrict __endptr, int __base) throw ();
5899 extern unsigned long int wcstoul (__const wchar_t *__restrict __nptr,
5900 wchar_t **__restrict __endptr, int __base)
5907 extern long long int wcstoll (__const wchar_t *__restrict __nptr,
5908 wchar_t **__restrict __endptr, int __base)
5914 extern unsigned long long int wcstoull (__const wchar_t *__restrict __nptr,
5915 wchar_t **__restrict __endptr,
5916 int __base) throw ();
5924 extern long long int wcstoq (__const wchar_t *__restrict __nptr,
5925 wchar_t **__restrict __endptr, int __base)
5931 extern unsigned long long int wcstouq (__const wchar_t *__restrict __nptr,
5932 wchar_t **__restrict __endptr,
5933 int __base) throw ();
5934 # 467 "/usr/include/wchar.h" 3 4
5935 extern long int wcstol_l (__const wchar_t *__restrict __nptr,
5936 wchar_t **__restrict __endptr, int __base,
5937 __locale_t __loc) throw ();
5939 extern unsigned long int wcstoul_l (__const wchar_t *__restrict __nptr,
5940 wchar_t **__restrict __endptr,
5941 int __base, __locale_t __loc) throw ();
5944 extern long long int wcstoll_l (__const wchar_t *__restrict __nptr,
5945 wchar_t **__restrict __endptr,
5946 int __base, __locale_t __loc) throw ();
5949 extern unsigned long long int wcstoull_l (__const wchar_t *__restrict __nptr,
5950 wchar_t **__restrict __endptr,
5951 int __base, __locale_t __loc)
5954 extern double wcstod_l (__const wchar_t *__restrict __nptr,
5955 wchar_t **__restrict __endptr, __locale_t __loc)
5958 extern float wcstof_l (__const wchar_t *__restrict __nptr,
5959 wchar_t **__restrict __endptr, __locale_t __loc)
5962 extern long double wcstold_l (__const wchar_t *__restrict __nptr,
5963 wchar_t **__restrict __endptr,
5964 __locale_t __loc) throw ();
5970 extern double __wcstod_internal (__const wchar_t *__restrict __nptr,
5971 wchar_t **__restrict __endptr, int __group)
5973 extern float __wcstof_internal (__const wchar_t *__restrict __nptr,
5974 wchar_t **__restrict __endptr, int __group)
5976 extern long double __wcstold_internal (__const wchar_t *__restrict __nptr,
5977 wchar_t **__restrict __endptr,
5978 int __group) throw ();
5982 extern long int __wcstol_internal (__const wchar_t *__restrict __nptr,
5983 wchar_t **__restrict __endptr,
5984 int __base, int __group) throw ();
5989 extern unsigned long int __wcstoul_internal (__const wchar_t *__restrict __npt,
5990 wchar_t **__restrict __endptr,
5991 int __base, int __group) throw ();
5997 extern long long int __wcstoll_internal (__const wchar_t *__restrict __nptr,
5998 wchar_t **__restrict __endptr,
5999 int __base, int __group) throw ();
6005 extern unsigned long long int __wcstoull_internal (__const wchar_t *
6008 __restrict __endptr,
6010 int __group) throw ();
6019 extern __inline double
6020 wcstod (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) throw ()
6022 { return __wcstod_internal (__nptr, __endptr, 0); }
6023 extern __inline long int
6024 wcstol (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) throw ()
6026 { return __wcstol_internal (__nptr, __endptr, __base, 0); }
6027 extern __inline unsigned long int
6028 wcstoul (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) throw ()
6030 { return __wcstoul_internal (__nptr, __endptr, __base, 0); }
6034 extern __inline float
6035 wcstof (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) throw ()
6037 { return __wcstof_internal (__nptr, __endptr, 0); }
6045 extern __inline long long int
6046 wcstoq (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) throw ()
6048 { return __wcstoll_internal (__nptr, __endptr, __base, 0); }
6050 extern __inline unsigned long long int
6051 wcstouq (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) throw ()
6053 { return __wcstoull_internal (__nptr, __endptr, __base, 0); }
6061 extern wchar_t *wcpcpy (wchar_t *__dest, __const wchar_t *__src) throw ();
6065 extern wchar_t *wcpncpy (wchar_t *__dest, __const wchar_t *__src, size_t __n)
6067 # 607 "/usr/include/wchar.h" 3 4
6068 extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) throw ();
6075 extern int fwide (__FILE *__fp, int __mode) throw ();
6082 extern int fwprintf (__FILE *__restrict __stream,
6083 __const wchar_t *__restrict __format, ...)
6089 extern int wprintf (__const wchar_t *__restrict __format, ...)
6092 extern int swprintf (wchar_t *__restrict __s, size_t __n,
6093 __const wchar_t *__restrict __format, ...)
6100 extern int vfwprintf (__FILE *__restrict __s,
6101 __const wchar_t *__restrict __format,
6102 __gnuc_va_list __arg)
6108 extern int vwprintf (__const wchar_t *__restrict __format,
6109 __gnuc_va_list __arg)
6113 extern int vswprintf (wchar_t *__restrict __s, size_t __n,
6114 __const wchar_t *__restrict __format,
6115 __gnuc_va_list __arg)
6123 extern int fwscanf (__FILE *__restrict __stream,
6124 __const wchar_t *__restrict __format, ...)
6130 extern int wscanf (__const wchar_t *__restrict __format, ...)
6133 extern int swscanf (__const wchar_t *__restrict __s,
6134 __const wchar_t *__restrict __format, ...)
6147 extern int vfwscanf (__FILE *__restrict __s,
6148 __const wchar_t *__restrict __format,
6149 __gnuc_va_list __arg)
6155 extern int vwscanf (__const wchar_t *__restrict __format,
6156 __gnuc_va_list __arg)
6159 extern int vswscanf (__const wchar_t *__restrict __s,
6160 __const wchar_t *__restrict __format,
6161 __gnuc_va_list __arg)
6173 extern wint_t fgetwc (__FILE *__stream);
6174 extern wint_t getwc (__FILE *__stream);
6180 extern wint_t getwchar (void);
6187 extern wint_t fputwc (wchar_t __wc, __FILE *__stream);
6188 extern wint_t putwc (wchar_t __wc, __FILE *__stream);
6194 extern wint_t putwchar (wchar_t __wc);
6202 extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n,
6203 __FILE *__restrict __stream);
6209 extern int fputws (__const wchar_t *__restrict __ws,
6210 __FILE *__restrict __stream);
6217 extern wint_t ungetwc (wint_t __wc, __FILE *__stream);
6219 # 768 "/usr/include/wchar.h" 3 4
6220 extern wint_t getwc_unlocked (__FILE *__stream);
6221 extern wint_t getwchar_unlocked (void);
6229 extern wint_t fgetwc_unlocked (__FILE *__stream);
6237 extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream);
6238 # 794 "/usr/include/wchar.h" 3 4
6239 extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream);
6240 extern wint_t putwchar_unlocked (wchar_t __wc);
6241 # 804 "/usr/include/wchar.h" 3 4
6242 extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n,
6243 __FILE *__restrict __stream);
6251 extern int fputws_unlocked (__const wchar_t *__restrict __ws,
6252 __FILE *__restrict __stream);
6260 extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
6261 __const wchar_t *__restrict __format,
6262 __const struct tm *__restrict __tp) throw ();
6270 extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize,
6271 __const wchar_t *__restrict __format,
6272 __const struct tm *__restrict __tp,
6273 __locale_t __loc) throw ();
6274 # 855 "/usr/include/wchar.h" 3 4
6275 # 1 "/usr/include/bits/wchar-ldbl.h" 1 3 4
6276 # 25 "/usr/include/bits/wchar-ldbl.h" 3 4
6278 extern __typeof (fwprintf) fwprintf __asm ("" "__nldbl_" "fwprintf");;
6279 extern __typeof (wprintf) wprintf __asm ("" "__nldbl_" "wprintf");;
6280 extern __typeof (swprintf) swprintf __asm ("" "__nldbl_" "swprintf");;
6281 extern __typeof (vfwprintf) vfwprintf __asm ("" "__nldbl_" "vfwprintf");;
6282 extern __typeof (vwprintf) vwprintf __asm ("" "__nldbl_" "vwprintf");;
6283 extern __typeof (vswprintf) vswprintf __asm ("" "__nldbl_" "vswprintf");;
6284 extern __typeof (fwscanf) fwscanf __asm ("" "__nldbl_" "fwscanf");;
6285 extern __typeof (wscanf) wscanf __asm ("" "__nldbl_" "wscanf");;
6286 extern __typeof (swscanf) swscanf __asm ("" "__nldbl_" "swscanf");;
6292 extern __typeof (wcstold) wcstold __asm ("" "wcstod");;
6293 extern __typeof (vfwscanf) vfwscanf __asm ("" "__nldbl_" "vfwscanf");;
6294 extern __typeof (vwscanf) vwscanf __asm ("" "__nldbl_" "vwscanf");;
6295 extern __typeof (vswscanf) vswscanf __asm ("" "__nldbl_" "vswscanf");;
6300 extern __typeof (wcstold_l) wcstold_l __asm ("" "wcstod_l");;
6303 extern __typeof (__wcstold_internal) __wcstold_internal __asm ("" "__wcstod_internal");;
6304 # 856 "/usr/include/wchar.h" 2 3 4
6308 # 57 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cwchar" 2 3
6309 # 71 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cwchar" 3
6314 # 143 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cwchar" 3
6384 wcschr(wchar_t* __p, wchar_t __c)
6385 { return wcschr(const_cast<const wchar_t*>(__p), __c); }
6390 wcspbrk(wchar_t* __s1, const wchar_t* __s2)
6391 { return wcspbrk(const_cast<const wchar_t*>(__s1), __s2); }
6396 wcsrchr(wchar_t* __p, wchar_t __c)
6397 { return wcsrchr(const_cast<const wchar_t*>(__p), __c); }
6402 wcsstr(wchar_t* __s1, const wchar_t* __s2)
6403 { return wcsstr(const_cast<const wchar_t*>(__s1), __s2); }
6408 wmemchr(wchar_t* __p, wchar_t __c, size_t __n)
6409 { return wmemchr(const_cast<const wchar_t*>(__p), __c, __n); }
6426 # 262 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cwchar" 3
6434 using __gnu_cxx::wcstold;
6435 using __gnu_cxx::wcstoll;
6436 using __gnu_cxx::wcstoull;
6442 #pragma GCC visibility pop
6443 # 47 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/postypes.h" 2 3
6446 # 1 "/usr/include/stdint.h" 1 3 4
6447 # 28 "/usr/include/stdint.h" 3 4
6448 # 1 "/usr/include/bits/wordsize.h" 1 3 4
6449 # 29 "/usr/include/stdint.h" 2 3 4
6450 # 37 "/usr/include/stdint.h" 3 4
6451 typedef signed char int8_t;
6452 typedef short int int16_t;
6453 typedef int int32_t;
6458 typedef long long int int64_t;
6463 typedef unsigned char uint8_t;
6464 typedef unsigned short int uint16_t;
6466 typedef unsigned int uint32_t;
6473 typedef unsigned long long int uint64_t;
6480 typedef signed char int_least8_t;
6481 typedef short int int_least16_t;
6482 typedef int int_least32_t;
6487 typedef long long int int_least64_t;
6491 typedef unsigned char uint_least8_t;
6492 typedef unsigned short int uint_least16_t;
6493 typedef unsigned int uint_least32_t;
6498 typedef unsigned long long int uint_least64_t;
6505 typedef signed char int_fast8_t;
6511 typedef int int_fast16_t;
6512 typedef int int_fast32_t;
6514 typedef long long int int_fast64_t;
6518 typedef unsigned char uint_fast8_t;
6524 typedef unsigned int uint_fast16_t;
6525 typedef unsigned int uint_fast32_t;
6527 typedef unsigned long long int uint_fast64_t;
6528 # 129 "/usr/include/stdint.h" 3 4
6529 typedef unsigned int uintptr_t;
6530 # 138 "/usr/include/stdint.h" 3 4
6532 typedef long long int intmax_t;
6534 typedef unsigned long long int uintmax_t;
6535 # 50 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/postypes.h" 2 3
6540 # 72 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/postypes.h" 3
6541 typedef int64_t streamoff;
6547 typedef ptrdiff_t streamsize;
6549 template<typename _StateT>
6551 # 94 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/postypes.h" 3
6552 template<typename _StateT>
6565 : _M_off(0), _M_state() { }
6566 # 116 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/postypes.h" 3
6567 fpos(streamoff __off)
6568 : _M_off(__off), _M_state() { }
6571 operator streamoff() const { return _M_off; }
6576 { _M_state = __st; }
6581 { return _M_state; }
6589 operator==(const fpos& __other) const
6590 { return _M_off == __other._M_off; }
6594 operator!=(const fpos& __other) const
6595 { return _M_off != __other._M_off; }
6602 operator+=(streamoff __off)
6613 operator-=(streamoff __off)
6626 operator+(streamoff __off) const
6640 operator-(streamoff __off) const
6653 operator-(const fpos& __other) const
6654 { return _M_off - __other._M_off; }
6661 typedef fpos<mbstate_t> streampos;
6663 typedef fpos<mbstate_t> wstreampos;
6665 # 51 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iosfwd" 2 3
6666 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/functexcept.h" 1 3
6667 # 41 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/functexcept.h" 3
6668 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/exception_defines.h" 1 3
6669 # 42 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/functexcept.h" 2 3
6675 __throw_bad_exception(void) __attribute__((__noreturn__));
6679 __throw_bad_alloc(void) __attribute__((__noreturn__));
6683 __throw_bad_cast(void) __attribute__((__noreturn__));
6686 __throw_bad_typeid(void) __attribute__((__noreturn__));
6690 __throw_logic_error(const char*) __attribute__((__noreturn__));
6693 __throw_domain_error(const char*) __attribute__((__noreturn__));
6696 __throw_invalid_argument(const char*) __attribute__((__noreturn__));
6699 __throw_length_error(const char*) __attribute__((__noreturn__));
6702 __throw_out_of_range(const char*) __attribute__((__noreturn__));
6705 __throw_runtime_error(const char*) __attribute__((__noreturn__));
6708 __throw_range_error(const char*) __attribute__((__noreturn__));
6711 __throw_overflow_error(const char*) __attribute__((__noreturn__));
6714 __throw_underflow_error(const char*) __attribute__((__noreturn__));
6718 __throw_ios_failure(const char*) __attribute__((__noreturn__));
6720 # 52 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iosfwd" 2 3
6724 template<typename _CharT, typename _Traits = char_traits<_CharT> >
6727 template<typename _CharT, typename _Traits = char_traits<_CharT> >
6728 class basic_streambuf;
6730 template<typename _CharT, typename _Traits = char_traits<_CharT> >
6731 class basic_istream;
6733 template<typename _CharT, typename _Traits = char_traits<_CharT> >
6734 class basic_ostream;
6736 template<typename _CharT, typename _Traits = char_traits<_CharT> >
6737 class basic_iostream;
6739 template<typename _CharT, typename _Traits = char_traits<_CharT>,
6740 typename _Alloc = allocator<_CharT> >
6741 class basic_stringbuf;
6743 template<typename _CharT, typename _Traits = char_traits<_CharT>,
6744 typename _Alloc = allocator<_CharT> >
6745 class basic_istringstream;
6747 template<typename _CharT, typename _Traits = char_traits<_CharT>,
6748 typename _Alloc = allocator<_CharT> >
6749 class basic_ostringstream;
6751 template<typename _CharT, typename _Traits = char_traits<_CharT>,
6752 typename _Alloc = allocator<_CharT> >
6753 class basic_stringstream;
6755 template<typename _CharT, typename _Traits = char_traits<_CharT> >
6756 class basic_filebuf;
6758 template<typename _CharT, typename _Traits = char_traits<_CharT> >
6759 class basic_ifstream;
6761 template<typename _CharT, typename _Traits = char_traits<_CharT> >
6762 class basic_ofstream;
6764 template<typename _CharT, typename _Traits = char_traits<_CharT> >
6765 class basic_fstream;
6767 template<typename _CharT, typename _Traits = char_traits<_CharT> >
6768 class istreambuf_iterator;
6770 template<typename _CharT, typename _Traits = char_traits<_CharT> >
6771 class ostreambuf_iterator;
6776 # 136 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iosfwd" 3
6777 typedef basic_ios<char> ios;
6778 typedef basic_streambuf<char> streambuf;
6779 typedef basic_istream<char> istream;
6780 typedef basic_ostream<char> ostream;
6781 typedef basic_iostream<char> iostream;
6782 typedef basic_stringbuf<char> stringbuf;
6783 typedef basic_istringstream<char> istringstream;
6784 typedef basic_ostringstream<char> ostringstream;
6785 typedef basic_stringstream<char> stringstream;
6786 typedef basic_filebuf<char> filebuf;
6787 typedef basic_ifstream<char> ifstream;
6788 typedef basic_ofstream<char> ofstream;
6789 typedef basic_fstream<char> fstream;
6792 typedef basic_ios<wchar_t> wios;
6793 typedef basic_streambuf<wchar_t> wstreambuf;
6794 typedef basic_istream<wchar_t> wistream;
6795 typedef basic_ostream<wchar_t> wostream;
6796 typedef basic_iostream<wchar_t> wiostream;
6797 typedef basic_stringbuf<wchar_t> wstringbuf;
6798 typedef basic_istringstream<wchar_t> wistringstream;
6799 typedef basic_ostringstream<wchar_t> wostringstream;
6800 typedef basic_stringstream<wchar_t> wstringstream;
6801 typedef basic_filebuf<wchar_t> wfilebuf;
6802 typedef basic_ifstream<wchar_t> wifstream;
6803 typedef basic_ofstream<wchar_t> wofstream;
6804 typedef basic_fstream<wchar_t> wfstream;
6809 #pragma GCC visibility pop
6810 # 46 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ios" 2 3
6811 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/exception" 1 3
6812 # 40 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/exception" 3
6813 #pragma GCC visibility push(default)
6819 # 54 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/exception" 3
6823 exception() throw() { }
6824 virtual ~exception() throw();
6827 virtual const char* what() const throw();
6832 class bad_exception : public exception
6835 bad_exception() throw() { }
6838 virtual ~bad_exception() throw();
6842 typedef void (*terminate_handler) ();
6844 typedef void (*unexpected_handler) ();
6847 terminate_handler set_terminate(terminate_handler) throw();
6850 void terminate() __attribute__ ((__noreturn__));
6853 unexpected_handler set_unexpected(unexpected_handler) throw();
6856 void unexpected() __attribute__ ((__noreturn__));
6857 # 102 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/exception" 3
6858 bool uncaught_exception() throw();
6863 # 117 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/exception" 3
6864 void __verbose_terminate_handler ();
6869 #pragma GCC visibility pop
6870 # 47 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ios" 2 3
6871 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/char_traits.h" 1 3
6872 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/char_traits.h" 3
6874 # 44 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/char_traits.h" 3
6877 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 1 3
6878 # 66 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
6879 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/climits" 1 3
6880 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/climits" 3
6882 # 49 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/climits" 3
6883 #pragma GCC visibility push(default)
6885 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/limits.h" 1 3 4
6886 # 11 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/limits.h" 3 4
6887 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/syslimits.h" 1 3 4
6894 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/limits.h" 1 3 4
6895 # 122 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/limits.h" 3 4
6896 # 1 "/usr/include/limits.h" 1 3 4
6897 # 145 "/usr/include/limits.h" 3 4
6898 # 1 "/usr/include/bits/posix1_lim.h" 1 3 4
6899 # 153 "/usr/include/bits/posix1_lim.h" 3 4
6900 # 1 "/usr/include/bits/local_lim.h" 1 3 4
6901 # 36 "/usr/include/bits/local_lim.h" 3 4
6902 # 1 "/usr/include/linux/limits.h" 1 3 4
6903 # 37 "/usr/include/bits/local_lim.h" 2 3 4
6904 # 154 "/usr/include/bits/posix1_lim.h" 2 3 4
6905 # 146 "/usr/include/limits.h" 2 3 4
6909 # 1 "/usr/include/bits/posix2_lim.h" 1 3 4
6910 # 150 "/usr/include/limits.h" 2 3 4
6914 # 1 "/usr/include/bits/xopen_lim.h" 1 3 4
6915 # 34 "/usr/include/bits/xopen_lim.h" 3 4
6916 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
6917 # 35 "/usr/include/bits/xopen_lim.h" 2 3 4
6918 # 154 "/usr/include/limits.h" 2 3 4
6919 # 123 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/limits.h" 2 3 4
6920 # 8 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/syslimits.h" 2 3 4
6921 # 12 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/limits.h" 2 3 4
6922 # 52 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/climits" 2 3
6924 #pragma GCC visibility pop
6925 # 67 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 2 3
6926 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdlib" 1 3
6927 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdlib" 3
6929 # 49 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdlib" 3
6930 #pragma GCC visibility push(default)
6931 # 72 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdlib" 3
6932 # 1 "/usr/include/stdlib.h" 1 3 4
6933 # 33 "/usr/include/stdlib.h" 3 4
6934 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
6935 # 34 "/usr/include/stdlib.h" 2 3 4
6944 # 1 "/usr/include/bits/waitflags.h" 1 3 4
6945 # 43 "/usr/include/stdlib.h" 2 3 4
6946 # 1 "/usr/include/bits/waitstatus.h" 1 3 4
6947 # 67 "/usr/include/bits/waitstatus.h" 3 4
6961 unsigned int __w_retcode:8;
6962 unsigned int __w_coredump:1;
6963 unsigned int __w_termsig:7;
6965 } __wait_terminated;
6975 unsigned int __w_stopsig:8;
6976 unsigned int __w_stopval:8;
6980 # 44 "/usr/include/stdlib.h" 2 3 4
6981 # 96 "/usr/include/stdlib.h" 3 4
7004 __extension__ typedef struct
7011 # 140 "/usr/include/stdlib.h" 3 4
7012 extern size_t __ctype_get_mb_cur_max (void) throw () ;
7017 extern double atof (__const char *__nptr)
7018 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
7020 extern int atoi (__const char *__nptr)
7021 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
7023 extern long int atol (__const char *__nptr)
7024 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
7030 __extension__ extern long long int atoll (__const char *__nptr)
7031 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
7037 extern double strtod (__const char *__restrict __nptr,
7038 char **__restrict __endptr)
7039 throw () __attribute__ ((__nonnull__ (1))) ;
7045 extern float strtof (__const char *__restrict __nptr,
7046 char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))) ;
7048 extern long double strtold (__const char *__restrict __nptr,
7049 char **__restrict __endptr)
7050 throw () __attribute__ ((__nonnull__ (1))) ;
7056 extern long int strtol (__const char *__restrict __nptr,
7057 char **__restrict __endptr, int __base)
7058 throw () __attribute__ ((__nonnull__ (1))) ;
7060 extern unsigned long int strtoul (__const char *__restrict __nptr,
7061 char **__restrict __endptr, int __base)
7062 throw () __attribute__ ((__nonnull__ (1))) ;
7068 extern long long int strtoq (__const char *__restrict __nptr,
7069 char **__restrict __endptr, int __base)
7070 throw () __attribute__ ((__nonnull__ (1))) ;
7073 extern unsigned long long int strtouq (__const char *__restrict __nptr,
7074 char **__restrict __endptr, int __base)
7075 throw () __attribute__ ((__nonnull__ (1))) ;
7082 extern long long int strtoll (__const char *__restrict __nptr,
7083 char **__restrict __endptr, int __base)
7084 throw () __attribute__ ((__nonnull__ (1))) ;
7087 extern unsigned long long int strtoull (__const char *__restrict __nptr,
7088 char **__restrict __endptr, int __base)
7089 throw () __attribute__ ((__nonnull__ (1))) ;
7091 # 240 "/usr/include/stdlib.h" 3 4
7092 extern long int strtol_l (__const char *__restrict __nptr,
7093 char **__restrict __endptr, int __base,
7094 __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))) ;
7096 extern unsigned long int strtoul_l (__const char *__restrict __nptr,
7097 char **__restrict __endptr,
7098 int __base, __locale_t __loc)
7099 throw () __attribute__ ((__nonnull__ (1, 4))) ;
7102 extern long long int strtoll_l (__const char *__restrict __nptr,
7103 char **__restrict __endptr, int __base,
7105 throw () __attribute__ ((__nonnull__ (1, 4))) ;
7108 extern unsigned long long int strtoull_l (__const char *__restrict __nptr,
7109 char **__restrict __endptr,
7110 int __base, __locale_t __loc)
7111 throw () __attribute__ ((__nonnull__ (1, 4))) ;
7113 extern double strtod_l (__const char *__restrict __nptr,
7114 char **__restrict __endptr, __locale_t __loc)
7115 throw () __attribute__ ((__nonnull__ (1, 3))) ;
7117 extern float strtof_l (__const char *__restrict __nptr,
7118 char **__restrict __endptr, __locale_t __loc)
7119 throw () __attribute__ ((__nonnull__ (1, 3))) ;
7121 extern long double strtold_l (__const char *__restrict __nptr,
7122 char **__restrict __endptr,
7124 throw () __attribute__ ((__nonnull__ (1, 3))) ;
7131 extern double __strtod_internal (__const char *__restrict __nptr,
7132 char **__restrict __endptr, int __group)
7133 throw () __attribute__ ((__nonnull__ (1))) ;
7134 extern float __strtof_internal (__const char *__restrict __nptr,
7135 char **__restrict __endptr, int __group)
7136 throw () __attribute__ ((__nonnull__ (1))) ;
7137 extern long double __strtold_internal (__const char *__restrict __nptr,
7138 char **__restrict __endptr,
7140 throw () __attribute__ ((__nonnull__ (1))) ;
7142 extern long int __strtol_internal (__const char *__restrict __nptr,
7143 char **__restrict __endptr,
7144 int __base, int __group)
7145 throw () __attribute__ ((__nonnull__ (1))) ;
7149 extern unsigned long int __strtoul_internal (__const char *__restrict __nptr,
7150 char **__restrict __endptr,
7151 int __base, int __group)
7152 throw () __attribute__ ((__nonnull__ (1))) ;
7158 extern long long int __strtoll_internal (__const char *__restrict __nptr,
7159 char **__restrict __endptr,
7160 int __base, int __group)
7161 throw () __attribute__ ((__nonnull__ (1))) ;
7166 extern unsigned long long int __strtoull_internal (__const char *
7168 char **__restrict __endptr,
7169 int __base, int __group)
7170 throw () __attribute__ ((__nonnull__ (1))) ;
7179 extern __inline double
7180 strtod (__const char *__restrict __nptr, char **__restrict __endptr) throw ()
7182 return __strtod_internal (__nptr, __endptr, 0);
7184 extern __inline long int
7185 strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw ()
7188 return __strtol_internal (__nptr, __endptr, __base, 0);
7190 extern __inline unsigned long int
7191 strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw ()
7194 return __strtoul_internal (__nptr, __endptr, __base, 0);
7200 extern __inline float
7201 strtof (__const char *__restrict __nptr, char **__restrict __endptr) throw ()
7203 return __strtof_internal (__nptr, __endptr, 0);
7216 __extension__ extern __inline long long int
7217 strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw ()
7220 return __strtoll_internal (__nptr, __endptr, __base, 0);
7222 __extension__ extern __inline unsigned long long int
7223 strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw ()
7226 return __strtoull_internal (__nptr, __endptr, __base, 0);
7232 __extension__ extern __inline long long int
7233 strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw ()
7236 return __strtoll_internal (__nptr, __endptr, __base, 0);
7238 __extension__ extern __inline unsigned long long int
7239 strtoull (__const char * __restrict __nptr, char **__restrict __endptr, int __base) throw ()
7242 return __strtoull_internal (__nptr, __endptr, __base, 0);
7248 extern __inline double
7249 atof (__const char *__nptr) throw ()
7251 return strtod (__nptr, (char **) __null);
7254 atoi (__const char *__nptr) throw ()
7256 return (int) strtol (__nptr, (char **) __null, 10);
7258 extern __inline long int
7259 atol (__const char *__nptr) throw ()
7261 return strtol (__nptr, (char **) __null, 10);
7267 __extension__ extern __inline long long int
7268 atoll (__const char *__nptr) throw ()
7270 return strtoll (__nptr, (char **) __null, 10);
7273 # 429 "/usr/include/stdlib.h" 3 4
7274 extern char *l64a (long int __n) throw () ;
7277 extern long int a64l (__const char *__s)
7278 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
7283 # 1 "/usr/include/sys/types.h" 1 3 4
7284 # 29 "/usr/include/sys/types.h" 3 4
7291 typedef __u_char u_char;
7292 typedef __u_short u_short;
7293 typedef __u_int u_int;
7294 typedef __u_long u_long;
7295 typedef __quad_t quad_t;
7296 typedef __u_quad_t u_quad_t;
7297 typedef __fsid_t fsid_t;
7302 typedef __loff_t loff_t;
7306 typedef __ino_t ino_t;
7313 typedef __ino64_t ino64_t;
7318 typedef __dev_t dev_t;
7319 # 72 "/usr/include/sys/types.h" 3 4
7320 typedef __mode_t mode_t;
7325 typedef __nlink_t nlink_t;
7326 # 105 "/usr/include/sys/types.h" 3 4
7327 typedef __id_t id_t;
7328 # 116 "/usr/include/sys/types.h" 3 4
7329 typedef __daddr_t daddr_t;
7330 typedef __caddr_t caddr_t;
7336 typedef __key_t key_t;
7337 # 141 "/usr/include/sys/types.h" 3 4
7338 typedef __suseconds_t suseconds_t;
7344 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
7345 # 148 "/usr/include/sys/types.h" 2 3 4
7349 typedef unsigned long int ulong;
7350 typedef unsigned short int ushort;
7351 typedef unsigned int uint;
7352 # 201 "/usr/include/sys/types.h" 3 4
7353 typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
7354 typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
7355 typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
7356 typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
7358 typedef int register_t __attribute__ ((__mode__ (__word__)));
7359 # 220 "/usr/include/sys/types.h" 3 4
7360 # 1 "/usr/include/sys/select.h" 1 3 4
7361 # 31 "/usr/include/sys/select.h" 3 4
7362 # 1 "/usr/include/bits/select.h" 1 3 4
7363 # 32 "/usr/include/sys/select.h" 2 3 4
7366 # 1 "/usr/include/bits/sigset.h" 1 3 4
7367 # 35 "/usr/include/sys/select.h" 2 3 4
7368 # 46 "/usr/include/sys/select.h" 3 4
7369 # 1 "/usr/include/bits/time.h" 1 3 4
7370 # 69 "/usr/include/bits/time.h" 3 4
7374 __suseconds_t tv_usec;
7376 # 47 "/usr/include/sys/select.h" 2 3 4
7377 # 55 "/usr/include/sys/select.h" 3 4
7378 typedef long int __fd_mask;
7379 # 67 "/usr/include/sys/select.h" 3 4
7385 __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))];
7398 typedef __fd_mask fd_mask;
7399 # 99 "/usr/include/sys/select.h" 3 4
7401 # 109 "/usr/include/sys/select.h" 3 4
7402 extern int select (int __nfds, fd_set *__restrict __readfds,
7403 fd_set *__restrict __writefds,
7404 fd_set *__restrict __exceptfds,
7405 struct timeval *__restrict __timeout);
7406 # 121 "/usr/include/sys/select.h" 3 4
7407 extern int pselect (int __nfds, fd_set *__restrict __readfds,
7408 fd_set *__restrict __writefds,
7409 fd_set *__restrict __exceptfds,
7410 const struct timespec *__restrict __timeout,
7411 const __sigset_t *__restrict __sigmask);
7415 # 221 "/usr/include/sys/types.h" 2 3 4
7418 # 1 "/usr/include/sys/sysmacros.h" 1 3 4
7419 # 29 "/usr/include/sys/sysmacros.h" 3 4
7421 extern __inline unsigned int gnu_dev_major (unsigned long long int __dev)
7424 extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev)
7427 extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major,
7428 unsigned int __minor)
7432 __extension__ extern __inline unsigned int
7433 gnu_dev_major (unsigned long long int __dev) throw ()
7435 return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
7438 __extension__ extern __inline unsigned int
7439 gnu_dev_minor (unsigned long long int __dev) throw ()
7441 return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
7444 __extension__ extern __inline unsigned long long int
7445 gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw ()
7447 return ((__minor & 0xff) | ((__major & 0xfff) << 8)
7448 | (((unsigned long long int) (__minor & ~0xff)) << 12)
7449 | (((unsigned long long int) (__major & ~0xfff)) << 32));
7451 # 224 "/usr/include/sys/types.h" 2 3 4
7456 typedef __blksize_t blksize_t;
7463 typedef __blkcnt_t blkcnt_t;
7467 typedef __fsblkcnt_t fsblkcnt_t;
7471 typedef __fsfilcnt_t fsfilcnt_t;
7472 # 262 "/usr/include/sys/types.h" 3 4
7473 typedef __blkcnt64_t blkcnt64_t;
7474 typedef __fsblkcnt64_t fsblkcnt64_t;
7475 typedef __fsfilcnt64_t fsfilcnt64_t;
7476 # 273 "/usr/include/sys/types.h" 3 4
7478 # 439 "/usr/include/stdlib.h" 2 3 4
7485 extern long int random (void) throw ();
7488 extern void srandom (unsigned int __seed) throw ();
7494 extern char *initstate (unsigned int __seed, char *__statebuf,
7495 size_t __statelen) throw () __attribute__ ((__nonnull__ (2)));
7499 extern char *setstate (char *__statebuf) throw () __attribute__ ((__nonnull__ (1)));
7518 extern int random_r (struct random_data *__restrict __buf,
7519 int32_t *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2)));
7521 extern int srandom_r (unsigned int __seed, struct random_data *__buf)
7522 throw () __attribute__ ((__nonnull__ (2)));
7524 extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
7526 struct random_data *__restrict __buf)
7527 throw () __attribute__ ((__nonnull__ (2, 4)));
7529 extern int setstate_r (char *__restrict __statebuf,
7530 struct random_data *__restrict __buf)
7531 throw () __attribute__ ((__nonnull__ (1, 2)));
7538 extern int rand (void) throw ();
7540 extern void srand (unsigned int __seed) throw ();
7545 extern int rand_r (unsigned int *__seed) throw ();
7553 extern double drand48 (void) throw ();
7554 extern double erand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1)));
7557 extern long int lrand48 (void) throw ();
7558 extern long int nrand48 (unsigned short int __xsubi[3])
7559 throw () __attribute__ ((__nonnull__ (1)));
7562 extern long int mrand48 (void) throw ();
7563 extern long int jrand48 (unsigned short int __xsubi[3])
7564 throw () __attribute__ ((__nonnull__ (1)));
7567 extern void srand48 (long int __seedval) throw ();
7568 extern unsigned short int *seed48 (unsigned short int __seed16v[3])
7569 throw () __attribute__ ((__nonnull__ (1)));
7570 extern void lcong48 (unsigned short int __param[7]) throw () __attribute__ ((__nonnull__ (1)));
7578 unsigned short int __x[3];
7579 unsigned short int __old_x[3];
7580 unsigned short int __c;
7581 unsigned short int __init;
7582 unsigned long long int __a;
7586 extern int drand48_r (struct drand48_data *__restrict __buffer,
7587 double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2)));
7588 extern int erand48_r (unsigned short int __xsubi[3],
7589 struct drand48_data *__restrict __buffer,
7590 double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2)));
7593 extern int lrand48_r (struct drand48_data *__restrict __buffer,
7594 long int *__restrict __result)
7595 throw () __attribute__ ((__nonnull__ (1, 2)));
7596 extern int nrand48_r (unsigned short int __xsubi[3],
7597 struct drand48_data *__restrict __buffer,
7598 long int *__restrict __result)
7599 throw () __attribute__ ((__nonnull__ (1, 2)));
7602 extern int mrand48_r (struct drand48_data *__restrict __buffer,
7603 long int *__restrict __result)
7604 throw () __attribute__ ((__nonnull__ (1, 2)));
7605 extern int jrand48_r (unsigned short int __xsubi[3],
7606 struct drand48_data *__restrict __buffer,
7607 long int *__restrict __result)
7608 throw () __attribute__ ((__nonnull__ (1, 2)));
7611 extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
7612 throw () __attribute__ ((__nonnull__ (2)));
7614 extern int seed48_r (unsigned short int __seed16v[3],
7615 struct drand48_data *__buffer) throw () __attribute__ ((__nonnull__ (1, 2)));
7617 extern int lcong48_r (unsigned short int __param[7],
7618 struct drand48_data *__buffer)
7619 throw () __attribute__ ((__nonnull__ (1, 2)));
7629 extern void *malloc (size_t __size) throw () __attribute__ ((__malloc__)) ;
7631 extern void *calloc (size_t __nmemb, size_t __size)
7632 throw () __attribute__ ((__malloc__)) ;
7640 extern void *realloc (void *__ptr, size_t __size)
7641 throw () __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));
7643 extern void free (void *__ptr) throw ();
7648 extern void cfree (void *__ptr) throw ();
7652 # 1 "/usr/include/alloca.h" 1 3 4
7653 # 25 "/usr/include/alloca.h" 3 4
7654 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
7655 # 26 "/usr/include/alloca.h" 2 3 4
7663 extern void *alloca (size_t __size) throw ();
7670 # 613 "/usr/include/stdlib.h" 2 3 4
7675 extern void *valloc (size_t __size) throw () __attribute__ ((__malloc__)) ;
7680 extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
7681 throw () __attribute__ ((__nonnull__ (1))) ;
7686 extern void abort (void) throw () __attribute__ ((__noreturn__));
7690 extern int atexit (void (*__func) (void)) throw () __attribute__ ((__nonnull__ (1)));
7696 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
7697 throw () __attribute__ ((__nonnull__ (1)));
7704 extern void exit (int __status) throw () __attribute__ ((__noreturn__));
7711 extern void _Exit (int __status) throw () __attribute__ ((__noreturn__));
7718 extern char *getenv (__const char *__name) throw () __attribute__ ((__nonnull__ (1))) ;
7723 extern char *__secure_getenv (__const char *__name)
7724 throw () __attribute__ ((__nonnull__ (1))) ;
7730 extern int putenv (char *__string) throw () __attribute__ ((__nonnull__ (1)));
7736 extern int setenv (__const char *__name, __const char *__value, int __replace)
7737 throw () __attribute__ ((__nonnull__ (2)));
7740 extern int unsetenv (__const char *__name) throw ();
7747 extern int clearenv (void) throw ();
7748 # 698 "/usr/include/stdlib.h" 3 4
7749 extern char *mktemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) ;
7750 # 709 "/usr/include/stdlib.h" 3 4
7751 extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ;
7752 # 719 "/usr/include/stdlib.h" 3 4
7753 extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) ;
7754 # 729 "/usr/include/stdlib.h" 3 4
7755 extern char *mkdtemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) ;
7764 extern int system (__const char *__command) ;
7772 extern char *canonicalize_file_name (__const char *__name)
7773 throw () __attribute__ ((__nonnull__ (1))) ;
7774 # 757 "/usr/include/stdlib.h" 3 4
7775 extern char *realpath (__const char *__restrict __name,
7776 char *__restrict __resolved) throw () ;
7783 typedef int (*__compar_fn_t) (__const void *, __const void *);
7786 typedef __compar_fn_t comparison_fn_t;
7793 extern void *bsearch (__const void *__key, __const void *__base,
7794 size_t __nmemb, size_t __size, __compar_fn_t __compar)
7795 __attribute__ ((__nonnull__ (1, 2, 5))) ;
7799 extern void qsort (void *__base, size_t __nmemb, size_t __size,
7800 __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
7804 extern int abs (int __x) throw () __attribute__ ((__const__)) ;
7805 extern long int labs (long int __x) throw () __attribute__ ((__const__)) ;
7809 __extension__ extern long long int llabs (long long int __x)
7810 throw () __attribute__ ((__const__)) ;
7818 extern div_t div (int __numer, int __denom)
7819 throw () __attribute__ ((__const__)) ;
7820 extern ldiv_t ldiv (long int __numer, long int __denom)
7821 throw () __attribute__ ((__const__)) ;
7826 __extension__ extern lldiv_t lldiv (long long int __numer,
7827 long long int __denom)
7828 throw () __attribute__ ((__const__)) ;
7830 # 822 "/usr/include/stdlib.h" 3 4
7831 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
7832 int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ;
7837 extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
7838 int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ;
7843 extern char *gcvt (double __value, int __ndigit, char *__buf)
7844 throw () __attribute__ ((__nonnull__ (3))) ;
7849 extern char *qecvt (long double __value, int __ndigit,
7850 int *__restrict __decpt, int *__restrict __sign)
7851 throw () __attribute__ ((__nonnull__ (3, 4))) ;
7852 extern char *qfcvt (long double __value, int __ndigit,
7853 int *__restrict __decpt, int *__restrict __sign)
7854 throw () __attribute__ ((__nonnull__ (3, 4))) ;
7855 extern char *qgcvt (long double __value, int __ndigit, char *__buf)
7856 throw () __attribute__ ((__nonnull__ (3))) ;
7861 extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
7862 int *__restrict __sign, char *__restrict __buf,
7863 size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5)));
7864 extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
7865 int *__restrict __sign, char *__restrict __buf,
7866 size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5)));
7868 extern int qecvt_r (long double __value, int __ndigit,
7869 int *__restrict __decpt, int *__restrict __sign,
7870 char *__restrict __buf, size_t __len)
7871 throw () __attribute__ ((__nonnull__ (3, 4, 5)));
7872 extern int qfcvt_r (long double __value, int __ndigit,
7873 int *__restrict __decpt, int *__restrict __sign,
7874 char *__restrict __buf, size_t __len)
7875 throw () __attribute__ ((__nonnull__ (3, 4, 5)));
7883 extern int mblen (__const char *__s, size_t __n) throw () ;
7886 extern int mbtowc (wchar_t *__restrict __pwc,
7887 __const char *__restrict __s, size_t __n) throw () ;
7890 extern int wctomb (char *__s, wchar_t __wchar) throw () ;
7894 extern size_t mbstowcs (wchar_t *__restrict __pwcs,
7895 __const char *__restrict __s, size_t __n) throw ();
7897 extern size_t wcstombs (char *__restrict __s,
7898 __const wchar_t *__restrict __pwcs, size_t __n)
7908 extern int rpmatch (__const char *__response) throw () __attribute__ ((__nonnull__ (1))) ;
7909 # 910 "/usr/include/stdlib.h" 3 4
7910 extern int getsubopt (char **__restrict __optionp,
7911 char *__const *__restrict __tokens,
7912 char **__restrict __valuep)
7913 throw () __attribute__ ((__nonnull__ (1, 2, 3))) ;
7919 extern void setkey (__const char *__key) throw () __attribute__ ((__nonnull__ (1)));
7927 extern int posix_openpt (int __oflag) ;
7935 extern int grantpt (int __fd) throw ();
7939 extern int unlockpt (int __fd) throw ();
7944 extern char *ptsname (int __fd) throw () ;
7951 extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
7952 throw () __attribute__ ((__nonnull__ (2)));
7955 extern int getpt (void);
7962 extern int getloadavg (double __loadavg[], int __nelem)
7963 throw () __attribute__ ((__nonnull__ (1)));
7964 # 972 "/usr/include/stdlib.h" 3 4
7965 # 1 "/usr/include/bits/stdlib-ldbl.h" 1 3 4
7966 # 25 "/usr/include/bits/stdlib-ldbl.h" 3 4
7968 extern __typeof (strtold) strtold __asm ("" "strtod");
7973 extern __typeof (strtold_l) strtold_l __asm ("" "strtod_l");
7976 extern __typeof (__strtold_internal) __strtold_internal __asm ("" "__strtod_internal");
7980 extern __typeof (qecvt) qecvt __asm ("" "ecvt");
7981 extern __typeof (qfcvt) qfcvt __asm ("" "fcvt");
7982 extern __typeof (qgcvt) qgcvt __asm ("" "gcvt");
7983 extern __typeof (qecvt_r) qecvt_r __asm ("" "ecvt_r");
7984 extern __typeof (qfcvt_r) qfcvt_r __asm ("" "fcvt_r");
7985 # 973 "/usr/include/stdlib.h" 2 3 4
7992 # 73 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdlib" 2 3
7993 # 104 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdlib" 3
8033 abs(long __i) { return labs(__i); }
8036 div(long __i, long __j) { return ldiv(__i, __j); }
8038 # 160 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdlib" 3
8052 abs(long long __x) { return __x >= 0 ? __x : -__x; }
8058 div(long long __n, long long __d)
8059 { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; }
8062 # 193 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cstdlib" 3
8074 using ::__gnu_cxx::lldiv_t;
8076 using ::__gnu_cxx::_Exit;
8077 using ::__gnu_cxx::abs;
8079 using ::__gnu_cxx::llabs;
8080 using ::__gnu_cxx::div;
8081 using ::__gnu_cxx::lldiv;
8083 using ::__gnu_cxx::atoll;
8084 using ::__gnu_cxx::strtof;
8085 using ::__gnu_cxx::strtoll;
8086 using ::__gnu_cxx::strtoull;
8087 using ::__gnu_cxx::strtold;
8094 #pragma GCC visibility pop
8095 # 68 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 2 3
8098 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_pair.h" 1 3
8099 # 64 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_pair.h" 3
8103 template<class _T1, class _T2>
8106 typedef _T1 first_type;
8107 typedef _T2 second_type;
8117 : first(), second() { }
8120 pair(const _T1& __a, const _T2& __b)
8121 : first(__a), second(__b) { }
8124 template<class _U1, class _U2>
8125 pair(const pair<_U1, _U2>& __p)
8126 : first(__p.first), second(__p.second) { }
8130 template<class _T1, class _T2>
8132 operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
8133 { return __x.first == __y.first && __x.second == __y.second; }
8136 template<class _T1, class _T2>
8138 operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
8139 { return __x.first < __y.first
8140 || (!(__y.first < __x.first) && __x.second < __y.second); }
8143 template<class _T1, class _T2>
8145 operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
8146 { return !(__x == __y); }
8149 template<class _T1, class _T2>
8151 operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
8152 { return __y < __x; }
8155 template<class _T1, class _T2>
8157 operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
8158 { return !(__y < __x); }
8161 template<class _T1, class _T2>
8163 operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
8164 { return !(__x < __y); }
8165 # 142 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_pair.h" 3
8166 template<class _T1, class _T2>
8167 inline pair<_T1, _T2>
8168 make_pair(_T1 __x, _T2 __y)
8169 { return pair<_T1, _T2>(__x, __y); }
8171 # 71 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 2 3
8172 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/cpp_type_traits.h" 1 3
8173 # 41 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/cpp_type_traits.h" 3
8175 # 42 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/cpp_type_traits.h" 3
8176 # 75 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/cpp_type_traits.h" 3
8177 namespace __gnu_internal
8180 typedef char __two[2];
8182 template<typename _Tp>
8183 __one __test_type(int _Tp::*);
8184 template<typename _Tp>
8185 __two& __test_type(...);
8191 template<typename _Iterator, typename _Container>
8192 class __normal_iterator;
8195 struct __true_type { };
8196 struct __false_type { };
8202 { typedef __false_type __type; };
8205 struct __truth_type<true>
8206 { typedef __true_type __type; };
8210 template<class _Sp, class _Tp>
8213 enum { __value = bool(_Sp::__value) || bool(_Tp::__value) };
8214 typedef typename __truth_type<__value>::__type __type;
8218 template<typename, typename>
8221 enum { __value = 0 };
8222 typedef __false_type __type;
8225 template<typename _Tp>
8226 struct __are_same<_Tp, _Tp>
8228 enum { __value = 1 };
8229 typedef __true_type __type;
8233 template<typename, bool>
8238 template<typename _Tp>
8239 struct __enable_if<_Tp, true>
8245 template<typename _Tp>
8248 enum { __value = 0 };
8249 typedef __false_type __type;
8253 struct __is_void<void>
8255 enum { __value = 1 };
8256 typedef __true_type __type;
8262 template<typename _Tp>
8265 enum { __value = 0 };
8266 typedef __false_type __type;
8273 struct __is_integer<bool>
8275 enum { __value = 1 };
8276 typedef __true_type __type;
8280 struct __is_integer<char>
8282 enum { __value = 1 };
8283 typedef __true_type __type;
8287 struct __is_integer<signed char>
8289 enum { __value = 1 };
8290 typedef __true_type __type;
8294 struct __is_integer<unsigned char>
8296 enum { __value = 1 };
8297 typedef __true_type __type;
8302 struct __is_integer<wchar_t>
8304 enum { __value = 1 };
8305 typedef __true_type __type;
8310 struct __is_integer<short>
8312 enum { __value = 1 };
8313 typedef __true_type __type;
8317 struct __is_integer<unsigned short>
8319 enum { __value = 1 };
8320 typedef __true_type __type;
8324 struct __is_integer<int>
8326 enum { __value = 1 };
8327 typedef __true_type __type;
8331 struct __is_integer<unsigned int>
8333 enum { __value = 1 };
8334 typedef __true_type __type;
8338 struct __is_integer<long>
8340 enum { __value = 1 };
8341 typedef __true_type __type;
8345 struct __is_integer<unsigned long>
8347 enum { __value = 1 };
8348 typedef __true_type __type;
8352 struct __is_integer<long long>
8354 enum { __value = 1 };
8355 typedef __true_type __type;
8359 struct __is_integer<unsigned long long>
8361 enum { __value = 1 };
8362 typedef __true_type __type;
8368 template<typename _Tp>
8369 struct __is_floating
8371 enum { __value = 0 };
8372 typedef __false_type __type;
8377 struct __is_floating<float>
8379 enum { __value = 1 };
8380 typedef __true_type __type;
8384 struct __is_floating<double>
8386 enum { __value = 1 };
8387 typedef __true_type __type;
8391 struct __is_floating<long double>
8393 enum { __value = 1 };
8394 typedef __true_type __type;
8400 template<typename _Tp>
8403 enum { __value = 0 };
8404 typedef __false_type __type;
8407 template<typename _Tp>
8408 struct __is_pointer<_Tp*>
8410 enum { __value = 1 };
8411 typedef __true_type __type;
8417 template<typename _Tp>
8418 struct __is_normal_iterator
8420 enum { __value = 0 };
8421 typedef __false_type __type;
8424 template<typename _Iterator, typename _Container>
8425 struct __is_normal_iterator< __gnu_cxx::__normal_iterator<_Iterator,
8428 enum { __value = 1 };
8429 typedef __true_type __type;
8435 template<typename _Tp>
8436 struct __is_arithmetic
8437 : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> >
8443 template<typename _Tp>
8444 struct __is_fundamental
8445 : public __traitor<__is_void<_Tp>, __is_arithmetic<_Tp> >
8451 template<typename _Tp>
8453 : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> >
8459 template<typename _Tp>
8464 __value = (sizeof(__gnu_internal::__test_type<_Tp>(0))
8465 != sizeof(__gnu_internal::__one))
8472 template<typename _Tp>
8478 template<typename _Up>
8485 __value = sizeof(__first<_Tp>) == sizeof(__second<_Tp>)
8490 # 72 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 2 3
8491 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator_base_types.h" 1 3
8492 # 67 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator_base_types.h" 3
8494 # 68 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator_base_types.h" 3
8498 # 80 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator_base_types.h" 3
8499 struct input_iterator_tag {};
8501 struct output_iterator_tag {};
8503 struct forward_iterator_tag : public input_iterator_tag {};
8506 struct bidirectional_iterator_tag : public forward_iterator_tag {};
8509 struct random_access_iterator_tag : public bidirectional_iterator_tag {};
8510 # 104 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator_base_types.h" 3
8511 template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
8512 typename _Pointer = _Tp*, typename _Reference = _Tp&>
8516 typedef _Category iterator_category;
8518 typedef _Tp value_type;
8520 typedef _Distance difference_type;
8522 typedef _Pointer pointer;
8524 typedef _Reference reference;
8533 template<typename _Iterator>
8534 struct iterator_traits
8536 typedef typename _Iterator::iterator_category iterator_category;
8537 typedef typename _Iterator::value_type value_type;
8538 typedef typename _Iterator::difference_type difference_type;
8539 typedef typename _Iterator::pointer pointer;
8540 typedef typename _Iterator::reference reference;
8543 template<typename _Tp>
8544 struct iterator_traits<_Tp*>
8546 typedef random_access_iterator_tag iterator_category;
8547 typedef _Tp value_type;
8548 typedef ptrdiff_t difference_type;
8549 typedef _Tp* pointer;
8550 typedef _Tp& reference;
8553 template<typename _Tp>
8554 struct iterator_traits<const _Tp*>
8556 typedef random_access_iterator_tag iterator_category;
8557 typedef _Tp value_type;
8558 typedef ptrdiff_t difference_type;
8559 typedef const _Tp* pointer;
8560 typedef const _Tp& reference;
8569 template<typename _Iter>
8570 inline typename iterator_traits<_Iter>::iterator_category
8571 __iterator_category(const _Iter&)
8572 { return typename iterator_traits<_Iter>::iterator_category(); }
8575 # 73 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 2 3
8576 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator_base_funcs.h" 1 3
8577 # 67 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator_base_funcs.h" 3
8579 # 68 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator_base_funcs.h" 3
8580 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/concept_check.h" 1 3
8581 # 38 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/concept_check.h" 3
8583 # 39 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/concept_check.h" 3
8584 # 69 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator_base_funcs.h" 2 3
8588 template<typename _InputIterator>
8589 inline typename iterator_traits<_InputIterator>::difference_type
8590 __distance(_InputIterator __first, _InputIterator __last,
8596 typename iterator_traits<_InputIterator>::difference_type __n = 0;
8597 while (__first != __last)
8605 template<typename _RandomAccessIterator>
8606 inline typename iterator_traits<_RandomAccessIterator>::difference_type
8607 __distance(_RandomAccessIterator __first, _RandomAccessIterator __last,
8608 random_access_iterator_tag)
8613 return __last - __first;
8615 # 112 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator_base_funcs.h" 3
8616 template<typename _InputIterator>
8617 inline typename iterator_traits<_InputIterator>::difference_type
8618 distance(_InputIterator __first, _InputIterator __last)
8621 return std::__distance(__first, __last,
8622 std::__iterator_category(__first));
8625 template<typename _InputIterator, typename _Distance>
8627 __advance(_InputIterator& __i, _Distance __n, input_iterator_tag)
8635 template<typename _BidirectionalIterator, typename _Distance>
8637 __advance(_BidirectionalIterator& __i, _Distance __n,
8638 bidirectional_iterator_tag)
8651 template<typename _RandomAccessIterator, typename _Distance>
8653 __advance(_RandomAccessIterator& __i, _Distance __n,
8654 random_access_iterator_tag)
8661 # 170 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator_base_funcs.h" 3
8662 template<typename _InputIterator, typename _Distance>
8664 advance(_InputIterator& __i, _Distance __n)
8667 std::__advance(__i, __n, std::__iterator_category(__i));
8670 # 74 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 2 3
8671 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator.h" 1 3
8672 # 70 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator.h" 3
8675 # 91 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator.h" 3
8676 template<typename _Iterator>
8677 class reverse_iterator
8678 : public iterator<typename iterator_traits<_Iterator>::iterator_category,
8679 typename iterator_traits<_Iterator>::value_type,
8680 typename iterator_traits<_Iterator>::difference_type,
8681 typename iterator_traits<_Iterator>::pointer,
8682 typename iterator_traits<_Iterator>::reference>
8688 typedef _Iterator iterator_type;
8689 typedef typename iterator_traits<_Iterator>::difference_type
8691 typedef typename iterator_traits<_Iterator>::reference reference;
8692 typedef typename iterator_traits<_Iterator>::pointer pointer;
8701 reverse_iterator() : current() { }
8707 reverse_iterator(iterator_type __x) : current(__x) { }
8712 reverse_iterator(const reverse_iterator& __x)
8713 : current(__x.current) { }
8719 template<typename _Iter>
8720 reverse_iterator(const reverse_iterator<_Iter>& __x)
8721 : current(__x.base()) { }
8738 _Iterator __tmp = current;
8749 { return &(operator*()); }
8771 reverse_iterator __tmp = *this;
8796 reverse_iterator __tmp = *this;
8807 operator+(difference_type __n) const
8808 { return reverse_iterator(current - __n); }
8816 operator+=(difference_type __n)
8828 operator-(difference_type __n) const
8829 { return reverse_iterator(current + __n); }
8837 operator-=(difference_type __n)
8849 operator[](difference_type __n) const
8850 { return *(*this + __n); }
8852 # 278 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator.h" 3
8853 template<typename _Iterator>
8855 operator==(const reverse_iterator<_Iterator>& __x,
8856 const reverse_iterator<_Iterator>& __y)
8857 { return __x.base() == __y.base(); }
8859 template<typename _Iterator>
8861 operator<(const reverse_iterator<_Iterator>& __x,
8862 const reverse_iterator<_Iterator>& __y)
8863 { return __y.base() < __x.base(); }
8865 template<typename _Iterator>
8867 operator!=(const reverse_iterator<_Iterator>& __x,
8868 const reverse_iterator<_Iterator>& __y)
8869 { return !(__x == __y); }
8871 template<typename _Iterator>
8873 operator>(const reverse_iterator<_Iterator>& __x,
8874 const reverse_iterator<_Iterator>& __y)
8875 { return __y < __x; }
8877 template<typename _Iterator>
8879 operator<=(const reverse_iterator<_Iterator>& __x,
8880 const reverse_iterator<_Iterator>& __y)
8881 { return !(__y < __x); }
8883 template<typename _Iterator>
8885 operator>=(const reverse_iterator<_Iterator>& __x,
8886 const reverse_iterator<_Iterator>& __y)
8887 { return !(__x < __y); }
8889 template<typename _Iterator>
8890 inline typename reverse_iterator<_Iterator>::difference_type
8891 operator-(const reverse_iterator<_Iterator>& __x,
8892 const reverse_iterator<_Iterator>& __y)
8893 { return __y.base() - __x.base(); }
8895 template<typename _Iterator>
8896 inline reverse_iterator<_Iterator>
8897 operator+(typename reverse_iterator<_Iterator>::difference_type __n,
8898 const reverse_iterator<_Iterator>& __x)
8899 { return reverse_iterator<_Iterator>(__x.base() - __n); }
8903 template<typename _IteratorL, typename _IteratorR>
8905 operator==(const reverse_iterator<_IteratorL>& __x,
8906 const reverse_iterator<_IteratorR>& __y)
8907 { return __x.base() == __y.base(); }
8909 template<typename _IteratorL, typename _IteratorR>
8911 operator<(const reverse_iterator<_IteratorL>& __x,
8912 const reverse_iterator<_IteratorR>& __y)
8913 { return __y.base() < __x.base(); }
8915 template<typename _IteratorL, typename _IteratorR>
8917 operator!=(const reverse_iterator<_IteratorL>& __x,
8918 const reverse_iterator<_IteratorR>& __y)
8919 { return !(__x == __y); }
8921 template<typename _IteratorL, typename _IteratorR>
8923 operator>(const reverse_iterator<_IteratorL>& __x,
8924 const reverse_iterator<_IteratorR>& __y)
8925 { return __y < __x; }
8927 template<typename _IteratorL, typename _IteratorR>
8929 operator<=(const reverse_iterator<_IteratorL>& __x,
8930 const reverse_iterator<_IteratorR>& __y)
8931 { return !(__y < __x); }
8933 template<typename _IteratorL, typename _IteratorR>
8935 operator>=(const reverse_iterator<_IteratorL>& __x,
8936 const reverse_iterator<_IteratorR>& __y)
8937 { return !(__x < __y); }
8939 template<typename _IteratorL, typename _IteratorR>
8940 inline typename reverse_iterator<_IteratorL>::difference_type
8941 operator-(const reverse_iterator<_IteratorL>& __x,
8942 const reverse_iterator<_IteratorR>& __y)
8943 { return __y.base() - __x.base(); }
8944 # 382 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator.h" 3
8945 template<typename _Container>
8946 class back_insert_iterator
8947 : public iterator<output_iterator_tag, void, void, void, void>
8950 _Container* container;
8954 typedef _Container container_type;
8958 back_insert_iterator(_Container& __x) : container(&__x) { }
8959 # 408 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator.h" 3
8960 back_insert_iterator&
8961 operator=(typename _Container::const_reference __value)
8963 container->push_back(__value);
8968 back_insert_iterator&
8973 back_insert_iterator&
8978 back_insert_iterator
8982 # 442 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator.h" 3
8983 template<typename _Container>
8984 inline back_insert_iterator<_Container>
8985 back_inserter(_Container& __x)
8986 { return back_insert_iterator<_Container>(__x); }
8987 # 457 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator.h" 3
8988 template<typename _Container>
8989 class front_insert_iterator
8990 : public iterator<output_iterator_tag, void, void, void, void>
8993 _Container* container;
8997 typedef _Container container_type;
9000 explicit front_insert_iterator(_Container& __x) : container(&__x) { }
9001 # 482 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator.h" 3
9002 front_insert_iterator&
9003 operator=(typename _Container::const_reference __value)
9005 container->push_front(__value);
9010 front_insert_iterator&
9015 front_insert_iterator&
9020 front_insert_iterator
9024 # 516 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator.h" 3
9025 template<typename _Container>
9026 inline front_insert_iterator<_Container>
9027 front_inserter(_Container& __x)
9028 { return front_insert_iterator<_Container>(__x); }
9029 # 535 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator.h" 3
9030 template<typename _Container>
9031 class insert_iterator
9032 : public iterator<output_iterator_tag, void, void, void, void>
9035 _Container* container;
9036 typename _Container::iterator iter;
9040 typedef _Container container_type;
9046 insert_iterator(_Container& __x, typename _Container::iterator __i)
9047 : container(&__x), iter(__i) {}
9048 # 577 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator.h" 3
9050 operator=(const typename _Container::const_reference __value)
9052 iter = container->insert(iter, __value);
9072 # 612 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator.h" 3
9073 template<typename _Container, typename _Iterator>
9074 inline insert_iterator<_Container>
9075 inserter(_Container& __x, _Iterator __i)
9077 return insert_iterator<_Container>(__x,
9078 typename _Container::iterator(__i));
9091 using std::iterator_traits;
9092 using std::iterator;
9093 template<typename _Iterator, typename _Container>
9094 class __normal_iterator
9097 _Iterator _M_current;
9100 typedef typename iterator_traits<_Iterator>::iterator_category
9102 typedef typename iterator_traits<_Iterator>::value_type value_type;
9103 typedef typename iterator_traits<_Iterator>::difference_type
9105 typedef typename iterator_traits<_Iterator>::reference reference;
9106 typedef typename iterator_traits<_Iterator>::pointer pointer;
9108 __normal_iterator() : _M_current(_Iterator()) { }
9111 __normal_iterator(const _Iterator& __i) : _M_current(__i) { }
9114 template<typename _Iter>
9115 __normal_iterator(const __normal_iterator<_Iter,
9116 typename std::__enable_if<_Container,
9117 (std::__are_same<_Iter,
9118 typename _Container::pointer>::__value)
9120 : _M_current(__i.base()) { }
9125 { return *_M_current; }
9129 { return _M_current; }
9140 { return __normal_iterator(_M_current++); }
9152 { return __normal_iterator(_M_current--); }
9156 operator[](const difference_type& __n) const
9157 { return _M_current[__n]; }
9160 operator+=(const difference_type& __n)
9161 { _M_current += __n; return *this; }
9164 operator+(const difference_type& __n) const
9165 { return __normal_iterator(_M_current + __n); }
9168 operator-=(const difference_type& __n)
9169 { _M_current -= __n; return *this; }
9172 operator-(const difference_type& __n) const
9173 { return __normal_iterator(_M_current - __n); }
9177 { return _M_current; }
9179 # 728 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_iterator.h" 3
9180 template<typename _IteratorL, typename _IteratorR, typename _Container>
9182 operator==(const __normal_iterator<_IteratorL, _Container>& __lhs,
9183 const __normal_iterator<_IteratorR, _Container>& __rhs)
9184 { return __lhs.base() == __rhs.base(); }
9186 template<typename _Iterator, typename _Container>
9188 operator==(const __normal_iterator<_Iterator, _Container>& __lhs,
9189 const __normal_iterator<_Iterator, _Container>& __rhs)
9190 { return __lhs.base() == __rhs.base(); }
9192 template<typename _IteratorL, typename _IteratorR, typename _Container>
9194 operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs,
9195 const __normal_iterator<_IteratorR, _Container>& __rhs)
9196 { return __lhs.base() != __rhs.base(); }
9198 template<typename _Iterator, typename _Container>
9200 operator!=(const __normal_iterator<_Iterator, _Container>& __lhs,
9201 const __normal_iterator<_Iterator, _Container>& __rhs)
9202 { return __lhs.base() != __rhs.base(); }
9205 template<typename _IteratorL, typename _IteratorR, typename _Container>
9207 operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,
9208 const __normal_iterator<_IteratorR, _Container>& __rhs)
9209 { return __lhs.base() < __rhs.base(); }
9211 template<typename _Iterator, typename _Container>
9213 operator<(const __normal_iterator<_Iterator, _Container>& __lhs,
9214 const __normal_iterator<_Iterator, _Container>& __rhs)
9215 { return __lhs.base() < __rhs.base(); }
9217 template<typename _IteratorL, typename _IteratorR, typename _Container>
9219 operator>(const __normal_iterator<_IteratorL, _Container>& __lhs,
9220 const __normal_iterator<_IteratorR, _Container>& __rhs)
9221 { return __lhs.base() > __rhs.base(); }
9223 template<typename _Iterator, typename _Container>
9225 operator>(const __normal_iterator<_Iterator, _Container>& __lhs,
9226 const __normal_iterator<_Iterator, _Container>& __rhs)
9227 { return __lhs.base() > __rhs.base(); }
9229 template<typename _IteratorL, typename _IteratorR, typename _Container>
9231 operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs,
9232 const __normal_iterator<_IteratorR, _Container>& __rhs)
9233 { return __lhs.base() <= __rhs.base(); }
9235 template<typename _Iterator, typename _Container>
9237 operator<=(const __normal_iterator<_Iterator, _Container>& __lhs,
9238 const __normal_iterator<_Iterator, _Container>& __rhs)
9239 { return __lhs.base() <= __rhs.base(); }
9241 template<typename _IteratorL, typename _IteratorR, typename _Container>
9243 operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs,
9244 const __normal_iterator<_IteratorR, _Container>& __rhs)
9245 { return __lhs.base() >= __rhs.base(); }
9247 template<typename _Iterator, typename _Container>
9249 operator>=(const __normal_iterator<_Iterator, _Container>& __lhs,
9250 const __normal_iterator<_Iterator, _Container>& __rhs)
9251 { return __lhs.base() >= __rhs.base(); }
9257 template<typename _IteratorL, typename _IteratorR, typename _Container>
9258 inline typename __normal_iterator<_IteratorL, _Container>::difference_type
9259 operator-(const __normal_iterator<_IteratorL, _Container>& __lhs,
9260 const __normal_iterator<_IteratorR, _Container>& __rhs)
9261 { return __lhs.base() - __rhs.base(); }
9263 template<typename _Iterator, typename _Container>
9264 inline __normal_iterator<_Iterator, _Container>
9265 operator+(typename __normal_iterator<_Iterator, _Container>::difference_type
9266 __n, const __normal_iterator<_Iterator, _Container>& __i)
9267 { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); }
9269 # 75 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 2 3
9271 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/debug/debug.h" 1 3
9272 # 77 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 2 3
9276 # 90 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9277 template<typename _Tp>
9279 swap(_Tp& __a, _Tp& __b)
9292 template<bool _BoolType>
9295 template<typename _ForwardIterator1, typename _ForwardIterator2>
9297 iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b)
9299 typedef typename iterator_traits<_ForwardIterator1>::value_type
9301 _ValueType1 __tmp = *__a;
9308 struct __iter_swap<true>
9310 template<typename _ForwardIterator1, typename _ForwardIterator2>
9312 iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b)
9317 # 140 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9318 template<typename _ForwardIterator1, typename _ForwardIterator2>
9320 iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b)
9322 typedef typename iterator_traits<_ForwardIterator1>::value_type
9324 typedef typename iterator_traits<_ForwardIterator2>::value_type
9337 typedef typename iterator_traits<_ForwardIterator1>::reference
9339 typedef typename iterator_traits<_ForwardIterator2>::reference
9341 std::__iter_swap<__are_same<_ValueType1, _ValueType2>::__value &&
9342 __are_same<_ValueType1 &, _ReferenceType1>::__value &&
9343 __are_same<_ValueType2 &, _ReferenceType2>::__value>::
9344 iter_swap(__a, __b);
9346 # 182 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9347 template<typename _Tp>
9349 min(const _Tp& __a, const _Tp& __b)
9358 # 204 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9359 template<typename _Tp>
9361 max(const _Tp& __a, const _Tp& __b)
9370 # 226 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9371 template<typename _Tp, typename _Compare>
9373 min(const _Tp& __a, const _Tp& __b, _Compare __comp)
9376 if (__comp(__b, __a))
9380 # 246 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9381 template<typename _Tp, typename _Compare>
9383 max(const _Tp& __a, const _Tp& __b, _Compare __comp)
9386 if (__comp(__a, __b))
9397 template<bool, typename>
9400 template<typename _II, typename _OI>
9402 copy(_II __first, _II __last, _OI __result)
9404 for (; __first != __last; ++__result, ++__first)
9405 *__result = *__first;
9410 template<bool _BoolType>
9411 struct __copy<_BoolType, random_access_iterator_tag>
9413 template<typename _II, typename _OI>
9415 copy(_II __first, _II __last, _OI __result)
9417 typedef typename iterator_traits<_II>::difference_type _Distance;
9418 for(_Distance __n = __last - __first; __n > 0; --__n)
9420 *__result = *__first;
9429 struct __copy<true, random_access_iterator_tag>
9431 template<typename _Tp>
9433 copy(const _Tp* __first, const _Tp* __last, _Tp* __result)
9435 std::memmove(__result, __first, sizeof(_Tp) * (__last - __first));
9436 return __result + (__last - __first);
9440 template<typename _II, typename _OI>
9442 __copy_aux(_II __first, _II __last, _OI __result)
9444 typedef typename iterator_traits<_II>::value_type _ValueTypeI;
9445 typedef typename iterator_traits<_OI>::value_type _ValueTypeO;
9446 typedef typename iterator_traits<_II>::iterator_category _Category;
9447 const bool __simple = (__is_scalar<_ValueTypeI>::__value
9448 && __is_pointer<_II>::__value
9449 && __is_pointer<_OI>::__value
9450 && __are_same<_ValueTypeI, _ValueTypeO>::__value);
9452 return std::__copy<__simple, _Category>::copy(__first, __last, __result);
9455 template<bool, bool>
9456 struct __copy_normal
9458 template<typename _II, typename _OI>
9460 copy_n(_II __first, _II __last, _OI __result)
9461 { return std::__copy_aux(__first, __last, __result); }
9465 struct __copy_normal<true, false>
9467 template<typename _II, typename _OI>
9469 copy_n(_II __first, _II __last, _OI __result)
9470 { return std::__copy_aux(__first.base(), __last.base(), __result); }
9474 struct __copy_normal<false, true>
9476 template<typename _II, typename _OI>
9478 copy_n(_II __first, _II __last, _OI __result)
9479 { return _OI(std::__copy_aux(__first, __last, __result.base())); }
9483 struct __copy_normal<true, true>
9485 template<typename _II, typename _OI>
9487 copy_n(_II __first, _II __last, _OI __result)
9488 { return _OI(std::__copy_aux(__first.base(), __last.base(),
9489 __result.base())); }
9491 # 373 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9492 template<typename _InputIterator, typename _OutputIterator>
9493 inline _OutputIterator
9494 copy(_InputIterator __first, _InputIterator __last,
9495 _OutputIterator __result)
9503 const bool __in = __is_normal_iterator<_InputIterator>::__value;
9504 const bool __out = __is_normal_iterator<_OutputIterator>::__value;
9505 return std::__copy_normal<__in, __out>::copy_n(__first, __last,
9509 template<bool, typename>
9510 struct __copy_backward
9512 template<typename _BI1, typename _BI2>
9514 copy_b(_BI1 __first, _BI1 __last, _BI2 __result)
9516 while (__first != __last)
9517 *--__result = *--__last;
9522 template<bool _BoolType>
9523 struct __copy_backward<_BoolType, random_access_iterator_tag>
9525 template<typename _BI1, typename _BI2>
9527 copy_b(_BI1 __first, _BI1 __last, _BI2 __result)
9529 typename iterator_traits<_BI1>::difference_type __n;
9530 for (__n = __last - __first; __n > 0; --__n)
9531 *--__result = *--__last;
9537 struct __copy_backward<true, random_access_iterator_tag>
9539 template<typename _Tp>
9541 copy_b(const _Tp* __first, const _Tp* __last, _Tp* __result)
9543 const ptrdiff_t _Num = __last - __first;
9544 std::memmove(__result - _Num, __first, sizeof(_Tp) * _Num);
9545 return __result - _Num;
9549 template<typename _BI1, typename _BI2>
9551 __copy_backward_aux(_BI1 __first, _BI1 __last, _BI2 __result)
9553 typedef typename iterator_traits<_BI1>::value_type _ValueType1;
9554 typedef typename iterator_traits<_BI2>::value_type _ValueType2;
9555 typedef typename iterator_traits<_BI1>::iterator_category _Category;
9556 const bool __simple = (__is_scalar<_ValueType1>::__value
9557 && __is_pointer<_BI1>::__value
9558 && __is_pointer<_BI2>::__value
9559 && __are_same<_ValueType1, _ValueType2>::__value);
9561 return std::__copy_backward<__simple, _Category>::copy_b(__first, __last,
9565 template<bool, bool>
9566 struct __copy_backward_normal
9568 template<typename _BI1, typename _BI2>
9570 copy_b_n(_BI1 __first, _BI1 __last, _BI2 __result)
9571 { return std::__copy_backward_aux(__first, __last, __result); }
9575 struct __copy_backward_normal<true, false>
9577 template<typename _BI1, typename _BI2>
9579 copy_b_n(_BI1 __first, _BI1 __last, _BI2 __result)
9580 { return std::__copy_backward_aux(__first.base(), __last.base(),
9585 struct __copy_backward_normal<false, true>
9587 template<typename _BI1, typename _BI2>
9589 copy_b_n(_BI1 __first, _BI1 __last, _BI2 __result)
9590 { return _BI2(std::__copy_backward_aux(__first, __last,
9591 __result.base())); }
9595 struct __copy_backward_normal<true, true>
9597 template<typename _BI1, typename _BI2>
9599 copy_b_n(_BI1 __first, _BI1 __last, _BI2 __result)
9600 { return _BI2(std::__copy_backward_aux(__first.base(), __last.base(),
9601 __result.base())); }
9603 # 502 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9604 template <typename _BI1, typename _BI2>
9606 copy_backward(_BI1 __first, _BI1 __last, _BI2 __result)
9616 const bool __bi1 = __is_normal_iterator<_BI1>::__value;
9617 const bool __bi2 = __is_normal_iterator<_BI2>::__value;
9618 return std::__copy_backward_normal<__bi1, __bi2>::copy_b_n(__first, __last,
9625 template<typename _ForwardIterator, typename _Tp>
9627 fill(_ForwardIterator __first, _ForwardIterator __last,
9630 for (; __first != __last; ++__first)
9638 template<typename _ForwardIterator, typename _Tp>
9640 fill(_ForwardIterator __first, _ForwardIterator __last,
9643 const _Tp __tmp = __value;
9644 for (; __first != __last; ++__first)
9648 # 558 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9649 template<typename _ForwardIterator, typename _Tp>
9651 fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value)
9658 const bool __scalar = __is_scalar<_Tp>::__value;
9659 std::__fill<__scalar>::fill(__first, __last, __value);
9664 fill(unsigned char* __first, unsigned char* __last, const unsigned char& __c)
9667 const unsigned char __tmp = __c;
9668 std::memset(__first, __tmp, __last - __first);
9672 fill(signed char* __first, signed char* __last, const signed char& __c)
9675 const signed char __tmp = __c;
9676 std::memset(__first, static_cast<unsigned char>(__tmp), __last - __first);
9680 fill(char* __first, char* __last, const char& __c)
9683 const char __tmp = __c;
9684 std::memset(__first, static_cast<unsigned char>(__tmp), __last - __first);
9690 template<typename _OutputIterator, typename _Size, typename _Tp>
9691 static _OutputIterator
9692 fill_n(_OutputIterator __first, _Size __n, const _Tp& __value)
9694 for (; __n > 0; --__n, ++__first)
9701 struct __fill_n<true>
9703 template<typename _OutputIterator, typename _Size, typename _Tp>
9704 static _OutputIterator
9705 fill_n(_OutputIterator __first, _Size __n, const _Tp& __value)
9707 const _Tp __tmp = __value;
9708 for (; __n > 0; --__n, ++__first)
9713 # 634 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9714 template<typename _OutputIterator, typename _Size, typename _Tp>
9716 fill_n(_OutputIterator __first, _Size __n, const _Tp& __value)
9721 const bool __scalar = __is_scalar<_Tp>::__value;
9722 return std::__fill_n<__scalar>::fill_n(__first, __n, __value);
9725 template<typename _Size>
9726 inline unsigned char*
9727 fill_n(unsigned char* __first, _Size __n, const unsigned char& __c)
9729 std::fill(__first, __first + __n, __c);
9730 return __first + __n;
9733 template<typename _Size>
9735 fill_n(char* __first, _Size __n, const signed char& __c)
9737 std::fill(__first, __first + __n, __c);
9738 return __first + __n;
9741 template<typename _Size>
9743 fill_n(char* __first, _Size __n, const char& __c)
9745 std::fill(__first, __first + __n, __c);
9746 return __first + __n;
9748 # 681 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9749 template<typename _InputIterator1, typename _InputIterator2>
9750 pair<_InputIterator1, _InputIterator2>
9751 mismatch(_InputIterator1 __first1, _InputIterator1 __last1,
9752 _InputIterator2 __first2)
9762 while (__first1 != __last1 && *__first1 == *__first2)
9767 return pair<_InputIterator1, _InputIterator2>(__first1, __first2);
9769 # 716 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9770 template<typename _InputIterator1, typename _InputIterator2,
9771 typename _BinaryPredicate>
9772 pair<_InputIterator1, _InputIterator2>
9773 mismatch(_InputIterator1 __first1, _InputIterator1 __last1,
9774 _InputIterator2 __first2, _BinaryPredicate __binary_pred)
9781 while (__first1 != __last1 && __binary_pred(*__first1, *__first2))
9786 return pair<_InputIterator1, _InputIterator2>(__first1, __first2);
9788 # 746 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9789 template<typename _InputIterator1, typename _InputIterator2>
9791 equal(_InputIterator1 __first1, _InputIterator1 __last1,
9792 _InputIterator2 __first2)
9802 for (; __first1 != __last1; ++__first1, ++__first2)
9803 if (!(*__first1 == *__first2))
9807 # 778 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9808 template<typename _InputIterator1, typename _InputIterator2,
9809 typename _BinaryPredicate>
9811 equal(_InputIterator1 __first1, _InputIterator1 __last1,
9812 _InputIterator2 __first2,
9813 _BinaryPredicate __binary_pred)
9820 for (; __first1 != __last1; ++__first1, ++__first2)
9821 if (!__binary_pred(*__first1, *__first2))
9825 # 810 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9826 template<typename _InputIterator1, typename _InputIterator2>
9828 lexicographical_compare(_InputIterator1 __first1, _InputIterator1 __last1,
9829 _InputIterator2 __first2, _InputIterator2 __last2)
9843 for (; __first1 != __last1 && __first2 != __last2;
9844 ++__first1, ++__first2)
9846 if (*__first1 < *__first2)
9848 if (*__first2 < *__first1)
9851 return __first1 == __last1 && __first2 != __last2;
9853 # 850 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algobase.h" 3
9854 template<typename _InputIterator1, typename _InputIterator2,
9857 lexicographical_compare(_InputIterator1 __first1, _InputIterator1 __last1,
9858 _InputIterator2 __first2, _InputIterator2 __last2,
9867 for (; __first1 != __last1 && __first2 != __last2;
9868 ++__first1, ++__first2)
9870 if (__comp(*__first1, *__first2))
9872 if (__comp(*__first2, *__first1))
9875 return __first1 == __last1 && __first2 != __last2;
9879 lexicographical_compare(const unsigned char* __first1,
9880 const unsigned char* __last1,
9881 const unsigned char* __first2,
9882 const unsigned char* __last2)
9887 const size_t __len1 = __last1 - __first1;
9888 const size_t __len2 = __last2 - __first2;
9889 const int __result = std::memcmp(__first1, __first2,
9890 std::min(__len1, __len2));
9891 return __result != 0 ? __result < 0 : __len1 < __len2;
9895 lexicographical_compare(const char* __first1, const char* __last1,
9896 const char* __first2, const char* __last2)
9907 return std::lexicographical_compare((const unsigned char*) __first1,
9908 (const unsigned char*) __last1,
9909 (const unsigned char*) __first2,
9910 (const unsigned char*) __last2);
9915 # 47 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/char_traits.h" 2 3
9920 # 61 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/char_traits.h" 3
9921 template <class _CharT>
9924 typedef unsigned long int_type;
9925 typedef std::streampos pos_type;
9926 typedef std::streamoff off_type;
9927 typedef std::mbstate_t state_type;
9929 # 86 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/char_traits.h" 3
9930 template<typename _CharT>
9933 typedef _CharT char_type;
9934 typedef typename _Char_types<_CharT>::int_type int_type;
9935 typedef typename _Char_types<_CharT>::pos_type pos_type;
9936 typedef typename _Char_types<_CharT>::off_type off_type;
9937 typedef typename _Char_types<_CharT>::state_type state_type;
9940 assign(char_type& __c1, const char_type& __c2)
9944 eq(const char_type& __c1, const char_type& __c2)
9945 { return __c1 == __c2; }
9948 lt(const char_type& __c1, const char_type& __c2)
9949 { return __c1 < __c2; }
9952 compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
9955 length(const char_type* __s);
9957 static const char_type*
9958 find(const char_type* __s, std::size_t __n, const char_type& __a);
9961 move(char_type* __s1, const char_type* __s2, std::size_t __n);
9964 copy(char_type* __s1, const char_type* __s2, std::size_t __n);
9967 assign(char_type* __s, std::size_t __n, char_type __a);
9970 to_char_type(const int_type& __c)
9971 { return static_cast<char_type>(__c); }
9974 to_int_type(const char_type& __c)
9975 { return static_cast<int_type>(__c); }
9978 eq_int_type(const int_type& __c1, const int_type& __c2)
9979 { return __c1 == __c2; }
9983 { return static_cast<int_type>((-1)); }
9986 not_eof(const int_type& __c)
9987 { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); }
9990 template<typename _CharT>
9992 char_traits<_CharT>::
9993 compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
9995 for (size_t __i = 0; __i < __n; ++__i)
9996 if (lt(__s1[__i], __s2[__i]))
9998 else if (lt(__s2[__i], __s1[__i]))
10003 template<typename _CharT>
10005 char_traits<_CharT>::
10006 length(const char_type* __p)
10008 std::size_t __i = 0;
10009 while (!eq(__p[__i], char_type()))
10014 template<typename _CharT>
10015 const typename char_traits<_CharT>::char_type*
10016 char_traits<_CharT>::
10017 find(const char_type* __s, std::size_t __n, const char_type& __a)
10019 for (std::size_t __i = 0; __i < __n; ++__i)
10020 if (eq(__s[__i], __a))
10025 template<typename _CharT>
10026 typename char_traits<_CharT>::char_type*
10027 char_traits<_CharT>::
10028 move(char_type* __s1, const char_type* __s2, std::size_t __n)
10030 return static_cast<_CharT*>(std::memmove(__s1, __s2,
10031 __n * sizeof(char_type)));
10034 template<typename _CharT>
10035 typename char_traits<_CharT>::char_type*
10036 char_traits<_CharT>::
10037 copy(char_type* __s1, const char_type* __s2, std::size_t __n)
10039 std::copy(__s2, __s2 + __n, __s1);
10043 template<typename _CharT>
10044 typename char_traits<_CharT>::char_type*
10045 char_traits<_CharT>::
10046 assign(char_type* __s, std::size_t __n, char_type __a)
10048 std::fill_n(__s, __n, __a);
10055 # 224 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/char_traits.h" 3
10056 template<class _CharT>
10057 struct char_traits : public __gnu_cxx::char_traits<_CharT>
10063 struct char_traits<char>
10065 typedef char char_type;
10066 typedef int int_type;
10067 typedef streampos pos_type;
10068 typedef streamoff off_type;
10069 typedef mbstate_t state_type;
10072 assign(char_type& __c1, const char_type& __c2)
10076 eq(const char_type& __c1, const char_type& __c2)
10077 { return __c1 == __c2; }
10080 lt(const char_type& __c1, const char_type& __c2)
10081 { return __c1 < __c2; }
10084 compare(const char_type* __s1, const char_type* __s2, size_t __n)
10085 { return memcmp(__s1, __s2, __n); }
10088 length(const char_type* __s)
10089 { return strlen(__s); }
10091 static const char_type*
10092 find(const char_type* __s, size_t __n, const char_type& __a)
10093 { return static_cast<const char_type*>(memchr(__s, __a, __n)); }
10096 move(char_type* __s1, const char_type* __s2, size_t __n)
10097 { return static_cast<char_type*>(memmove(__s1, __s2, __n)); }
10100 copy(char_type* __s1, const char_type* __s2, size_t __n)
10101 { return static_cast<char_type*>(memcpy(__s1, __s2, __n)); }
10104 assign(char_type* __s, size_t __n, char_type __a)
10105 { return static_cast<char_type*>(memset(__s, __a, __n)); }
10108 to_char_type(const int_type& __c)
10109 { return static_cast<char_type>(__c); }
10114 to_int_type(const char_type& __c)
10115 { return static_cast<int_type>(static_cast<unsigned char>(__c)); }
10118 eq_int_type(const int_type& __c1, const int_type& __c2)
10119 { return __c1 == __c2; }
10122 eof() { return static_cast<int_type>((-1)); }
10125 not_eof(const int_type& __c)
10126 { return (__c == eof()) ? 0 : __c; }
10133 struct char_traits<wchar_t>
10135 typedef wchar_t char_type;
10136 typedef wint_t int_type;
10137 typedef streamoff off_type;
10138 typedef wstreampos pos_type;
10139 typedef mbstate_t state_type;
10142 assign(char_type& __c1, const char_type& __c2)
10146 eq(const char_type& __c1, const char_type& __c2)
10147 { return __c1 == __c2; }
10150 lt(const char_type& __c1, const char_type& __c2)
10151 { return __c1 < __c2; }
10154 compare(const char_type* __s1, const char_type* __s2, size_t __n)
10155 { return wmemcmp(__s1, __s2, __n); }
10158 length(const char_type* __s)
10159 { return wcslen(__s); }
10161 static const char_type*
10162 find(const char_type* __s, size_t __n, const char_type& __a)
10163 { return wmemchr(__s, __a, __n); }
10166 move(char_type* __s1, const char_type* __s2, size_t __n)
10167 { return wmemmove(__s1, __s2, __n); }
10170 copy(char_type* __s1, const char_type* __s2, size_t __n)
10171 { return wmemcpy(__s1, __s2, __n); }
10174 assign(char_type* __s, size_t __n, char_type __a)
10175 { return wmemset(__s, __a, __n); }
10178 to_char_type(const int_type& __c) { return char_type(__c); }
10181 to_int_type(const char_type& __c) { return int_type(__c); }
10184 eq_int_type(const int_type& __c1, const int_type& __c2)
10185 { return __c1 == __c2; }
10188 eof() { return static_cast<int_type>((0xffffffffu)); }
10191 not_eof(const int_type& __c)
10192 { return eq_int_type(__c, eof()) ? 0 : __c; }
10197 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ios" 2 3
10199 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/localefwd.h" 1 3
10200 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/localefwd.h" 3
10202 # 44 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/localefwd.h" 3
10215 template<typename _CharT>
10217 isspace(_CharT, const locale&);
10219 template<typename _CharT>
10221 isprint(_CharT, const locale&);
10223 template<typename _CharT>
10225 iscntrl(_CharT, const locale&);
10227 template<typename _CharT>
10229 isupper(_CharT, const locale&);
10231 template<typename _CharT>
10233 islower(_CharT, const locale&);
10235 template<typename _CharT>
10237 isalpha(_CharT, const locale&);
10239 template<typename _CharT>
10241 isdigit(_CharT, const locale&);
10243 template<typename _CharT>
10245 ispunct(_CharT, const locale&);
10247 template<typename _CharT>
10249 isxdigit(_CharT, const locale&);
10251 template<typename _CharT>
10253 isalnum(_CharT, const locale&);
10255 template<typename _CharT>
10257 isgraph(_CharT, const locale&);
10259 template<typename _CharT>
10261 toupper(_CharT, const locale&);
10263 template<typename _CharT>
10265 tolower(_CharT, const locale&);
10269 template<typename _CharT>
10271 template<> class ctype<char>;
10273 template<> class ctype<wchar_t>;
10275 template<typename _CharT>
10276 class ctype_byname;
10279 class codecvt_base;
10280 class __enc_traits;
10281 template<typename _InternT, typename _ExternT, typename _StateT>
10283 template<> class codecvt<char, char, mbstate_t>;
10285 template<> class codecvt<wchar_t, char, mbstate_t>;
10287 template<typename _InternT, typename _ExternT, typename _StateT>
10288 class codecvt_byname;
10291 template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
10293 template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
10295 template<typename _CharT> class numpunct;
10296 template<typename _CharT> class numpunct_byname;
10299 template<typename _CharT>
10301 template<typename _CharT> class
10306 template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
10308 template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
10309 class time_get_byname;
10310 template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
10312 template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
10313 class time_put_byname;
10317 template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
10319 template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
10321 template<typename _CharT, bool _Intl = false>
10323 template<typename _CharT, bool _Intl = false>
10324 class moneypunct_byname;
10327 class messages_base;
10328 template<typename _CharT>
10330 template<typename _CharT>
10331 class messages_byname;
10333 template<typename _Facet>
10335 has_facet(const locale& __loc) throw();
10337 template<typename _Facet>
10339 use_facet(const locale& __loc);
10341 template<typename _Facet>
10342 inline const _Facet&
10343 __check_facet(const _Facet* __f)
10346 __throw_bad_cast();
10350 # 50 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ios" 2 3
10351 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 1 3
10352 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
10354 # 44 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
10356 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/atomicity.h" 1 3
10357 # 38 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/atomicity.h" 3
10358 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/atomic_word.h" 1 3
10359 # 33 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/atomic_word.h" 3
10360 typedef int _Atomic_word;
10361 # 39 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/atomicity.h" 2 3
10363 namespace __gnu_cxx
10366 __attribute__ ((__unused__))
10367 __exchange_and_add(volatile _Atomic_word* __mem, int __val);
10370 __attribute__ ((__unused__))
10371 __atomic_add(volatile _Atomic_word* __mem, int __val);
10373 # 46 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 2 3
10375 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 1 3
10376 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
10378 # 44 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
10382 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/string" 1 3
10383 # 42 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/string" 3
10385 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/string" 3
10386 #pragma GCC visibility push(default)
10391 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 1 3
10392 # 51 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
10394 # 52 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
10395 #pragma GCC visibility push(default)
10398 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/allocator.h" 1 3
10399 # 52 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/allocator.h" 3
10400 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++allocator.h" 1 3
10401 # 34 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++allocator.h" 3
10402 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ext/new_allocator.h" 1 3
10403 # 37 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ext/new_allocator.h" 3
10404 #pragma GCC visibility push(default)
10406 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/new" 1 3
10407 # 44 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/new" 3
10408 #pragma GCC visibility push(default)
10419 class bad_alloc : public exception
10422 bad_alloc() throw() { }
10425 virtual ~bad_alloc() throw();
10428 struct nothrow_t { };
10429 extern const nothrow_t nothrow;
10432 typedef void (*new_handler)();
10434 new_handler set_new_handler(new_handler) throw();
10436 # 84 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/new" 3
10437 void* operator new(std::size_t) throw (std::bad_alloc);
10438 void* operator new[](std::size_t) throw (std::bad_alloc);
10439 void operator delete(void*) throw();
10440 void operator delete[](void*) throw();
10441 void* operator new(std::size_t, const std::nothrow_t&) throw();
10442 void* operator new[](std::size_t, const std::nothrow_t&) throw();
10443 void operator delete(void*, const std::nothrow_t&) throw();
10444 void operator delete[](void*, const std::nothrow_t&) throw();
10447 inline void* operator new(std::size_t, void* __p) throw() { return __p; }
10448 inline void* operator new[](std::size_t, void* __p) throw() { return __p; }
10451 inline void operator delete (void*, void*) throw() { }
10452 inline void operator delete[](void*, void*) throw() { }
10456 #pragma GCC visibility pop
10457 # 40 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ext/new_allocator.h" 2 3
10460 namespace __gnu_cxx
10469 template<typename _Tp>
10470 class new_allocator
10473 typedef size_t size_type;
10474 typedef ptrdiff_t difference_type;
10475 typedef _Tp* pointer;
10476 typedef const _Tp* const_pointer;
10477 typedef _Tp& reference;
10478 typedef const _Tp& const_reference;
10479 typedef _Tp value_type;
10481 template<typename _Tp1>
10483 { typedef new_allocator<_Tp1> other; };
10485 new_allocator() throw() { }
10487 new_allocator(const new_allocator&) throw() { }
10489 template<typename _Tp1>
10490 new_allocator(const new_allocator<_Tp1>&) throw() { }
10492 ~new_allocator() throw() { }
10495 address(reference __x) const { return &__x; }
10498 address(const_reference __x) const { return &__x; }
10503 allocate(size_type __n, const void* = 0)
10505 if (__builtin_expect(__n > this->max_size(), false))
10506 std::__throw_bad_alloc();
10508 return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp)));
10513 deallocate(pointer __p, size_type)
10514 { ::operator delete(__p); }
10517 max_size() const throw()
10518 { return size_t(-1) / sizeof(_Tp); }
10523 construct(pointer __p, const _Tp& __val)
10524 { ::new(__p) _Tp(__val); }
10527 destroy(pointer __p) { __p->~_Tp(); }
10530 template<typename _Tp>
10532 operator==(const new_allocator<_Tp>&, const new_allocator<_Tp>&)
10535 template<typename _Tp>
10537 operator!=(const new_allocator<_Tp>&, const new_allocator<_Tp>&)
10541 #pragma GCC visibility pop
10542 # 35 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++allocator.h" 2 3
10543 # 53 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/allocator.h" 2 3
10547 template<typename _Tp>
10552 class allocator<void>
10555 typedef size_t size_type;
10556 typedef ptrdiff_t difference_type;
10557 typedef void* pointer;
10558 typedef const void* const_pointer;
10559 typedef void value_type;
10561 template<typename _Tp1>
10563 { typedef allocator<_Tp1> other; };
10572 template<typename _Tp>
10573 class allocator: public __gnu_cxx::new_allocator<_Tp>
10576 typedef size_t size_type;
10577 typedef ptrdiff_t difference_type;
10578 typedef _Tp* pointer;
10579 typedef const _Tp* const_pointer;
10580 typedef _Tp& reference;
10581 typedef const _Tp& const_reference;
10582 typedef _Tp value_type;
10584 template<typename _Tp1>
10586 { typedef allocator<_Tp1> other; };
10588 allocator() throw() { }
10590 allocator(const allocator& __a) throw()
10591 : __gnu_cxx::new_allocator<_Tp>(__a) { }
10593 template<typename _Tp1>
10594 allocator(const allocator<_Tp1>&) throw() { }
10596 ~allocator() throw() { }
10601 template<typename _T1, typename _T2>
10603 operator==(const allocator<_T1>&, const allocator<_T2>&)
10606 template<typename _T1, typename _T2>
10608 operator!=(const allocator<_T1>&, const allocator<_T2>&)
10615 extern template class allocator<char>;
10616 extern template class allocator<wchar_t>;
10622 # 56 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 2 3
10623 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_construct.h" 1 3
10624 # 67 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_construct.h" 3
10633 template<typename _T1, typename _T2>
10635 _Construct(_T1* __p, const _T2& __value)
10639 ::new(static_cast<void*>(__p)) _T1(__value);
10648 template<typename _T1>
10650 _Construct(_T1* __p)
10654 ::new(static_cast<void*>(__p)) _T1();
10662 template<typename _Tp>
10664 _Destroy(_Tp* __pointer)
10665 { __pointer->~_Tp(); }
10666 # 116 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_construct.h" 3
10667 template<typename _ForwardIterator>
10669 __destroy_aux(_ForwardIterator __first, _ForwardIterator __last,
10672 for (; __first != __last; ++__first)
10673 std::_Destroy(&*__first);
10675 # 134 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_construct.h" 3
10676 template<typename _ForwardIterator>
10678 __destroy_aux(_ForwardIterator, _ForwardIterator, __true_type)
10680 # 146 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_construct.h" 3
10681 template<typename _ForwardIterator>
10683 _Destroy(_ForwardIterator __first, _ForwardIterator __last)
10685 typedef typename iterator_traits<_ForwardIterator>::value_type
10687 typedef typename std::__is_scalar<_Value_type>::__type
10688 _Has_trivial_destructor;
10690 std::__destroy_aux(__first, __last, _Has_trivial_destructor());
10692 # 166 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_construct.h" 3
10693 template <typename _Tp> class allocator;
10695 template<typename _ForwardIterator, typename _Allocator>
10697 _Destroy(_ForwardIterator __first, _ForwardIterator __last,
10698 _Allocator __alloc)
10700 for (; __first != __last; ++__first)
10701 __alloc.destroy(&*__first);
10704 template<typename _ForwardIterator, typename _Tp>
10706 _Destroy(_ForwardIterator __first, _ForwardIterator __last,
10709 _Destroy(__first, __last);
10714 # 57 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 2 3
10716 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_uninitialized.h" 1 3
10717 # 66 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_uninitialized.h" 3
10721 template<typename _InputIterator, typename _ForwardIterator>
10722 inline _ForwardIterator
10723 __uninitialized_copy_aux(_InputIterator __first, _InputIterator __last,
10724 _ForwardIterator __result,
10726 { return std::copy(__first, __last, __result); }
10728 template<typename _InputIterator, typename _ForwardIterator>
10729 inline _ForwardIterator
10730 __uninitialized_copy_aux(_InputIterator __first, _InputIterator __last,
10731 _ForwardIterator __result,
10734 _ForwardIterator __cur = __result;
10737 for (; __first != __last; ++__first, ++__cur)
10738 std::_Construct(&*__cur, *__first);
10743 std::_Destroy(__result, __cur);
10747 # 105 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_uninitialized.h" 3
10748 template<typename _InputIterator, typename _ForwardIterator>
10749 inline _ForwardIterator
10750 uninitialized_copy(_InputIterator __first, _InputIterator __last,
10751 _ForwardIterator __result)
10753 typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType;
10754 typedef typename std::__is_scalar<_ValueType>::__type _Is_POD;
10755 return std::__uninitialized_copy_aux(__first, __last, __result,
10760 uninitialized_copy(const char* __first, const char* __last, char* __result)
10762 std::memmove(__result, __first, __last - __first);
10763 return __result + (__last - __first);
10767 uninitialized_copy(const wchar_t* __first, const wchar_t* __last,
10770 std::memmove(__result, __first, sizeof(wchar_t) * (__last - __first));
10771 return __result + (__last - __first);
10776 template<typename _ForwardIterator, typename _Tp>
10778 __uninitialized_fill_aux(_ForwardIterator __first,
10779 _ForwardIterator __last,
10780 const _Tp& __x, __true_type)
10781 { std::fill(__first, __last, __x); }
10783 template<typename _ForwardIterator, typename _Tp>
10785 __uninitialized_fill_aux(_ForwardIterator __first, _ForwardIterator __last,
10786 const _Tp& __x, __false_type)
10788 _ForwardIterator __cur = __first;
10791 for (; __cur != __last; ++__cur)
10792 std::_Construct(&*__cur, __x);
10796 std::_Destroy(__first, __cur);
10800 # 167 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_uninitialized.h" 3
10801 template<typename _ForwardIterator, typename _Tp>
10803 uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last,
10806 typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType;
10807 typedef typename std::__is_scalar<_ValueType>::__type _Is_POD;
10808 std::__uninitialized_fill_aux(__first, __last, __x, _Is_POD());
10813 template<typename _ForwardIterator, typename _Size, typename _Tp>
10815 __uninitialized_fill_n_aux(_ForwardIterator __first, _Size __n,
10816 const _Tp& __x, __true_type)
10817 { std::fill_n(__first, __n, __x); }
10819 template<typename _ForwardIterator, typename _Size, typename _Tp>
10821 __uninitialized_fill_n_aux(_ForwardIterator __first, _Size __n,
10822 const _Tp& __x, __false_type)
10824 _ForwardIterator __cur = __first;
10827 for (; __n > 0; --__n, ++__cur)
10828 std::_Construct(&*__cur, __x);
10832 std::_Destroy(__first, __cur);
10836 # 212 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_uninitialized.h" 3
10837 template<typename _ForwardIterator, typename _Size, typename _Tp>
10839 uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x)
10841 typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType;
10842 typedef typename std::__is_scalar<_ValueType>::__type _Is_POD;
10843 std::__uninitialized_fill_n_aux(__first, __n, __x, _Is_POD());
10852 template<typename _InputIterator, typename _ForwardIterator,
10853 typename _Allocator>
10855 __uninitialized_copy_a(_InputIterator __first, _InputIterator __last,
10856 _ForwardIterator __result,
10857 _Allocator __alloc)
10859 _ForwardIterator __cur = __result;
10862 for (; __first != __last; ++__first, ++__cur)
10863 __alloc.construct(&*__cur, *__first);
10868 std::_Destroy(__result, __cur, __alloc);
10873 template<typename _InputIterator, typename _ForwardIterator, typename _Tp>
10874 inline _ForwardIterator
10875 __uninitialized_copy_a(_InputIterator __first, _InputIterator __last,
10876 _ForwardIterator __result,
10879 return std::uninitialized_copy(__first, __last, __result);
10882 template<typename _ForwardIterator, typename _Tp, typename _Allocator>
10884 __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last,
10885 const _Tp& __x, _Allocator __alloc)
10887 _ForwardIterator __cur = __first;
10890 for (; __cur != __last; ++__cur)
10891 __alloc.construct(&*__cur, __x);
10895 std::_Destroy(__first, __cur, __alloc);
10900 template<typename _ForwardIterator, typename _Tp, typename _Tp2>
10902 __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last,
10903 const _Tp& __x, allocator<_Tp2>)
10905 std::uninitialized_fill(__first, __last, __x);
10908 template<typename _ForwardIterator, typename _Size, typename _Tp,
10909 typename _Allocator>
10911 __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n,
10913 _Allocator __alloc)
10915 _ForwardIterator __cur = __first;
10918 for (; __n > 0; --__n, ++__cur)
10919 __alloc.construct(&*__cur, __x);
10923 std::_Destroy(__first, __cur, __alloc);
10928 template<typename _ForwardIterator, typename _Size, typename _Tp,
10931 __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n,
10935 std::uninitialized_fill_n(__first, __n, __x);
10937 # 323 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_uninitialized.h" 3
10938 template<typename _InputIterator1, typename _InputIterator2,
10939 typename _ForwardIterator, typename _Allocator>
10940 inline _ForwardIterator
10941 __uninitialized_copy_copy(_InputIterator1 __first1,
10942 _InputIterator1 __last1,
10943 _InputIterator2 __first2,
10944 _InputIterator2 __last2,
10945 _ForwardIterator __result,
10946 _Allocator __alloc)
10948 _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1,
10953 return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc);
10957 std::_Destroy(__result, __mid, __alloc);
10965 template<typename _ForwardIterator, typename _Tp, typename _InputIterator,
10966 typename _Allocator>
10967 inline _ForwardIterator
10968 __uninitialized_fill_copy(_ForwardIterator __result, _ForwardIterator __mid,
10969 const _Tp& __x, _InputIterator __first,
10970 _InputIterator __last,
10971 _Allocator __alloc)
10973 std::__uninitialized_fill_a(__result, __mid, __x, __alloc);
10976 return std::__uninitialized_copy_a(__first, __last, __mid, __alloc);
10980 std::_Destroy(__result, __mid, __alloc);
10988 template<typename _InputIterator, typename _ForwardIterator, typename _Tp,
10989 typename _Allocator>
10991 __uninitialized_copy_fill(_InputIterator __first1, _InputIterator __last1,
10992 _ForwardIterator __first2,
10993 _ForwardIterator __last2, const _Tp& __x,
10994 _Allocator __alloc)
10996 _ForwardIterator __mid2 = std::__uninitialized_copy_a(__first1, __last1,
11001 std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc);
11005 std::_Destroy(__first2, __mid2, __alloc);
11011 # 59 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 2 3
11012 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_raw_storage_iter.h" 1 3
11013 # 64 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_raw_storage_iter.h" 3
11020 template <class _ForwardIterator, class _Tp>
11021 class raw_storage_iterator
11022 : public iterator<output_iterator_tag, void, void, void, void>
11025 _ForwardIterator _M_iter;
11029 raw_storage_iterator(_ForwardIterator __x)
11032 raw_storage_iterator&
11033 operator*() { return *this; }
11035 raw_storage_iterator&
11036 operator=(const _Tp& __element)
11038 std::_Construct(&*_M_iter, __element);
11042 raw_storage_iterator<_ForwardIterator, _Tp>&
11049 raw_storage_iterator<_ForwardIterator, _Tp>
11052 raw_storage_iterator<_ForwardIterator, _Tp> __tmp = *this;
11058 # 60 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 2 3
11060 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/limits" 1 3
11061 # 46 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/limits" 3
11063 # 47 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/limits" 3
11064 #pragma GCC visibility push(default)
11065 # 151 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/limits" 3
11073 enum float_round_style
11075 round_indeterminate = -1,
11076 round_toward_zero = 0,
11077 round_to_nearest = 1,
11078 round_toward_infinity = 2,
11079 round_toward_neg_infinity = 3
11088 enum float_denorm_style
11091 denorm_indeterminate = -1,
11097 # 193 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/limits" 3
11098 struct __numeric_limits_base
11102 static const bool is_specialized = false;
11107 static const int digits = 0;
11109 static const int digits10 = 0;
11111 static const bool is_signed = false;
11117 static const bool is_integer = false;
11122 static const bool is_exact = false;
11125 static const int radix = 0;
11129 static const int min_exponent = 0;
11132 static const int min_exponent10 = 0;
11136 static const int max_exponent = 0;
11139 static const int max_exponent10 = 0;
11142 static const bool has_infinity = false;
11145 static const bool has_quiet_NaN = false;
11148 static const bool has_signaling_NaN = false;
11150 static const float_denorm_style has_denorm = denorm_absent;
11153 static const bool has_denorm_loss = false;
11157 static const bool is_iec559 = false;
11161 static const bool is_bounded = false;
11166 static const bool is_modulo = false;
11169 static const bool traps = false;
11171 static const bool tinyness_before = false;
11175 static const float_round_style round_style = round_toward_zero;
11177 # 286 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/limits" 3
11178 template<typename _Tp>
11179 struct numeric_limits : public __numeric_limits_base
11183 static _Tp min() throw() { return static_cast<_Tp>(0); }
11185 static _Tp max() throw() { return static_cast<_Tp>(0); }
11188 static _Tp epsilon() throw() { return static_cast<_Tp>(0); }
11190 static _Tp round_error() throw() { return static_cast<_Tp>(0); }
11192 static _Tp infinity() throw() { return static_cast<_Tp>(0); }
11194 static _Tp quiet_NaN() throw() { return static_cast<_Tp>(0); }
11197 static _Tp signaling_NaN() throw() { return static_cast<_Tp>(0); }
11201 static _Tp denorm_min() throw() { return static_cast<_Tp>(0); }
11209 struct numeric_limits<bool>
11211 static const bool is_specialized = true;
11213 static bool min() throw()
11215 static bool max() throw()
11218 static const int digits = 1;
11219 static const int digits10 = 0;
11220 static const bool is_signed = false;
11221 static const bool is_integer = true;
11222 static const bool is_exact = true;
11223 static const int radix = 2;
11224 static bool epsilon() throw()
11226 static bool round_error() throw()
11229 static const int min_exponent = 0;
11230 static const int min_exponent10 = 0;
11231 static const int max_exponent = 0;
11232 static const int max_exponent10 = 0;
11234 static const bool has_infinity = false;
11235 static const bool has_quiet_NaN = false;
11236 static const bool has_signaling_NaN = false;
11237 static const float_denorm_style has_denorm = denorm_absent;
11238 static const bool has_denorm_loss = false;
11240 static bool infinity() throw()
11242 static bool quiet_NaN() throw()
11244 static bool signaling_NaN() throw()
11246 static bool denorm_min() throw()
11249 static const bool is_iec559 = false;
11250 static const bool is_bounded = true;
11251 static const bool is_modulo = false;
11256 static const bool traps = false;
11257 static const bool tinyness_before = false;
11258 static const float_round_style round_style = round_toward_zero;
11263 struct numeric_limits<char>
11265 static const bool is_specialized = true;
11267 static char min() throw()
11268 { return (((char)(-1) < 0) ? (char)1 << (sizeof(char) * 8 - ((char)(-1) < 0)) : (char)0); }
11269 static char max() throw()
11270 { return (((char)(-1) < 0) ? ((char)1 << (sizeof(char) * 8 - ((char)(-1) < 0))) - 1 : ~(char)0); }
11272 static const int digits = (sizeof(char) * 8 - ((char)(-1) < 0));
11273 static const int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643 / 2136);
11274 static const bool is_signed = ((char)(-1) < 0);
11275 static const bool is_integer = true;
11276 static const bool is_exact = true;
11277 static const int radix = 2;
11278 static char epsilon() throw()
11280 static char round_error() throw()
11283 static const int min_exponent = 0;
11284 static const int min_exponent10 = 0;
11285 static const int max_exponent = 0;
11286 static const int max_exponent10 = 0;
11288 static const bool has_infinity = false;
11289 static const bool has_quiet_NaN = false;
11290 static const bool has_signaling_NaN = false;
11291 static const float_denorm_style has_denorm = denorm_absent;
11292 static const bool has_denorm_loss = false;
11294 static char infinity() throw()
11296 static char quiet_NaN() throw()
11298 static char signaling_NaN() throw()
11300 static char denorm_min() throw()
11301 { return static_cast<char>(0); }
11303 static const bool is_iec559 = false;
11304 static const bool is_bounded = true;
11305 static const bool is_modulo = true;
11307 static const bool traps = false;
11308 static const bool tinyness_before = false;
11309 static const float_round_style round_style = round_toward_zero;
11314 struct numeric_limits<signed char>
11316 static const bool is_specialized = true;
11318 static signed char min() throw()
11319 { return -127 - 1; }
11320 static signed char max() throw()
11323 static const int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0));
11324 static const int digits10 = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643 / 2136);
11325 static const bool is_signed = true;
11326 static const bool is_integer = true;
11327 static const bool is_exact = true;
11328 static const int radix = 2;
11329 static signed char epsilon() throw()
11331 static signed char round_error() throw()
11334 static const int min_exponent = 0;
11335 static const int min_exponent10 = 0;
11336 static const int max_exponent = 0;
11337 static const int max_exponent10 = 0;
11339 static const bool has_infinity = false;
11340 static const bool has_quiet_NaN = false;
11341 static const bool has_signaling_NaN = false;
11342 static const float_denorm_style has_denorm = denorm_absent;
11343 static const bool has_denorm_loss = false;
11345 static signed char infinity() throw()
11346 { return static_cast<signed char>(0); }
11347 static signed char quiet_NaN() throw()
11348 { return static_cast<signed char>(0); }
11349 static signed char signaling_NaN() throw()
11350 { return static_cast<signed char>(0); }
11351 static signed char denorm_min() throw()
11352 { return static_cast<signed char>(0); }
11354 static const bool is_iec559 = false;
11355 static const bool is_bounded = true;
11356 static const bool is_modulo = true;
11358 static const bool traps = false;
11359 static const bool tinyness_before = false;
11360 static const float_round_style round_style = round_toward_zero;
11365 struct numeric_limits<unsigned char>
11367 static const bool is_specialized = true;
11369 static unsigned char min() throw()
11371 static unsigned char max() throw()
11372 { return 127 * 2U + 1; }
11374 static const int digits = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0));
11375 static const int digits10 = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643 / 2136);
11376 static const bool is_signed = false;
11377 static const bool is_integer = true;
11378 static const bool is_exact = true;
11379 static const int radix = 2;
11380 static unsigned char epsilon() throw()
11382 static unsigned char round_error() throw()
11385 static const int min_exponent = 0;
11386 static const int min_exponent10 = 0;
11387 static const int max_exponent = 0;
11388 static const int max_exponent10 = 0;
11390 static const bool has_infinity = false;
11391 static const bool has_quiet_NaN = false;
11392 static const bool has_signaling_NaN = false;
11393 static const float_denorm_style has_denorm = denorm_absent;
11394 static const bool has_denorm_loss = false;
11396 static unsigned char infinity() throw()
11397 { return static_cast<unsigned char>(0); }
11398 static unsigned char quiet_NaN() throw()
11399 { return static_cast<unsigned char>(0); }
11400 static unsigned char signaling_NaN() throw()
11401 { return static_cast<unsigned char>(0); }
11402 static unsigned char denorm_min() throw()
11403 { return static_cast<unsigned char>(0); }
11405 static const bool is_iec559 = false;
11406 static const bool is_bounded = true;
11407 static const bool is_modulo = true;
11409 static const bool traps = false;
11410 static const bool tinyness_before = false;
11411 static const float_round_style round_style = round_toward_zero;
11416 struct numeric_limits<wchar_t>
11418 static const bool is_specialized = true;
11420 static wchar_t min() throw()
11421 { return (((wchar_t)(-1) < 0) ? (wchar_t)1 << (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) : (wchar_t)0); }
11422 static wchar_t max() throw()
11423 { return (((wchar_t)(-1) < 0) ? ((wchar_t)1 << (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0))) - 1 : ~(wchar_t)0); }
11425 static const int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0));
11426 static const int digits10 = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643 / 2136);
11427 static const bool is_signed = ((wchar_t)(-1) < 0);
11428 static const bool is_integer = true;
11429 static const bool is_exact = true;
11430 static const int radix = 2;
11431 static wchar_t epsilon() throw()
11433 static wchar_t round_error() throw()
11436 static const int min_exponent = 0;
11437 static const int min_exponent10 = 0;
11438 static const int max_exponent = 0;
11439 static const int max_exponent10 = 0;
11441 static const bool has_infinity = false;
11442 static const bool has_quiet_NaN = false;
11443 static const bool has_signaling_NaN = false;
11444 static const float_denorm_style has_denorm = denorm_absent;
11445 static const bool has_denorm_loss = false;
11447 static wchar_t infinity() throw()
11448 { return wchar_t(); }
11449 static wchar_t quiet_NaN() throw()
11450 { return wchar_t(); }
11451 static wchar_t signaling_NaN() throw()
11452 { return wchar_t(); }
11453 static wchar_t denorm_min() throw()
11454 { return wchar_t(); }
11456 static const bool is_iec559 = false;
11457 static const bool is_bounded = true;
11458 static const bool is_modulo = true;
11460 static const bool traps = false;
11461 static const bool tinyness_before = false;
11462 static const float_round_style round_style = round_toward_zero;
11467 struct numeric_limits<short>
11469 static const bool is_specialized = true;
11471 static short min() throw()
11472 { return -32767 - 1; }
11473 static short max() throw()
11476 static const int digits = (sizeof(short) * 8 - ((short)(-1) < 0));
11477 static const int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643 / 2136);
11478 static const bool is_signed = true;
11479 static const bool is_integer = true;
11480 static const bool is_exact = true;
11481 static const int radix = 2;
11482 static short epsilon() throw()
11484 static short round_error() throw()
11487 static const int min_exponent = 0;
11488 static const int min_exponent10 = 0;
11489 static const int max_exponent = 0;
11490 static const int max_exponent10 = 0;
11492 static const bool has_infinity = false;
11493 static const bool has_quiet_NaN = false;
11494 static const bool has_signaling_NaN = false;
11495 static const float_denorm_style has_denorm = denorm_absent;
11496 static const bool has_denorm_loss = false;
11498 static short infinity() throw()
11499 { return short(); }
11500 static short quiet_NaN() throw()
11501 { return short(); }
11502 static short signaling_NaN() throw()
11503 { return short(); }
11504 static short denorm_min() throw()
11505 { return short(); }
11507 static const bool is_iec559 = false;
11508 static const bool is_bounded = true;
11509 static const bool is_modulo = true;
11511 static const bool traps = false;
11512 static const bool tinyness_before = false;
11513 static const float_round_style round_style = round_toward_zero;
11518 struct numeric_limits<unsigned short>
11520 static const bool is_specialized = true;
11522 static unsigned short min() throw()
11524 static unsigned short max() throw()
11525 { return 32767 * 2U + 1; }
11527 static const int digits = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0));
11528 static const int digits10 = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643 / 2136);
11529 static const bool is_signed = false;
11530 static const bool is_integer = true;
11531 static const bool is_exact = true;
11532 static const int radix = 2;
11533 static unsigned short epsilon() throw()
11535 static unsigned short round_error() throw()
11538 static const int min_exponent = 0;
11539 static const int min_exponent10 = 0;
11540 static const int max_exponent = 0;
11541 static const int max_exponent10 = 0;
11543 static const bool has_infinity = false;
11544 static const bool has_quiet_NaN = false;
11545 static const bool has_signaling_NaN = false;
11546 static const float_denorm_style has_denorm = denorm_absent;
11547 static const bool has_denorm_loss = false;
11549 static unsigned short infinity() throw()
11550 { return static_cast<unsigned short>(0); }
11551 static unsigned short quiet_NaN() throw()
11552 { return static_cast<unsigned short>(0); }
11553 static unsigned short signaling_NaN() throw()
11554 { return static_cast<unsigned short>(0); }
11555 static unsigned short denorm_min() throw()
11556 { return static_cast<unsigned short>(0); }
11558 static const bool is_iec559 = false;
11559 static const bool is_bounded = true;
11560 static const bool is_modulo = true;
11562 static const bool traps = false;
11563 static const bool tinyness_before = false;
11564 static const float_round_style round_style = round_toward_zero;
11569 struct numeric_limits<int>
11571 static const bool is_specialized = true;
11573 static int min() throw()
11574 { return -2147483647 - 1; }
11575 static int max() throw()
11576 { return 2147483647; }
11578 static const int digits = (sizeof(int) * 8 - ((int)(-1) < 0));
11579 static const int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643 / 2136);
11580 static const bool is_signed = true;
11581 static const bool is_integer = true;
11582 static const bool is_exact = true;
11583 static const int radix = 2;
11584 static int epsilon() throw()
11586 static int round_error() throw()
11589 static const int min_exponent = 0;
11590 static const int min_exponent10 = 0;
11591 static const int max_exponent = 0;
11592 static const int max_exponent10 = 0;
11594 static const bool has_infinity = false;
11595 static const bool has_quiet_NaN = false;
11596 static const bool has_signaling_NaN = false;
11597 static const float_denorm_style has_denorm = denorm_absent;
11598 static const bool has_denorm_loss = false;
11600 static int infinity() throw()
11601 { return static_cast<int>(0); }
11602 static int quiet_NaN() throw()
11603 { return static_cast<int>(0); }
11604 static int signaling_NaN() throw()
11605 { return static_cast<int>(0); }
11606 static int denorm_min() throw()
11607 { return static_cast<int>(0); }
11609 static const bool is_iec559 = false;
11610 static const bool is_bounded = true;
11611 static const bool is_modulo = true;
11613 static const bool traps = false;
11614 static const bool tinyness_before = false;
11615 static const float_round_style round_style = round_toward_zero;
11620 struct numeric_limits<unsigned int>
11622 static const bool is_specialized = true;
11624 static unsigned int min() throw()
11626 static unsigned int max() throw()
11627 { return 2147483647 * 2U + 1; }
11629 static const int digits = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0));
11630 static const int digits10 = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643 / 2136);
11631 static const bool is_signed = false;
11632 static const bool is_integer = true;
11633 static const bool is_exact = true;
11634 static const int radix = 2;
11635 static unsigned int epsilon() throw()
11637 static unsigned int round_error() throw()
11640 static const int min_exponent = 0;
11641 static const int min_exponent10 = 0;
11642 static const int max_exponent = 0;
11643 static const int max_exponent10 = 0;
11645 static const bool has_infinity = false;
11646 static const bool has_quiet_NaN = false;
11647 static const bool has_signaling_NaN = false;
11648 static const float_denorm_style has_denorm = denorm_absent;
11649 static const bool has_denorm_loss = false;
11651 static unsigned int infinity() throw()
11652 { return static_cast<unsigned int>(0); }
11653 static unsigned int quiet_NaN() throw()
11654 { return static_cast<unsigned int>(0); }
11655 static unsigned int signaling_NaN() throw()
11656 { return static_cast<unsigned int>(0); }
11657 static unsigned int denorm_min() throw()
11658 { return static_cast<unsigned int>(0); }
11660 static const bool is_iec559 = false;
11661 static const bool is_bounded = true;
11662 static const bool is_modulo = true;
11664 static const bool traps = false;
11665 static const bool tinyness_before = false;
11666 static const float_round_style round_style = round_toward_zero;
11671 struct numeric_limits<long>
11673 static const bool is_specialized = true;
11675 static long min() throw()
11676 { return -2147483647L - 1; }
11677 static long max() throw()
11678 { return 2147483647L; }
11680 static const int digits = (sizeof(long) * 8 - ((long)(-1) < 0));
11681 static const int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643 / 2136);
11682 static const bool is_signed = true;
11683 static const bool is_integer = true;
11684 static const bool is_exact = true;
11685 static const int radix = 2;
11686 static long epsilon() throw()
11688 static long round_error() throw()
11691 static const int min_exponent = 0;
11692 static const int min_exponent10 = 0;
11693 static const int max_exponent = 0;
11694 static const int max_exponent10 = 0;
11696 static const bool has_infinity = false;
11697 static const bool has_quiet_NaN = false;
11698 static const bool has_signaling_NaN = false;
11699 static const float_denorm_style has_denorm = denorm_absent;
11700 static const bool has_denorm_loss = false;
11702 static long infinity() throw()
11703 { return static_cast<long>(0); }
11704 static long quiet_NaN() throw()
11705 { return static_cast<long>(0); }
11706 static long signaling_NaN() throw()
11707 { return static_cast<long>(0); }
11708 static long denorm_min() throw()
11709 { return static_cast<long>(0); }
11711 static const bool is_iec559 = false;
11712 static const bool is_bounded = true;
11713 static const bool is_modulo = true;
11715 static const bool traps = false;
11716 static const bool tinyness_before = false;
11717 static const float_round_style round_style = round_toward_zero;
11722 struct numeric_limits<unsigned long>
11724 static const bool is_specialized = true;
11726 static unsigned long min() throw()
11728 static unsigned long max() throw()
11729 { return 2147483647L * 2UL + 1; }
11731 static const int digits = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0));
11732 static const int digits10 = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643 / 2136);
11733 static const bool is_signed = false;
11734 static const bool is_integer = true;
11735 static const bool is_exact = true;
11736 static const int radix = 2;
11737 static unsigned long epsilon() throw()
11739 static unsigned long round_error() throw()
11742 static const int min_exponent = 0;
11743 static const int min_exponent10 = 0;
11744 static const int max_exponent = 0;
11745 static const int max_exponent10 = 0;
11747 static const bool has_infinity = false;
11748 static const bool has_quiet_NaN = false;
11749 static const bool has_signaling_NaN = false;
11750 static const float_denorm_style has_denorm = denorm_absent;
11751 static const bool has_denorm_loss = false;
11753 static unsigned long infinity() throw()
11754 { return static_cast<unsigned long>(0); }
11755 static unsigned long quiet_NaN() throw()
11756 { return static_cast<unsigned long>(0); }
11757 static unsigned long signaling_NaN() throw()
11758 { return static_cast<unsigned long>(0); }
11759 static unsigned long denorm_min() throw()
11760 { return static_cast<unsigned long>(0); }
11762 static const bool is_iec559 = false;
11763 static const bool is_bounded = true;
11764 static const bool is_modulo = true;
11766 static const bool traps = false;
11767 static const bool tinyness_before = false;
11768 static const float_round_style round_style = round_toward_zero;
11773 struct numeric_limits<long long>
11775 static const bool is_specialized = true;
11777 static long long min() throw()
11778 { return -9223372036854775807LL - 1; }
11779 static long long max() throw()
11780 { return 9223372036854775807LL; }
11782 static const int digits = (sizeof(long long) * 8 - ((long long)(-1) < 0));
11783 static const int digits10 = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643 / 2136);
11784 static const bool is_signed = true;
11785 static const bool is_integer = true;
11786 static const bool is_exact = true;
11787 static const int radix = 2;
11788 static long long epsilon() throw()
11790 static long long round_error() throw()
11793 static const int min_exponent = 0;
11794 static const int min_exponent10 = 0;
11795 static const int max_exponent = 0;
11796 static const int max_exponent10 = 0;
11798 static const bool has_infinity = false;
11799 static const bool has_quiet_NaN = false;
11800 static const bool has_signaling_NaN = false;
11801 static const float_denorm_style has_denorm = denorm_absent;
11802 static const bool has_denorm_loss = false;
11804 static long long infinity() throw()
11805 { return static_cast<long long>(0); }
11806 static long long quiet_NaN() throw()
11807 { return static_cast<long long>(0); }
11808 static long long signaling_NaN() throw()
11809 { return static_cast<long long>(0); }
11810 static long long denorm_min() throw()
11811 { return static_cast<long long>(0); }
11813 static const bool is_iec559 = false;
11814 static const bool is_bounded = true;
11815 static const bool is_modulo = true;
11817 static const bool traps = false;
11818 static const bool tinyness_before = false;
11819 static const float_round_style round_style = round_toward_zero;
11824 struct numeric_limits<unsigned long long>
11826 static const bool is_specialized = true;
11828 static unsigned long long min() throw()
11830 static unsigned long long max() throw()
11831 { return 9223372036854775807LL * 2ULL + 1; }
11833 static const int digits = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0));
11834 static const int digits10 = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643 / 2136);
11835 static const bool is_signed = false;
11836 static const bool is_integer = true;
11837 static const bool is_exact = true;
11838 static const int radix = 2;
11839 static unsigned long long epsilon() throw()
11841 static unsigned long long round_error() throw()
11844 static const int min_exponent = 0;
11845 static const int min_exponent10 = 0;
11846 static const int max_exponent = 0;
11847 static const int max_exponent10 = 0;
11849 static const bool has_infinity = false;
11850 static const bool has_quiet_NaN = false;
11851 static const bool has_signaling_NaN = false;
11852 static const float_denorm_style has_denorm = denorm_absent;
11853 static const bool has_denorm_loss = false;
11855 static unsigned long long infinity() throw()
11856 { return static_cast<unsigned long long>(0); }
11857 static unsigned long long quiet_NaN() throw()
11858 { return static_cast<unsigned long long>(0); }
11859 static unsigned long long signaling_NaN() throw()
11860 { return static_cast<unsigned long long>(0); }
11861 static unsigned long long denorm_min() throw()
11862 { return static_cast<unsigned long long>(0); }
11864 static const bool is_iec559 = false;
11865 static const bool is_bounded = true;
11866 static const bool is_modulo = true;
11868 static const bool traps = false;
11869 static const bool tinyness_before = false;
11870 static const float_round_style round_style = round_toward_zero;
11875 struct numeric_limits<float>
11877 static const bool is_specialized = true;
11879 static float min() throw()
11880 { return 1.17549435e-38F; }
11881 static float max() throw()
11882 { return 3.40282347e+38F; }
11884 static const int digits = 24;
11885 static const int digits10 = 6;
11886 static const bool is_signed = true;
11887 static const bool is_integer = false;
11888 static const bool is_exact = false;
11889 static const int radix = 2;
11890 static float epsilon() throw()
11891 { return 1.19209290e-7F; }
11892 static float round_error() throw()
11895 static const int min_exponent = (-125);
11896 static const int min_exponent10 = (-37);
11897 static const int max_exponent = 128;
11898 static const int max_exponent10 = 38;
11900 static const bool has_infinity = 1;
11901 static const bool has_quiet_NaN = 1;
11902 static const bool has_signaling_NaN = has_quiet_NaN;
11903 static const float_denorm_style has_denorm
11904 = bool(1.40129846e-45F) ? denorm_present : denorm_absent;
11905 static const bool has_denorm_loss = false;
11907 static float infinity() throw()
11908 { return __builtin_huge_valf (); }
11909 static float quiet_NaN() throw()
11910 { return __builtin_nanf (""); }
11911 static float signaling_NaN() throw()
11912 { return __builtin_nansf (""); }
11913 static float denorm_min() throw()
11914 { return 1.40129846e-45F; }
11916 static const bool is_iec559
11917 = has_infinity && has_quiet_NaN && has_denorm == denorm_present;
11918 static const bool is_bounded = true;
11919 static const bool is_modulo = false;
11921 static const bool traps = false;
11922 static const bool tinyness_before = false;
11923 static const float_round_style round_style = round_to_nearest;
11932 struct numeric_limits<double>
11934 static const bool is_specialized = true;
11936 static double min() throw()
11937 { return 2.2250738585072014e-308; }
11938 static double max() throw()
11939 { return 1.7976931348623157e+308; }
11941 static const int digits = 53;
11942 static const int digits10 = 15;
11943 static const bool is_signed = true;
11944 static const bool is_integer = false;
11945 static const bool is_exact = false;
11946 static const int radix = 2;
11947 static double epsilon() throw()
11948 { return 2.2204460492503131e-16; }
11949 static double round_error() throw()
11952 static const int min_exponent = (-1021);
11953 static const int min_exponent10 = (-307);
11954 static const int max_exponent = 1024;
11955 static const int max_exponent10 = 308;
11957 static const bool has_infinity = 1;
11958 static const bool has_quiet_NaN = 1;
11959 static const bool has_signaling_NaN = has_quiet_NaN;
11960 static const float_denorm_style has_denorm
11961 = bool(4.9406564584124654e-324) ? denorm_present : denorm_absent;
11962 static const bool has_denorm_loss = false;
11964 static double infinity() throw()
11965 { return __builtin_huge_val(); }
11966 static double quiet_NaN() throw()
11967 { return __builtin_nan (""); }
11968 static double signaling_NaN() throw()
11969 { return __builtin_nans (""); }
11970 static double denorm_min() throw()
11971 { return 4.9406564584124654e-324; }
11973 static const bool is_iec559
11974 = has_infinity && has_quiet_NaN && has_denorm == denorm_present;
11975 static const bool is_bounded = true;
11976 static const bool is_modulo = false;
11978 static const bool traps = false;
11979 static const bool tinyness_before = false;
11980 static const float_round_style round_style = round_to_nearest;
11989 struct numeric_limits<long double>
11991 static const bool is_specialized = true;
11993 static long double min() throw()
11994 { return 2.2250738585072014e-308L; }
11995 static long double max() throw()
11996 { return 1.7976931348623157e+308L; }
11998 static const int digits = 53;
11999 static const int digits10 = 15;
12000 static const bool is_signed = true;
12001 static const bool is_integer = false;
12002 static const bool is_exact = false;
12003 static const int radix = 2;
12004 static long double epsilon() throw()
12005 { return 2.2204460492503131e-16L; }
12006 static long double round_error() throw()
12009 static const int min_exponent = (-1021);
12010 static const int min_exponent10 = (-307);
12011 static const int max_exponent = 1024;
12012 static const int max_exponent10 = 308;
12014 static const bool has_infinity = 1;
12015 static const bool has_quiet_NaN = 1;
12016 static const bool has_signaling_NaN = has_quiet_NaN;
12017 static const float_denorm_style has_denorm
12018 = bool(4.9406564584124654e-324L) ? denorm_present : denorm_absent;
12019 static const bool has_denorm_loss
12022 static long double infinity() throw()
12023 { return __builtin_huge_vall (); }
12024 static long double quiet_NaN() throw()
12025 { return __builtin_nanl (""); }
12026 static long double signaling_NaN() throw()
12027 { return __builtin_nansl (""); }
12028 static long double denorm_min() throw()
12029 { return 4.9406564584124654e-324L; }
12031 static const bool is_iec559
12032 = has_infinity && has_quiet_NaN && has_denorm == denorm_present;
12033 static const bool is_bounded = true;
12034 static const bool is_modulo = false;
12036 static const bool traps = false;
12037 static const bool tinyness_before = false;
12038 static const float_round_style round_style = round_to_nearest;
12053 #pragma GCC visibility pop
12054 # 62 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 2 3
12058 # 73 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12059 template<typename _Tp>
12060 pair<_Tp*, ptrdiff_t>
12061 __get_temporary_buffer(ptrdiff_t __len, _Tp*)
12063 const ptrdiff_t __max = numeric_limits<ptrdiff_t>::max() / sizeof(_Tp);
12069 _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp),
12072 return pair<_Tp*, ptrdiff_t>(__tmp, __len);
12075 return pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0);
12077 # 109 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12078 template<typename _Tp>
12079 inline pair<_Tp*, ptrdiff_t>
12080 get_temporary_buffer(ptrdiff_t __len)
12081 { return std::__get_temporary_buffer(__len, static_cast<_Tp*>(0)); }
12082 # 121 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12083 template<typename _Tp>
12085 return_temporary_buffer(_Tp* __p)
12086 { ::operator delete(__p, nothrow); }
12087 # 133 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12088 template<typename _Tp1>
12089 struct auto_ptr_ref
12094 auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { }
12096 # 174 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12097 template<typename _Tp>
12105 typedef _Tp element_type;
12114 auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { }
12115 # 200 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12116 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { }
12117 # 212 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12118 template<typename _Tp1>
12119 auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { }
12120 # 223 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12122 operator=(auto_ptr& __a) throw()
12124 reset(__a.release());
12127 # 240 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12128 template<typename _Tp1>
12130 operator=(auto_ptr<_Tp1>& __a) throw()
12132 reset(__a.release());
12135 # 260 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12136 ~auto_ptr() { delete _M_ptr; }
12137 # 270 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12139 operator*() const throw()
12152 operator->() const throw()
12157 # 300 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12159 get() const throw() { return _M_ptr; }
12160 # 314 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12164 element_type* __tmp = _M_ptr;
12168 # 329 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12170 reset(element_type* __p = 0) throw()
12178 # 350 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/memory" 3
12179 auto_ptr(auto_ptr_ref<element_type> __ref) throw()
12180 : _M_ptr(__ref._M_ptr) { }
12183 operator=(auto_ptr_ref<element_type> __ref) throw()
12185 if (__ref._M_ptr != this->get())
12188 _M_ptr = __ref._M_ptr;
12193 template<typename _Tp1>
12194 operator auto_ptr_ref<_Tp1>() throw()
12195 { return auto_ptr_ref<_Tp1>(this->release()); }
12197 template<typename _Tp1>
12198 operator auto_ptr<_Tp1>() throw()
12199 { return auto_ptr<_Tp1>(this->release()); }
12203 #pragma GCC visibility pop
12204 # 49 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/string" 2 3
12208 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_function.h" 1 3
12209 # 64 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_function.h" 3
12212 # 101 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_function.h" 3
12213 template <class _Arg, class _Result>
12214 struct unary_function
12216 typedef _Arg argument_type;
12219 typedef _Result result_type;
12225 template <class _Arg1, class _Arg2, class _Result>
12226 struct binary_function
12228 typedef _Arg1 first_argument_type;
12231 typedef _Arg2 second_argument_type;
12232 typedef _Result result_type;
12234 # 133 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_function.h" 3
12235 template <class _Tp>
12236 struct plus : public binary_function<_Tp, _Tp, _Tp>
12239 operator()(const _Tp& __x, const _Tp& __y) const
12240 { return __x + __y; }
12244 template <class _Tp>
12245 struct minus : public binary_function<_Tp, _Tp, _Tp>
12248 operator()(const _Tp& __x, const _Tp& __y) const
12249 { return __x - __y; }
12253 template <class _Tp>
12254 struct multiplies : public binary_function<_Tp, _Tp, _Tp>
12257 operator()(const _Tp& __x, const _Tp& __y) const
12258 { return __x * __y; }
12262 template <class _Tp>
12263 struct divides : public binary_function<_Tp, _Tp, _Tp>
12266 operator()(const _Tp& __x, const _Tp& __y) const
12267 { return __x / __y; }
12271 template <class _Tp>
12272 struct modulus : public binary_function<_Tp, _Tp, _Tp>
12275 operator()(const _Tp& __x, const _Tp& __y) const
12276 { return __x % __y; }
12280 template <class _Tp>
12281 struct negate : public unary_function<_Tp, _Tp>
12284 operator()(const _Tp& __x) const
12287 # 195 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_function.h" 3
12288 template <class _Tp>
12289 struct equal_to : public binary_function<_Tp, _Tp, bool>
12292 operator()(const _Tp& __x, const _Tp& __y) const
12293 { return __x == __y; }
12297 template <class _Tp>
12298 struct not_equal_to : public binary_function<_Tp, _Tp, bool>
12301 operator()(const _Tp& __x, const _Tp& __y) const
12302 { return __x != __y; }
12306 template <class _Tp>
12307 struct greater : public binary_function<_Tp, _Tp, bool>
12310 operator()(const _Tp& __x, const _Tp& __y) const
12311 { return __x > __y; }
12315 template <class _Tp>
12316 struct less : public binary_function<_Tp, _Tp, bool>
12319 operator()(const _Tp& __x, const _Tp& __y) const
12320 { return __x < __y; }
12324 template <class _Tp>
12325 struct greater_equal : public binary_function<_Tp, _Tp, bool>
12328 operator()(const _Tp& __x, const _Tp& __y) const
12329 { return __x >= __y; }
12333 template <class _Tp>
12334 struct less_equal : public binary_function<_Tp, _Tp, bool>
12337 operator()(const _Tp& __x, const _Tp& __y) const
12338 { return __x <= __y; }
12340 # 256 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_function.h" 3
12341 template <class _Tp>
12342 struct logical_and : public binary_function<_Tp, _Tp, bool>
12345 operator()(const _Tp& __x, const _Tp& __y) const
12346 { return __x && __y; }
12350 template <class _Tp>
12351 struct logical_or : public binary_function<_Tp, _Tp, bool>
12354 operator()(const _Tp& __x, const _Tp& __y) const
12355 { return __x || __y; }
12359 template <class _Tp>
12360 struct logical_not : public unary_function<_Tp, bool>
12363 operator()(const _Tp& __x) const
12366 # 311 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_function.h" 3
12367 template <class _Predicate>
12369 : public unary_function<typename _Predicate::argument_type, bool>
12372 _Predicate _M_pred;
12375 unary_negate(const _Predicate& __x) : _M_pred(__x) {}
12378 operator()(const typename _Predicate::argument_type& __x) const
12379 { return !_M_pred(__x); }
12383 template <class _Predicate>
12384 inline unary_negate<_Predicate>
12385 not1(const _Predicate& __pred)
12386 { return unary_negate<_Predicate>(__pred); }
12389 template <class _Predicate>
12390 class binary_negate
12391 : public binary_function<typename _Predicate::first_argument_type,
12392 typename _Predicate::second_argument_type,
12396 _Predicate _M_pred;
12399 binary_negate(const _Predicate& __x)
12403 operator()(const typename _Predicate::first_argument_type& __x,
12404 const typename _Predicate::second_argument_type& __y) const
12405 { return !_M_pred(__x, __y); }
12409 template <class _Predicate>
12410 inline binary_negate<_Predicate>
12411 not2(const _Predicate& __pred)
12412 { return binary_negate<_Predicate>(__pred); }
12413 # 391 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_function.h" 3
12414 template <class _Operation>
12416 : public unary_function<typename _Operation::second_argument_type,
12417 typename _Operation::result_type>
12421 typename _Operation::first_argument_type value;
12423 binder1st(const _Operation& __x,
12424 const typename _Operation::first_argument_type& __y)
12425 : op(__x), value(__y) {}
12427 typename _Operation::result_type
12428 operator()(const typename _Operation::second_argument_type& __x) const
12429 { return op(value, __x); }
12433 typename _Operation::result_type
12434 operator()(typename _Operation::second_argument_type& __x) const
12435 { return op(value, __x); }
12439 template <class _Operation, class _Tp>
12440 inline binder1st<_Operation>
12441 bind1st(const _Operation& __fn, const _Tp& __x)
12443 typedef typename _Operation::first_argument_type _Arg1_type;
12444 return binder1st<_Operation>(__fn, _Arg1_type(__x));
12448 template <class _Operation>
12450 : public unary_function<typename _Operation::first_argument_type,
12451 typename _Operation::result_type>
12455 typename _Operation::second_argument_type value;
12457 binder2nd(const _Operation& __x,
12458 const typename _Operation::second_argument_type& __y)
12459 : op(__x), value(__y) {}
12461 typename _Operation::result_type
12462 operator()(const typename _Operation::first_argument_type& __x) const
12463 { return op(__x, value); }
12467 typename _Operation::result_type
12468 operator()(typename _Operation::first_argument_type& __x) const
12469 { return op(__x, value); }
12473 template <class _Operation, class _Tp>
12474 inline binder2nd<_Operation>
12475 bind2nd(const _Operation& __fn, const _Tp& __x)
12477 typedef typename _Operation::second_argument_type _Arg2_type;
12478 return binder2nd<_Operation>(__fn, _Arg2_type(__x));
12480 # 480 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_function.h" 3
12481 template <class _Arg, class _Result>
12482 class pointer_to_unary_function : public unary_function<_Arg, _Result>
12485 _Result (*_M_ptr)(_Arg);
12487 pointer_to_unary_function() {}
12490 pointer_to_unary_function(_Result (*__x)(_Arg))
12494 operator()(_Arg __x) const
12495 { return _M_ptr(__x); }
12499 template <class _Arg, class _Result>
12500 inline pointer_to_unary_function<_Arg, _Result>
12501 ptr_fun(_Result (*__x)(_Arg))
12502 { return pointer_to_unary_function<_Arg, _Result>(__x); }
12505 template <class _Arg1, class _Arg2, class _Result>
12506 class pointer_to_binary_function
12507 : public binary_function<_Arg1, _Arg2, _Result>
12510 _Result (*_M_ptr)(_Arg1, _Arg2);
12512 pointer_to_binary_function() {}
12515 pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2))
12519 operator()(_Arg1 __x, _Arg2 __y) const
12520 { return _M_ptr(__x, __y); }
12524 template <class _Arg1, class _Arg2, class _Result>
12525 inline pointer_to_binary_function<_Arg1, _Arg2, _Result>
12526 ptr_fun(_Result (*__x)(_Arg1, _Arg2))
12527 { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); }
12530 template <class _Tp>
12531 struct _Identity : public unary_function<_Tp,_Tp>
12534 operator()(_Tp& __x) const
12538 operator()(const _Tp& __x) const
12542 template <class _Pair>
12543 struct _Select1st : public unary_function<_Pair,
12544 typename _Pair::first_type>
12546 typename _Pair::first_type&
12547 operator()(_Pair& __x) const
12548 { return __x.first; }
12550 const typename _Pair::first_type&
12551 operator()(const _Pair& __x) const
12552 { return __x.first; }
12555 template <class _Pair>
12556 struct _Select2nd : public unary_function<_Pair,
12557 typename _Pair::second_type>
12559 typename _Pair::second_type&
12560 operator()(_Pair& __x) const
12561 { return __x.second; }
12563 const typename _Pair::second_type&
12564 operator()(const _Pair& __x) const
12565 { return __x.second; }
12567 # 582 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_function.h" 3
12568 template <class _Ret, class _Tp>
12569 class mem_fun_t : public unary_function<_Tp*, _Ret>
12573 mem_fun_t(_Ret (_Tp::*__pf)())
12577 operator()(_Tp* __p) const
12578 { return (__p->*_M_f)(); }
12580 _Ret (_Tp::*_M_f)();
12584 template <class _Ret, class _Tp>
12585 class const_mem_fun_t : public unary_function<const _Tp*, _Ret>
12589 const_mem_fun_t(_Ret (_Tp::*__pf)() const)
12593 operator()(const _Tp* __p) const
12594 { return (__p->*_M_f)(); }
12596 _Ret (_Tp::*_M_f)() const;
12600 template <class _Ret, class _Tp>
12601 class mem_fun_ref_t : public unary_function<_Tp, _Ret>
12605 mem_fun_ref_t(_Ret (_Tp::*__pf)())
12609 operator()(_Tp& __r) const
12610 { return (__r.*_M_f)(); }
12612 _Ret (_Tp::*_M_f)();
12616 template <class _Ret, class _Tp>
12617 class const_mem_fun_ref_t : public unary_function<_Tp, _Ret>
12621 const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const)
12625 operator()(const _Tp& __r) const
12626 { return (__r.*_M_f)(); }
12628 _Ret (_Tp::*_M_f)() const;
12632 template <class _Ret, class _Tp, class _Arg>
12633 class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret>
12637 mem_fun1_t(_Ret (_Tp::*__pf)(_Arg))
12641 operator()(_Tp* __p, _Arg __x) const
12642 { return (__p->*_M_f)(__x); }
12644 _Ret (_Tp::*_M_f)(_Arg);
12648 template <class _Ret, class _Tp, class _Arg>
12649 class const_mem_fun1_t : public binary_function<const _Tp*, _Arg, _Ret>
12653 const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const)
12657 operator()(const _Tp* __p, _Arg __x) const
12658 { return (__p->*_M_f)(__x); }
12660 _Ret (_Tp::*_M_f)(_Arg) const;
12664 template <class _Ret, class _Tp, class _Arg>
12665 class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret>
12669 mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg))
12673 operator()(_Tp& __r, _Arg __x) const
12674 { return (__r.*_M_f)(__x); }
12676 _Ret (_Tp::*_M_f)(_Arg);
12680 template <class _Ret, class _Tp, class _Arg>
12681 class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret>
12685 const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const)
12689 operator()(const _Tp& __r, _Arg __x) const
12690 { return (__r.*_M_f)(__x); }
12692 _Ret (_Tp::*_M_f)(_Arg) const;
12697 template <class _Ret, class _Tp>
12698 inline mem_fun_t<_Ret, _Tp>
12699 mem_fun(_Ret (_Tp::*__f)())
12700 { return mem_fun_t<_Ret, _Tp>(__f); }
12702 template <class _Ret, class _Tp>
12703 inline const_mem_fun_t<_Ret, _Tp>
12704 mem_fun(_Ret (_Tp::*__f)() const)
12705 { return const_mem_fun_t<_Ret, _Tp>(__f); }
12707 template <class _Ret, class _Tp>
12708 inline mem_fun_ref_t<_Ret, _Tp>
12709 mem_fun_ref(_Ret (_Tp::*__f)())
12710 { return mem_fun_ref_t<_Ret, _Tp>(__f); }
12712 template <class _Ret, class _Tp>
12713 inline const_mem_fun_ref_t<_Ret, _Tp>
12714 mem_fun_ref(_Ret (_Tp::*__f)() const)
12715 { return const_mem_fun_ref_t<_Ret, _Tp>(__f); }
12717 template <class _Ret, class _Tp, class _Arg>
12718 inline mem_fun1_t<_Ret, _Tp, _Arg>
12719 mem_fun(_Ret (_Tp::*__f)(_Arg))
12720 { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); }
12722 template <class _Ret, class _Tp, class _Arg>
12723 inline const_mem_fun1_t<_Ret, _Tp, _Arg>
12724 mem_fun(_Ret (_Tp::*__f)(_Arg) const)
12725 { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); }
12727 template <class _Ret, class _Tp, class _Arg>
12728 inline mem_fun1_ref_t<_Ret, _Tp, _Arg>
12729 mem_fun_ref(_Ret (_Tp::*__f)(_Arg))
12730 { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); }
12732 template <class _Ret, class _Tp, class _Arg>
12733 inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg>
12734 mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const)
12735 { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); }
12740 # 53 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/string" 2 3
12741 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 1 3
12742 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
12744 # 44 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
12751 # 109 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
12752 template<typename _CharT, typename _Traits, typename _Alloc>
12755 typedef typename _Alloc::template rebind<_CharT>::other _CharT_alloc_type;
12759 typedef _Traits traits_type;
12760 typedef typename _Traits::char_type value_type;
12761 typedef _Alloc allocator_type;
12762 typedef typename _CharT_alloc_type::size_type size_type;
12763 typedef typename _CharT_alloc_type::difference_type difference_type;
12764 typedef typename _CharT_alloc_type::reference reference;
12765 typedef typename _CharT_alloc_type::const_reference const_reference;
12766 typedef typename _CharT_alloc_type::pointer pointer;
12767 typedef typename _CharT_alloc_type::const_pointer const_pointer;
12768 typedef __gnu_cxx::__normal_iterator<pointer, basic_string> iterator;
12769 typedef __gnu_cxx::__normal_iterator<const_pointer, basic_string>
12771 typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
12772 typedef std::reverse_iterator<iterator> reverse_iterator;
12775 # 146 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
12778 size_type _M_length;
12779 size_type _M_capacity;
12780 _Atomic_word _M_refcount;
12783 struct _Rep : _Rep_base
12786 typedef typename _Alloc::template rebind<char>::other _Raw_bytes_alloc;
12787 # 171 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
12788 static const size_type _S_max_size;
12789 static const _CharT _S_terminal;
12793 static size_type _S_empty_rep_storage[];
12798 void* __p = reinterpret_cast<void*>(&_S_empty_rep_storage);
12799 return *reinterpret_cast<_Rep*>(__p);
12803 _M_is_leaked() const
12804 { return this->_M_refcount < 0; }
12807 _M_is_shared() const
12808 { return this->_M_refcount > 0; }
12812 { this->_M_refcount = -1; }
12816 { this->_M_refcount = 0; }
12819 _M_set_length_and_sharable(size_type __n)
12821 this->_M_set_sharable();
12822 this->_M_length = __n;
12823 traits_type::assign(this->_M_refdata()[__n], _S_terminal);
12829 _M_refdata() throw()
12830 { return reinterpret_cast<_CharT*>(this + 1); }
12833 _M_grab(const _Alloc& __alloc1, const _Alloc& __alloc2)
12835 return (!_M_is_leaked() && __alloc1 == __alloc2)
12836 ? _M_refcopy() : _M_clone(__alloc1);
12841 _S_create(size_type, size_type, const _Alloc&);
12844 _M_dispose(const _Alloc& __a)
12847 if (__builtin_expect(this != &_S_empty_rep(), false))
12849 if (__gnu_cxx::__exchange_and_add(&this->_M_refcount, -1) <= 0)
12854 _M_destroy(const _Alloc&) throw();
12857 _M_refcopy() throw()
12860 if (__builtin_expect(this != &_S_empty_rep(), false))
12862 __gnu_cxx::__atomic_add(&this->_M_refcount, 1);
12863 return _M_refdata();
12867 _M_clone(const _Alloc&, size_type __res = 0);
12871 struct _Alloc_hider : _Alloc
12873 _Alloc_hider(_CharT* __dat, const _Alloc& __a)
12874 : _Alloc(__a), _M_p(__dat) { }
12884 static const size_type npos = static_cast<size_type>(-1);
12888 mutable _Alloc_hider _M_dataplus;
12892 { return _M_dataplus._M_p; }
12895 _M_data(_CharT* __p)
12896 { return (_M_dataplus._M_p = __p); }
12900 { return &((reinterpret_cast<_Rep*> (_M_data()))[-1]); }
12906 { return iterator(_M_data()); }
12910 { return iterator(_M_data() + this->size()); }
12915 if (!_M_rep()->_M_is_leaked())
12920 _M_check(size_type __pos, const char* __s) const
12922 if (__pos > this->size())
12923 __throw_out_of_range((__s));
12928 _M_check_length(size_type __n1, size_type __n2, const char* __s) const
12930 if (this->max_size() - (this->size() - __n1) < __n2)
12931 __throw_length_error((__s));
12936 _M_limit(size_type __pos, size_type __off) const
12938 const bool __testoff = __off < this->size() - __pos;
12939 return __testoff ? __off : this->size() - __pos;
12944 _M_disjunct(const _CharT* __s) const
12946 return (less<const _CharT*>()(__s, _M_data())
12947 || less<const _CharT*>()(_M_data() + this->size(), __s));
12953 _M_copy(_CharT* __d, const _CharT* __s, size_type __n)
12956 traits_type::assign(*__d, *__s);
12958 traits_type::copy(__d, __s, __n);
12962 _M_move(_CharT* __d, const _CharT* __s, size_type __n)
12965 traits_type::assign(*__d, *__s);
12967 traits_type::move(__d, __s, __n);
12971 _M_assign(_CharT* __d, size_type __n, _CharT __c)
12974 traits_type::assign(*__d, __c);
12976 traits_type::assign(__d, __n, __c);
12981 template<class _Iterator>
12983 _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2)
12985 for (; __k1 != __k2; ++__k1, ++__p)
12986 traits_type::assign(*__p, *__k1);
12990 _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2)
12991 { _S_copy_chars(__p, __k1.base(), __k2.base()); }
12994 _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2)
12995 { _S_copy_chars(__p, __k1.base(), __k2.base()); }
12998 _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2)
12999 { _M_copy(__p, __k1, __k2 - __k1); }
13002 _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2)
13003 { _M_copy(__p, __k1, __k2 - __k1); }
13006 _M_mutate(size_type __pos, size_type __len1, size_type __len2);
13013 { return _Rep::_S_empty_rep(); }
13030 basic_string(const _Alloc& __a);
13037 basic_string(const basic_string& __str);
13044 basic_string(const basic_string& __str, size_type __pos,
13045 size_type __n = npos);
13053 basic_string(const basic_string& __str, size_type __pos,
13054 size_type __n, const _Alloc& __a);
13055 # 448 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13056 basic_string(const _CharT* __s, size_type __n,
13057 const _Alloc& __a = _Alloc());
13063 basic_string(const _CharT* __s, const _Alloc& __a = _Alloc());
13070 basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc());
13078 template<class _InputIterator>
13079 basic_string(_InputIterator __beg, _InputIterator __end,
13080 const _Alloc& __a = _Alloc());
13086 { _M_rep()->_M_dispose(this->get_allocator()); }
13093 operator=(const basic_string& __str)
13094 { return this->assign(__str); }
13101 operator=(const _CharT* __s)
13102 { return this->assign(__s); }
13103 # 503 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13105 operator=(_CharT __c)
13107 this->assign(1, __c);
13120 return iterator(_M_data());
13129 { return const_iterator(_M_data()); }
13139 return iterator(_M_data() + this->size());
13148 { return const_iterator(_M_data() + this->size()); }
13157 { return reverse_iterator(this->end()); }
13164 const_reverse_iterator
13166 { return const_reverse_iterator(this->end()); }
13175 { return reverse_iterator(this->begin()); }
13182 const_reverse_iterator
13184 { return const_reverse_iterator(this->begin()); }
13192 { return _M_rep()->_M_length; }
13198 { return _M_rep()->_M_length; }
13203 { return _Rep::_S_max_size; }
13204 # 614 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13206 resize(size_type __n, _CharT __c);
13207 # 627 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13209 resize(size_type __n)
13210 { this->resize(__n, _CharT()); }
13218 { return _M_rep()->_M_capacity; }
13219 # 656 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13221 reserve(size_type __res_arg = 0);
13228 { _M_mutate(0, this->size(), 0); }
13235 { return this->size() == 0; }
13236 # 684 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13238 operator[] (size_type __pos) const
13241 return _M_data()[__pos];
13243 # 701 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13245 operator[](size_type __pos)
13252 return _M_data()[__pos];
13254 # 722 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13256 at(size_type __n) const
13258 if (__n >= this->size())
13259 __throw_out_of_range(("basic_string::at"));
13260 return _M_data()[__n];
13262 # 741 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13267 __throw_out_of_range(("basic_string::at"));
13269 return _M_data()[__n];
13279 operator+=(const basic_string& __str)
13280 { return this->append(__str); }
13288 operator+=(const _CharT* __s)
13289 { return this->append(__s); }
13297 operator+=(_CharT __c)
13299 this->push_back(__c);
13309 append(const basic_string& __str);
13310 # 801 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13312 append(const basic_string& __str, size_type __pos, size_type __n);
13321 append(const _CharT* __s, size_type __n);
13329 append(const _CharT* __s)
13332 return this->append(__s, traits_type::length(__s));
13334 # 833 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13336 append(size_type __n, _CharT __c);
13337 # 844 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13338 template<class _InputIterator>
13340 append(_InputIterator __first, _InputIterator __last)
13341 { return this->replace(_M_iend(), _M_iend(), __first, __last); }
13348 push_back(_CharT __c)
13350 const size_type __len = 1 + this->size();
13351 if (__len > this->capacity() || _M_rep()->_M_is_shared())
13352 this->reserve(__len);
13353 traits_type::assign(_M_data()[this->size()], __c);
13354 _M_rep()->_M_set_length_and_sharable(__len);
13363 assign(const basic_string& __str);
13364 # 883 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13366 assign(const basic_string& __str, size_type __pos, size_type __n)
13367 { return this->assign(__str._M_data()
13368 + __str._M_check(__pos, "basic_string::assign"),
13369 __str._M_limit(__pos, __n)); }
13370 # 899 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13372 assign(const _CharT* __s, size_type __n);
13373 # 911 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13375 assign(const _CharT* __s)
13378 return this->assign(__s, traits_type::length(__s));
13380 # 927 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13382 assign(size_type __n, _CharT __c)
13383 { return _M_replace_aux(size_type(0), this->size(), __n, __c); }
13384 # 939 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13385 template<class _InputIterator>
13387 assign(_InputIterator __first, _InputIterator __last)
13388 { return this->replace(_M_ibegin(), _M_iend(), __first, __last); }
13389 # 956 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13391 insert(iterator __p, size_type __n, _CharT __c)
13392 { this->replace(__p, __p, __n, __c); }
13393 # 971 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13394 template<class _InputIterator>
13396 insert(iterator __p, _InputIterator __beg, _InputIterator __end)
13397 { this->replace(__p, __p, __beg, __end); }
13398 # 987 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13400 insert(size_type __pos1, const basic_string& __str)
13401 { return this->insert(__pos1, __str, size_type(0), __str.size()); }
13402 # 1009 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13404 insert(size_type __pos1, const basic_string& __str,
13405 size_type __pos2, size_type __n)
13406 { return this->insert(__pos1, __str._M_data()
13407 + __str._M_check(__pos2, "basic_string::insert"),
13408 __str._M_limit(__pos2, __n)); }
13409 # 1032 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13411 insert(size_type __pos, const _CharT* __s, size_type __n);
13412 # 1050 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13414 insert(size_type __pos, const _CharT* __s)
13417 return this->insert(__pos, __s, traits_type::length(__s));
13419 # 1073 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13421 insert(size_type __pos, size_type __n, _CharT __c)
13422 { return _M_replace_aux(_M_check(__pos, "basic_string::insert"),
13423 size_type(0), __n, __c); }
13424 # 1090 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13426 insert(iterator __p, _CharT __c)
13429 const size_type __pos = __p - _M_ibegin();
13430 _M_replace_aux(__pos, size_type(0), size_type(1), __c);
13431 _M_rep()->_M_set_leaked();
13432 return this->_M_ibegin() + __pos;
13434 # 1114 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13436 erase(size_type __pos = 0, size_type __n = npos)
13438 _M_mutate(_M_check(__pos, "basic_string::erase"),
13439 _M_limit(__pos, __n), size_type(0));
13442 # 1130 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13444 erase(iterator __position)
13448 const size_type __pos = __position - _M_ibegin();
13449 _M_mutate(__pos, size_type(1), size_type(0));
13450 _M_rep()->_M_set_leaked();
13451 return _M_ibegin() + __pos;
13453 # 1150 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13455 erase(iterator __first, iterator __last)
13459 const size_type __pos = __first - _M_ibegin();
13460 _M_mutate(__pos, __last - __first, size_type(0));
13461 _M_rep()->_M_set_leaked();
13462 return _M_ibegin() + __pos;
13464 # 1177 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13466 replace(size_type __pos, size_type __n, const basic_string& __str)
13467 { return this->replace(__pos, __n, __str._M_data(), __str.size()); }
13468 # 1199 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13470 replace(size_type __pos1, size_type __n1, const basic_string& __str,
13471 size_type __pos2, size_type __n2)
13472 { return this->replace(__pos1, __n1, __str._M_data()
13473 + __str._M_check(__pos2, "basic_string::replace"),
13474 __str._M_limit(__pos2, __n2)); }
13475 # 1223 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13477 replace(size_type __pos, size_type __n1, const _CharT* __s,
13479 # 1242 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13481 replace(size_type __pos, size_type __n1, const _CharT* __s)
13484 return this->replace(__pos, __n1, __s, traits_type::length(__s));
13486 # 1265 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13488 replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c)
13489 { return _M_replace_aux(_M_check(__pos, "basic_string::replace"),
13490 _M_limit(__pos, __n1), __n2, __c); }
13491 # 1283 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13493 replace(iterator __i1, iterator __i2, const basic_string& __str)
13494 { return this->replace(__i1, __i2, __str._M_data(), __str.size()); }
13495 # 1301 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13497 replace(iterator __i1, iterator __i2, const _CharT* __s, size_type __n)
13501 return this->replace(__i1 - _M_ibegin(), __i2 - __i1, __s, __n);
13503 # 1322 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13505 replace(iterator __i1, iterator __i2, const _CharT* __s)
13508 return this->replace(__i1, __i2, __s, traits_type::length(__s));
13510 # 1343 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13512 replace(iterator __i1, iterator __i2, size_type __n, _CharT __c)
13516 return _M_replace_aux(__i1 - _M_ibegin(), __i2 - __i1, __n, __c);
13518 # 1365 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13519 template<class _InputIterator>
13521 replace(iterator __i1, iterator __i2,
13522 _InputIterator __k1, _InputIterator __k2)
13527 typedef typename std::__is_integer<_InputIterator>::__type _Integral;
13528 return _M_replace_dispatch(__i1, __i2, __k1, __k2, _Integral());
13534 replace(iterator __i1, iterator __i2, _CharT* __k1, _CharT* __k2)
13539 return this->replace(__i1 - _M_ibegin(), __i2 - __i1,
13540 __k1, __k2 - __k1);
13544 replace(iterator __i1, iterator __i2,
13545 const _CharT* __k1, const _CharT* __k2)
13550 return this->replace(__i1 - _M_ibegin(), __i2 - __i1,
13551 __k1, __k2 - __k1);
13555 replace(iterator __i1, iterator __i2, iterator __k1, iterator __k2)
13560 return this->replace(__i1 - _M_ibegin(), __i2 - __i1,
13561 __k1.base(), __k2 - __k1);
13565 replace(iterator __i1, iterator __i2,
13566 const_iterator __k1, const_iterator __k2)
13571 return this->replace(__i1 - _M_ibegin(), __i2 - __i1,
13572 __k1.base(), __k2 - __k1);
13576 template<class _Integer>
13578 _M_replace_dispatch(iterator __i1, iterator __i2, _Integer __n,
13579 _Integer __val, __true_type)
13580 { return _M_replace_aux(__i1 - _M_ibegin(), __i2 - __i1, __n, __val); }
13582 template<class _InputIterator>
13584 _M_replace_dispatch(iterator __i1, iterator __i2, _InputIterator __k1,
13585 _InputIterator __k2, __false_type);
13588 _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2,
13592 _M_replace_safe(size_type __pos1, size_type __n1, const _CharT* __s,
13597 template<class _InIterator>
13599 _S_construct_aux(_InIterator __beg, _InIterator __end,
13600 const _Alloc& __a, __false_type)
13602 typedef typename iterator_traits<_InIterator>::iterator_category _Tag;
13603 return _S_construct(__beg, __end, __a, _Tag());
13606 template<class _InIterator>
13608 _S_construct_aux(_InIterator __beg, _InIterator __end,
13609 const _Alloc& __a, __true_type)
13610 { return _S_construct(static_cast<size_type>(__beg),
13611 static_cast<value_type>(__end), __a); }
13613 template<class _InIterator>
13615 _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a)
13617 typedef typename std::__is_integer<_InIterator>::__type _Integral;
13618 return _S_construct_aux(__beg, __end, __a, _Integral());
13622 template<class _InIterator>
13624 _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a,
13625 input_iterator_tag);
13629 template<class _FwdIterator>
13631 _S_construct(_FwdIterator __beg, _FwdIterator __end, const _Alloc& __a,
13632 forward_iterator_tag);
13635 _S_construct(size_type __req, _CharT __c, const _Alloc& __a);
13638 # 1496 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13640 copy(_CharT* __s, size_type __n, size_type __pos = 0) const;
13641 # 1506 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13643 swap(basic_string& __s);
13644 # 1516 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13647 { return _M_data(); }
13657 { return _M_data(); }
13663 get_allocator() const
13664 { return _M_dataplus; }
13665 # 1548 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13667 find(const _CharT* __s, size_type __pos, size_type __n) const;
13668 # 1561 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13670 find(const basic_string& __str, size_type __pos = 0) const
13671 { return this->find(__str.data(), __pos, __str.size()); }
13672 # 1575 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13674 find(const _CharT* __s, size_type __pos = 0) const
13677 return this->find(__s, __pos, traits_type::length(__s));
13679 # 1592 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13681 find(_CharT __c, size_type __pos = 0) const;
13682 # 1605 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13684 rfind(const basic_string& __str, size_type __pos = npos) const
13685 { return this->rfind(__str.data(), __pos, __str.size()); }
13686 # 1620 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13688 rfind(const _CharT* __s, size_type __pos, size_type __n) const;
13689 # 1633 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13691 rfind(const _CharT* __s, size_type __pos = npos) const
13694 return this->rfind(__s, __pos, traits_type::length(__s));
13696 # 1650 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13698 rfind(_CharT __c, size_type __pos = npos) const;
13699 # 1663 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13701 find_first_of(const basic_string& __str, size_type __pos = 0) const
13702 { return this->find_first_of(__str.data(), __pos, __str.size()); }
13703 # 1678 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13705 find_first_of(const _CharT* __s, size_type __pos, size_type __n) const;
13706 # 1691 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13708 find_first_of(const _CharT* __s, size_type __pos = 0) const
13711 return this->find_first_of(__s, __pos, traits_type::length(__s));
13713 # 1710 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13715 find_first_of(_CharT __c, size_type __pos = 0) const
13716 { return this->find(__c, __pos); }
13717 # 1724 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13719 find_last_of(const basic_string& __str, size_type __pos = npos) const
13720 { return this->find_last_of(__str.data(), __pos, __str.size()); }
13721 # 1739 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13723 find_last_of(const _CharT* __s, size_type __pos, size_type __n) const;
13724 # 1752 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13726 find_last_of(const _CharT* __s, size_type __pos = npos) const
13729 return this->find_last_of(__s, __pos, traits_type::length(__s));
13731 # 1771 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13733 find_last_of(_CharT __c, size_type __pos = npos) const
13734 { return this->rfind(__c, __pos); }
13735 # 1785 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13737 find_first_not_of(const basic_string& __str, size_type __pos = 0) const
13738 { return this->find_first_not_of(__str.data(), __pos, __str.size()); }
13739 # 1800 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13741 find_first_not_of(const _CharT* __s, size_type __pos,
13742 size_type __n) const;
13743 # 1814 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13745 find_first_not_of(const _CharT* __s, size_type __pos = 0) const
13748 return this->find_first_not_of(__s, __pos, traits_type::length(__s));
13750 # 1831 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13752 find_first_not_of(_CharT __c, size_type __pos = 0) const;
13753 # 1844 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13755 find_last_not_of(const basic_string& __str, size_type __pos = npos) const
13756 { return this->find_last_not_of(__str.data(), __pos, __str.size()); }
13757 # 1860 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13759 find_last_not_of(const _CharT* __s, size_type __pos,
13760 size_type __n) const;
13761 # 1873 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13763 find_last_not_of(const _CharT* __s, size_type __pos = npos) const
13766 return this->find_last_not_of(__s, __pos, traits_type::length(__s));
13768 # 1890 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13770 find_last_not_of(_CharT __c, size_type __pos = npos) const;
13771 # 1905 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13773 substr(size_type __pos = 0, size_type __n = npos) const
13774 { return basic_string(*this,
13775 _M_check(__pos, "basic_string::substr"), __n); }
13776 # 1923 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13778 compare(const basic_string& __str) const
13780 const size_type __size = this->size();
13781 const size_type __osize = __str.size();
13782 const size_type __len = std::min(__size, __osize);
13784 int __r = traits_type::compare(_M_data(), __str.data(), __len);
13786 __r = __size - __osize;
13789 # 1953 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13791 compare(size_type __pos, size_type __n, const basic_string& __str) const;
13792 # 1977 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13794 compare(size_type __pos1, size_type __n1, const basic_string& __str,
13795 size_type __pos2, size_type __n2) const;
13796 # 1995 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13798 compare(const _CharT* __s) const;
13799 # 2018 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13801 compare(size_type __pos, size_type __n1, const _CharT* __s) const;
13802 # 2043 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13804 compare(size_type __pos, size_type __n1, const _CharT* __s,
13805 size_type __n2) const;
13808 template<typename _CharT, typename _Traits, typename _Alloc>
13809 inline basic_string<_CharT, _Traits, _Alloc>::
13812 : _M_dataplus(_S_empty_rep()._M_refdata(), _Alloc()) { }
13813 # 2064 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13814 template<typename _CharT, typename _Traits, typename _Alloc>
13815 basic_string<_CharT, _Traits, _Alloc>
13816 operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
13817 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
13819 basic_string<_CharT, _Traits, _Alloc> __str(__lhs);
13820 __str.append(__rhs);
13830 template<typename _CharT, typename _Traits, typename _Alloc>
13831 basic_string<_CharT,_Traits,_Alloc>
13832 operator+(const _CharT* __lhs,
13833 const basic_string<_CharT,_Traits,_Alloc>& __rhs);
13841 template<typename _CharT, typename _Traits, typename _Alloc>
13842 basic_string<_CharT,_Traits,_Alloc>
13843 operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs);
13851 template<typename _CharT, typename _Traits, typename _Alloc>
13852 inline basic_string<_CharT, _Traits, _Alloc>
13853 operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
13854 const _CharT* __rhs)
13856 basic_string<_CharT, _Traits, _Alloc> __str(__lhs);
13857 __str.append(__rhs);
13867 template<typename _CharT, typename _Traits, typename _Alloc>
13868 inline basic_string<_CharT, _Traits, _Alloc>
13869 operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
13871 typedef basic_string<_CharT, _Traits, _Alloc> __string_type;
13872 typedef typename __string_type::size_type __size_type;
13873 __string_type __str(__lhs);
13874 __str.append(__size_type(1), __rhs);
13877 # 2135 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13878 template<typename _CharT, typename _Traits, typename _Alloc>
13880 operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
13881 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
13882 { return __lhs.compare(__rhs) == 0; }
13890 template<typename _CharT, typename _Traits, typename _Alloc>
13892 operator==(const _CharT* __lhs,
13893 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
13894 { return __rhs.compare(__lhs) == 0; }
13902 template<typename _CharT, typename _Traits, typename _Alloc>
13904 operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
13905 const _CharT* __rhs)
13906 { return __lhs.compare(__rhs) == 0; }
13907 # 2172 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13908 template<typename _CharT, typename _Traits, typename _Alloc>
13910 operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
13911 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
13912 { return __rhs.compare(__lhs) != 0; }
13920 template<typename _CharT, typename _Traits, typename _Alloc>
13922 operator!=(const _CharT* __lhs,
13923 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
13924 { return __rhs.compare(__lhs) != 0; }
13932 template<typename _CharT, typename _Traits, typename _Alloc>
13934 operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
13935 const _CharT* __rhs)
13936 { return __lhs.compare(__rhs) != 0; }
13937 # 2209 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13938 template<typename _CharT, typename _Traits, typename _Alloc>
13940 operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
13941 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
13942 { return __lhs.compare(__rhs) < 0; }
13950 template<typename _CharT, typename _Traits, typename _Alloc>
13952 operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
13953 const _CharT* __rhs)
13954 { return __lhs.compare(__rhs) < 0; }
13962 template<typename _CharT, typename _Traits, typename _Alloc>
13964 operator<(const _CharT* __lhs,
13965 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
13966 { return __rhs.compare(__lhs) > 0; }
13967 # 2246 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13968 template<typename _CharT, typename _Traits, typename _Alloc>
13970 operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
13971 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
13972 { return __lhs.compare(__rhs) > 0; }
13980 template<typename _CharT, typename _Traits, typename _Alloc>
13982 operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
13983 const _CharT* __rhs)
13984 { return __lhs.compare(__rhs) > 0; }
13992 template<typename _CharT, typename _Traits, typename _Alloc>
13994 operator>(const _CharT* __lhs,
13995 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
13996 { return __rhs.compare(__lhs) < 0; }
13997 # 2283 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
13998 template<typename _CharT, typename _Traits, typename _Alloc>
14000 operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
14001 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
14002 { return __lhs.compare(__rhs) <= 0; }
14010 template<typename _CharT, typename _Traits, typename _Alloc>
14012 operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
14013 const _CharT* __rhs)
14014 { return __lhs.compare(__rhs) <= 0; }
14022 template<typename _CharT, typename _Traits, typename _Alloc>
14024 operator<=(const _CharT* __lhs,
14025 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
14026 { return __rhs.compare(__lhs) >= 0; }
14027 # 2320 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
14028 template<typename _CharT, typename _Traits, typename _Alloc>
14030 operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
14031 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
14032 { return __lhs.compare(__rhs) >= 0; }
14040 template<typename _CharT, typename _Traits, typename _Alloc>
14042 operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
14043 const _CharT* __rhs)
14044 { return __lhs.compare(__rhs) >= 0; }
14052 template<typename _CharT, typename _Traits, typename _Alloc>
14054 operator>=(const _CharT* __lhs,
14055 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
14056 { return __rhs.compare(__lhs) <= 0; }
14057 # 2357 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
14058 template<typename _CharT, typename _Traits, typename _Alloc>
14060 swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
14061 basic_string<_CharT, _Traits, _Alloc>& __rhs)
14062 { __lhs.swap(__rhs); }
14063 # 2374 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
14064 template<typename _CharT, typename _Traits, typename _Alloc>
14065 basic_istream<_CharT, _Traits>&
14066 operator>>(basic_istream<_CharT, _Traits>& __is,
14067 basic_string<_CharT, _Traits, _Alloc>& __str);
14070 basic_istream<char>&
14071 operator>>(basic_istream<char>& __is, basic_string<char>& __str);
14072 # 2392 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
14073 template<typename _CharT, typename _Traits, typename _Alloc>
14074 basic_ostream<_CharT, _Traits>&
14075 operator<<(basic_ostream<_CharT, _Traits>& __os,
14076 const basic_string<_CharT, _Traits, _Alloc>& __str);
14077 # 2410 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
14078 template<typename _CharT, typename _Traits, typename _Alloc>
14079 basic_istream<_CharT, _Traits>&
14080 getline(basic_istream<_CharT, _Traits>& __is,
14081 basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim);
14082 # 2427 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.h" 3
14083 template<typename _CharT, typename _Traits, typename _Alloc>
14084 inline basic_istream<_CharT, _Traits>&
14085 getline(basic_istream<_CharT, _Traits>& __is,
14086 basic_string<_CharT, _Traits, _Alloc>& __str);
14089 basic_istream<char>&
14090 getline(basic_istream<char>& __in, basic_string<char>& __str,
14095 basic_istream<wchar_t>&
14096 getline(basic_istream<wchar_t>& __in, basic_string<wchar_t>& __str,
14100 # 54 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/string" 2 3
14103 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/algorithm" 1 3
14104 # 63 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/algorithm" 3
14106 # 64 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/algorithm" 3
14107 #pragma GCC visibility push(default)
14112 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 1 3
14113 # 65 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
14114 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_heap.h" 1 3
14115 # 65 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_heap.h" 3
14121 template<typename _RandomAccessIterator, typename _Distance>
14123 __is_heap(_RandomAccessIterator __first, _Distance __n)
14125 _Distance __parent = 0;
14126 for (_Distance __child = 1; __child < __n; ++__child)
14128 if (__first[__parent] < __first[__child])
14130 if ((__child & 1) == 0)
14136 template<typename _RandomAccessIterator, typename _Distance,
14137 typename _StrictWeakOrdering>
14139 __is_heap(_RandomAccessIterator __first, _StrictWeakOrdering __comp,
14142 _Distance __parent = 0;
14143 for (_Distance __child = 1; __child < __n; ++__child)
14145 if (__comp(__first[__parent], __first[__child]))
14147 if ((__child & 1) == 0)
14153 template<typename _RandomAccessIterator>
14155 __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
14156 { return std::__is_heap(__first, std::distance(__first, __last)); }
14158 template<typename _RandomAccessIterator, typename _StrictWeakOrdering>
14160 __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last,
14161 _StrictWeakOrdering __comp)
14162 { return std::__is_heap(__first, __comp, std::distance(__first, __last)); }
14166 template<typename _RandomAccessIterator, typename _Distance, typename _Tp>
14168 __push_heap(_RandomAccessIterator __first,
14169 _Distance __holeIndex, _Distance __topIndex, _Tp __value)
14171 _Distance __parent = (__holeIndex - 1) / 2;
14172 while (__holeIndex > __topIndex && *(__first + __parent) < __value)
14174 *(__first + __holeIndex) = *(__first + __parent);
14175 __holeIndex = __parent;
14176 __parent = (__holeIndex - 1) / 2;
14178 *(__first + __holeIndex) = __value;
14180 # 139 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_heap.h" 3
14181 template<typename _RandomAccessIterator>
14183 push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
14185 typedef typename iterator_traits<_RandomAccessIterator>::value_type
14187 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
14197 std::__push_heap(__first, _DistanceType((__last - __first) - 1),
14198 _DistanceType(0), _ValueType(*(__last - 1)));
14201 template<typename _RandomAccessIterator, typename _Distance, typename _Tp,
14204 __push_heap(_RandomAccessIterator __first, _Distance __holeIndex,
14205 _Distance __topIndex, _Tp __value, _Compare __comp)
14207 _Distance __parent = (__holeIndex - 1) / 2;
14208 while (__holeIndex > __topIndex
14209 && __comp(*(__first + __parent), __value))
14211 *(__first + __holeIndex) = *(__first + __parent);
14212 __holeIndex = __parent;
14213 __parent = (__holeIndex - 1) / 2;
14215 *(__first + __holeIndex) = __value;
14217 # 187 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_heap.h" 3
14218 template<typename _RandomAccessIterator, typename _Compare>
14220 push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last,
14223 typedef typename iterator_traits<_RandomAccessIterator>::value_type
14225 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
14234 std::__push_heap(__first, _DistanceType((__last - __first) - 1),
14235 _DistanceType(0), _ValueType(*(__last - 1)), __comp);
14238 template<typename _RandomAccessIterator, typename _Distance, typename _Tp>
14240 __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex,
14241 _Distance __len, _Tp __value)
14243 const _Distance __topIndex = __holeIndex;
14244 _Distance __secondChild = 2 * __holeIndex + 2;
14245 while (__secondChild < __len)
14247 if (*(__first + __secondChild) < *(__first + (__secondChild - 1)))
14249 *(__first + __holeIndex) = *(__first + __secondChild);
14250 __holeIndex = __secondChild;
14251 __secondChild = 2 * (__secondChild + 1);
14253 if (__secondChild == __len)
14255 *(__first + __holeIndex) = *(__first + (__secondChild - 1));
14256 __holeIndex = __secondChild - 1;
14258 std::__push_heap(__first, __holeIndex, __topIndex, __value);
14261 template<typename _RandomAccessIterator, typename _Tp>
14263 __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last,
14264 _RandomAccessIterator __result, _Tp __value)
14266 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
14268 *__result = *__first;
14269 std::__adjust_heap(__first, _Distance(0), _Distance(__last - __first),
14272 # 251 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_heap.h" 3
14273 template<typename _RandomAccessIterator>
14275 pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
14277 typedef typename iterator_traits<_RandomAccessIterator>::value_type
14287 std::__pop_heap(__first, __last - 1, __last - 1,
14288 _ValueType(*(__last - 1)));
14291 template<typename _RandomAccessIterator, typename _Distance,
14292 typename _Tp, typename _Compare>
14294 __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex,
14295 _Distance __len, _Tp __value, _Compare __comp)
14297 const _Distance __topIndex = __holeIndex;
14298 _Distance __secondChild = 2 * __holeIndex + 2;
14299 while (__secondChild < __len)
14301 if (__comp(*(__first + __secondChild),
14302 *(__first + (__secondChild - 1))))
14304 *(__first + __holeIndex) = *(__first + __secondChild);
14305 __holeIndex = __secondChild;
14306 __secondChild = 2 * (__secondChild + 1);
14308 if (__secondChild == __len)
14310 *(__first + __holeIndex) = *(__first + (__secondChild - 1));
14311 __holeIndex = __secondChild - 1;
14313 std::__push_heap(__first, __holeIndex, __topIndex, __value, __comp);
14316 template<typename _RandomAccessIterator, typename _Tp, typename _Compare>
14318 __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last,
14319 _RandomAccessIterator __result, _Tp __value, _Compare __comp)
14321 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
14323 *__result = *__first;
14324 std::__adjust_heap(__first, _Distance(0), _Distance(__last - __first),
14327 # 317 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_heap.h" 3
14328 template<typename _RandomAccessIterator, typename _Compare>
14330 pop_heap(_RandomAccessIterator __first,
14331 _RandomAccessIterator __last, _Compare __comp)
14339 typedef typename iterator_traits<_RandomAccessIterator>::value_type
14341 std::__pop_heap(__first, __last - 1, __last - 1,
14342 _ValueType(*(__last - 1)), __comp);
14344 # 342 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_heap.h" 3
14345 template<typename _RandomAccessIterator>
14347 make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
14349 typedef typename iterator_traits<_RandomAccessIterator>::value_type
14351 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
14360 if (__last - __first < 2)
14363 const _DistanceType __len = __last - __first;
14364 _DistanceType __parent = (__len - 2) / 2;
14367 std::__adjust_heap(__first, __parent, __len,
14368 _ValueType(*(__first + __parent)));
14374 # 382 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_heap.h" 3
14375 template<typename _RandomAccessIterator, typename _Compare>
14377 make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last,
14380 typedef typename iterator_traits<_RandomAccessIterator>::value_type
14382 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
14390 if (__last - __first < 2)
14393 const _DistanceType __len = __last - __first;
14394 _DistanceType __parent = (__len - 2) / 2;
14397 std::__adjust_heap(__first, __parent, __len,
14398 _ValueType(*(__first + __parent)), __comp);
14404 # 420 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_heap.h" 3
14405 template<typename _RandomAccessIterator>
14407 sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
14417 while (__last - __first > 1)
14418 std::pop_heap(__first, __last--);
14420 # 446 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_heap.h" 3
14421 template<typename _RandomAccessIterator, typename _Compare>
14423 sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last,
14432 while (__last - __first > 1)
14433 std::pop_heap(__first, __last--, __comp);
14437 # 66 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 2 3
14438 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_tempbuf.h" 1 3
14439 # 66 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_tempbuf.h" 3
14449 template<typename _ForwardIterator, typename _Tp>
14450 class _Temporary_buffer
14456 typedef _Tp value_type;
14457 typedef value_type* pointer;
14458 typedef pointer iterator;
14459 typedef ptrdiff_t size_type;
14462 size_type _M_original_len;
14467 _M_initialize_buffer(const _Tp&, __true_type) { }
14470 _M_initialize_buffer(const _Tp& val, __false_type)
14471 { std::uninitialized_fill_n(_M_buffer, _M_len, val); }
14481 requested_size() const
14482 { return _M_original_len; }
14487 { return _M_buffer; }
14492 { return _M_buffer + _M_len; }
14498 _Temporary_buffer(_ForwardIterator __first, _ForwardIterator __last);
14500 ~_Temporary_buffer()
14502 std::_Destroy(_M_buffer, _M_buffer + _M_len);
14503 std::return_temporary_buffer(_M_buffer);
14508 _Temporary_buffer(const _Temporary_buffer&);
14511 operator=(const _Temporary_buffer&);
14515 template<typename _ForwardIterator, typename _Tp>
14516 _Temporary_buffer<_ForwardIterator, _Tp>::
14517 _Temporary_buffer(_ForwardIterator __first, _ForwardIterator __last)
14518 : _M_original_len(std::distance(__first, __last)),
14519 _M_len(0), _M_buffer(0)
14522 typedef typename std::__is_scalar<_Tp>::__type _Trivial;
14526 pair<pointer, size_type> __p(get_temporary_buffer<
14527 value_type>(_M_original_len));
14528 _M_buffer = __p.first;
14529 _M_len = __p.second;
14531 _M_initialize_buffer(*__first, _Trivial());
14535 std::return_temporary_buffer(_M_buffer);
14542 # 67 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 2 3
14549 # 85 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
14550 template<typename _Tp>
14552 __median(const _Tp& __a, const _Tp& __b, const _Tp& __c)
14559 else if (__a < __c)
14563 else if (__a < __c)
14565 else if (__b < __c)
14570 # 119 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
14571 template<typename _Tp, typename _Compare>
14573 __median(const _Tp& __a, const _Tp& __b, const _Tp& __c, _Compare __comp)
14577 if (__comp(__a, __b))
14578 if (__comp(__b, __c))
14580 else if (__comp(__a, __c))
14584 else if (__comp(__a, __c))
14586 else if (__comp(__b, __c))
14591 # 151 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
14592 template<typename _InputIterator, typename _Function>
14594 for_each(_InputIterator __first, _InputIterator __last, _Function __f)
14599 for ( ; __first != __last; ++__first)
14609 template<typename _InputIterator, typename _Tp>
14610 inline _InputIterator
14611 __find(_InputIterator __first, _InputIterator __last,
14612 const _Tp& __val, input_iterator_tag)
14614 while (__first != __last && !(*__first == __val))
14624 template<typename _InputIterator, typename _Predicate>
14625 inline _InputIterator
14626 __find_if(_InputIterator __first, _InputIterator __last,
14627 _Predicate __pred, input_iterator_tag)
14629 while (__first != __last && !__pred(*__first))
14639 template<typename _RandomAccessIterator, typename _Tp>
14640 _RandomAccessIterator
14641 __find(_RandomAccessIterator __first, _RandomAccessIterator __last,
14642 const _Tp& __val, random_access_iterator_tag)
14644 typename iterator_traits<_RandomAccessIterator>::difference_type
14645 __trip_count = (__last - __first) >> 2;
14647 for ( ; __trip_count > 0 ; --__trip_count)
14649 if (*__first == __val)
14653 if (*__first == __val)
14657 if (*__first == __val)
14661 if (*__first == __val)
14666 switch (__last - __first)
14669 if (*__first == __val)
14673 if (*__first == __val)
14677 if (*__first == __val)
14691 template<typename _RandomAccessIterator, typename _Predicate>
14692 _RandomAccessIterator
14693 __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last,
14694 _Predicate __pred, random_access_iterator_tag)
14696 typename iterator_traits<_RandomAccessIterator>::difference_type
14697 __trip_count = (__last - __first) >> 2;
14699 for ( ; __trip_count > 0 ; --__trip_count)
14701 if (__pred(*__first))
14705 if (__pred(*__first))
14709 if (__pred(*__first))
14713 if (__pred(*__first))
14718 switch (__last - __first)
14721 if (__pred(*__first))
14725 if (__pred(*__first))
14729 if (__pred(*__first))
14737 # 305 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
14738 template<typename _InputIterator, typename _Tp>
14739 inline _InputIterator
14740 find(_InputIterator __first, _InputIterator __last,
14748 return std::__find(__first, __last, __val,
14749 std::__iterator_category(__first));
14751 # 327 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
14752 template<typename _InputIterator, typename _Predicate>
14753 inline _InputIterator
14754 find_if(_InputIterator __first, _InputIterator __last,
14762 return std::__find_if(__first, __last, __pred,
14763 std::__iterator_category(__first));
14765 # 349 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
14766 template<typename _ForwardIterator>
14768 adjacent_find(_ForwardIterator __first, _ForwardIterator __last)
14775 if (__first == __last)
14777 _ForwardIterator __next = __first;
14778 while(++__next != __last)
14780 if (*__first == *__next)
14786 # 380 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
14787 template<typename _ForwardIterator, typename _BinaryPredicate>
14789 adjacent_find(_ForwardIterator __first, _ForwardIterator __last,
14790 _BinaryPredicate __binary_pred)
14798 if (__first == __last)
14800 _ForwardIterator __next = __first;
14801 while(++__next != __last)
14803 if (__binary_pred(*__first, *__next))
14809 # 411 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
14810 template<typename _InputIterator, typename _Tp>
14811 typename iterator_traits<_InputIterator>::difference_type
14812 count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
14819 typename iterator_traits<_InputIterator>::difference_type __n = 0;
14820 for ( ; __first != __last; ++__first)
14821 if (*__first == __value)
14825 # 435 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
14826 template<typename _InputIterator, typename _Predicate>
14827 typename iterator_traits<_InputIterator>::difference_type
14828 count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred)
14835 typename iterator_traits<_InputIterator>::difference_type __n = 0;
14836 for ( ; __first != __last; ++__first)
14837 if (__pred(*__first))
14841 # 474 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
14842 template<typename _ForwardIterator1, typename _ForwardIterator2>
14844 search(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
14845 _ForwardIterator2 __first2, _ForwardIterator2 __last2)
14856 if (__first1 == __last1 || __first2 == __last2)
14860 _ForwardIterator2 __tmp(__first2);
14862 if (__tmp == __last2)
14863 return std::find(__first1, __last1, *__first2);
14866 _ForwardIterator2 __p1, __p;
14867 __p1 = __first2; ++__p1;
14868 _ForwardIterator1 __current = __first1;
14870 while (__first1 != __last1)
14872 __first1 = std::find(__first1, __last1, *__first2);
14873 if (__first1 == __last1)
14877 __current = __first1;
14878 if (++__current == __last1)
14881 while (*__current == *__p)
14883 if (++__p == __last2)
14885 if (++__current == __last1)
14892 # 545 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
14893 template<typename _ForwardIterator1, typename _ForwardIterator2,
14894 typename _BinaryPredicate>
14896 search(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
14897 _ForwardIterator2 __first2, _ForwardIterator2 __last2,
14898 _BinaryPredicate __predicate)
14910 if (__first1 == __last1 || __first2 == __last2)
14914 _ForwardIterator2 __tmp(__first2);
14916 if (__tmp == __last2)
14918 while (__first1 != __last1 && !__predicate(*__first1, *__first2))
14924 _ForwardIterator2 __p1, __p;
14925 __p1 = __first2; ++__p1;
14926 _ForwardIterator1 __current = __first1;
14928 while (__first1 != __last1)
14930 while (__first1 != __last1)
14932 if (__predicate(*__first1, *__first2))
14936 while (__first1 != __last1 && !__predicate(*__first1, *__first2))
14938 if (__first1 == __last1)
14942 __current = __first1;
14943 if (++__current == __last1)
14946 while (__predicate(*__current, *__p))
14948 if (++__p == __last2)
14950 if (++__current == __last1)
14957 # 617 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
14958 template<typename _ForwardIterator, typename _Integer, typename _Tp>
14960 __search_n(_ForwardIterator __first, _ForwardIterator __last,
14961 _Integer __count, const _Tp& __val,
14962 std::forward_iterator_tag)
14964 __first = std::find(__first, __last, __val);
14965 while (__first != __last)
14967 typename iterator_traits<_ForwardIterator>::difference_type
14969 _ForwardIterator __i = __first;
14971 while (__i != __last && __n != 1 && *__i == __val)
14980 __first = std::find(++__i, __last, __val);
14984 # 651 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
14985 template<typename _RandomAccessIter, typename _Integer, typename _Tp>
14987 __search_n(_RandomAccessIter __first, _RandomAccessIter __last,
14988 _Integer __count, const _Tp& __val,
14989 std::random_access_iterator_tag)
14992 typedef typename std::iterator_traits<_RandomAccessIter>::difference_type
14995 _DistanceType __tailSize = __last - __first;
14996 const _DistanceType __pattSize = __count;
14998 if (__tailSize < __pattSize)
15001 const _DistanceType __skipOffset = __pattSize - 1;
15002 _RandomAccessIter __lookAhead = __first + __skipOffset;
15003 __tailSize -= __pattSize;
15009 while (!(*__lookAhead == __val))
15011 if (__tailSize < __pattSize)
15013 __lookAhead += __pattSize;
15014 __tailSize -= __pattSize;
15016 _DistanceType __remainder = __skipOffset;
15017 for (_RandomAccessIter __backTrack = __lookAhead - 1;
15018 *__backTrack == __val; --__backTrack)
15020 if (--__remainder == 0)
15021 return (__lookAhead - __skipOffset);
15023 if (__remainder > __tailSize)
15025 __lookAhead += __remainder;
15026 __tailSize -= __remainder;
15029 # 709 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15030 template<typename _ForwardIterator, typename _Integer, typename _Tp>
15032 search_n(_ForwardIterator __first, _ForwardIterator __last,
15033 _Integer __count, const _Tp& __val)
15044 return std::find(__first, __last, __val);
15045 return std::__search_n(__first, __last, __count, __val,
15046 std::__iterator_category(__first));
15048 # 736 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15049 template<typename _ForwardIterator, typename _Integer, typename _Tp,
15050 typename _BinaryPredicate>
15052 __search_n(_ForwardIterator __first, _ForwardIterator __last,
15053 _Integer __count, const _Tp& __val,
15054 _BinaryPredicate __binary_pred, std::forward_iterator_tag)
15056 while (__first != __last && !__binary_pred(*__first, __val))
15059 while (__first != __last)
15061 typename iterator_traits<_ForwardIterator>::difference_type
15063 _ForwardIterator __i = __first;
15065 while (__i != __last && __n != 1 && __binary_pred(*__i, __val))
15075 while (__first != __last && !__binary_pred(*__first, __val))
15080 # 776 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15081 template<typename _RandomAccessIter, typename _Integer, typename _Tp,
15082 typename _BinaryPredicate>
15084 __search_n(_RandomAccessIter __first, _RandomAccessIter __last,
15085 _Integer __count, const _Tp& __val,
15086 _BinaryPredicate __binary_pred, std::random_access_iterator_tag)
15089 typedef typename std::iterator_traits<_RandomAccessIter>::difference_type
15092 _DistanceType __tailSize = __last - __first;
15093 const _DistanceType __pattSize = __count;
15095 if (__tailSize < __pattSize)
15098 const _DistanceType __skipOffset = __pattSize - 1;
15099 _RandomAccessIter __lookAhead = __first + __skipOffset;
15100 __tailSize -= __pattSize;
15106 while (!__binary_pred(*__lookAhead, __val))
15108 if (__tailSize < __pattSize)
15110 __lookAhead += __pattSize;
15111 __tailSize -= __pattSize;
15113 _DistanceType __remainder = __skipOffset;
15114 for (_RandomAccessIter __backTrack = __lookAhead - 1;
15115 __binary_pred(*__backTrack, __val); --__backTrack)
15117 if (--__remainder == 0)
15118 return (__lookAhead - __skipOffset);
15120 if (__remainder > __tailSize)
15122 __lookAhead += __remainder;
15123 __tailSize -= __remainder;
15126 # 837 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15127 template<typename _ForwardIterator, typename _Integer, typename _Tp,
15128 typename _BinaryPredicate>
15130 search_n(_ForwardIterator __first, _ForwardIterator __last,
15131 _Integer __count, const _Tp& __val,
15132 _BinaryPredicate __binary_pred)
15144 while (__first != __last && !__binary_pred(*__first, __val))
15148 return std::__search_n(__first, __last, __count, __val, __binary_pred,
15149 std::__iterator_category(__first));
15151 # 873 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15152 template<typename _ForwardIterator1, typename _ForwardIterator2>
15154 swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
15155 _ForwardIterator2 __first2)
15170 for ( ; __first1 != __last1; ++__first1, ++__first2)
15171 std::iter_swap(__first1, __first2);
15174 # 911 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15175 template<typename _InputIterator, typename _OutputIterator,
15176 typename _UnaryOperation>
15178 transform(_InputIterator __first, _InputIterator __last,
15179 _OutputIterator __result, _UnaryOperation __unary_op)
15188 for ( ; __first != __last; ++__first, ++__result)
15189 *__result = __unary_op(*__first);
15192 # 946 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15193 template<typename _InputIterator1, typename _InputIterator2,
15194 typename _OutputIterator, typename _BinaryOperation>
15196 transform(_InputIterator1 __first1, _InputIterator1 __last1,
15197 _InputIterator2 __first2, _OutputIterator __result,
15198 _BinaryOperation __binary_op)
15208 for ( ; __first1 != __last1; ++__first1, ++__first2, ++__result)
15209 *__result = __binary_op(*__first1, *__first2);
15212 # 978 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15213 template<typename _ForwardIterator, typename _Tp>
15215 replace(_ForwardIterator __first, _ForwardIterator __last,
15216 const _Tp& __old_value, const _Tp& __new_value)
15227 for ( ; __first != __last; ++__first)
15228 if (*__first == __old_value)
15229 *__first = __new_value;
15231 # 1009 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15232 template<typename _ForwardIterator, typename _Predicate, typename _Tp>
15234 replace_if(_ForwardIterator __first, _ForwardIterator __last,
15235 _Predicate __pred, const _Tp& __new_value)
15246 for ( ; __first != __last; ++__first)
15247 if (__pred(*__first))
15248 *__first = __new_value;
15250 # 1042 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15251 template<typename _InputIterator, typename _OutputIterator, typename _Tp>
15253 replace_copy(_InputIterator __first, _InputIterator __last,
15254 _OutputIterator __result,
15255 const _Tp& __old_value, const _Tp& __new_value)
15265 for ( ; __first != __last; ++__first, ++__result)
15266 if (*__first == __old_value)
15267 *__result = __new_value;
15269 *__result = *__first;
15272 # 1078 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15273 template<typename _InputIterator, typename _OutputIterator,
15274 typename _Predicate, typename _Tp>
15276 replace_copy_if(_InputIterator __first, _InputIterator __last,
15277 _OutputIterator __result,
15278 _Predicate __pred, const _Tp& __new_value)
15288 for ( ; __first != __last; ++__first, ++__result)
15289 if (__pred(*__first))
15290 *__result = __new_value;
15292 *__result = *__first;
15295 # 1112 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15296 template<typename _ForwardIterator, typename _Generator>
15298 generate(_ForwardIterator __first, _ForwardIterator __last,
15307 for ( ; __first != __last; ++__first)
15308 *__first = __gen();
15310 # 1138 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15311 template<typename _OutputIterator, typename _Size, typename _Generator>
15313 generate_n(_OutputIterator __first, _Size __n, _Generator __gen)
15320 for ( ; __n > 0; --__n, ++__first)
15321 *__first = __gen();
15324 # 1165 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15325 template<typename _InputIterator, typename _OutputIterator, typename _Tp>
15327 remove_copy(_InputIterator __first, _InputIterator __last,
15328 _OutputIterator __result, const _Tp& __value)
15338 for ( ; __first != __last; ++__first)
15339 if (!(*__first == __value))
15341 *__result = *__first;
15346 # 1201 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15347 template<typename _InputIterator, typename _OutputIterator,
15348 typename _Predicate>
15350 remove_copy_if(_InputIterator __first, _InputIterator __last,
15351 _OutputIterator __result, _Predicate __pred)
15361 for ( ; __first != __last; ++__first)
15362 if (!__pred(*__first))
15364 *__result = *__first;
15369 # 1240 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15370 template<typename _ForwardIterator, typename _Tp>
15372 remove(_ForwardIterator __first, _ForwardIterator __last,
15373 const _Tp& __value)
15382 __first = std::find(__first, __last, __value);
15383 _ForwardIterator __i = __first;
15384 return __first == __last ? __first
15385 : std::remove_copy(++__i, __last,
15388 # 1275 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15389 template<typename _ForwardIterator, typename _Predicate>
15391 remove_if(_ForwardIterator __first, _ForwardIterator __last,
15401 __first = std::find_if(__first, __last, __pred);
15402 _ForwardIterator __i = __first;
15403 return __first == __last ? __first
15404 : std::remove_copy_if(++__i, __last,
15407 # 1301 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15408 template<typename _InputIterator, typename _OutputIterator>
15410 __unique_copy(_InputIterator __first, _InputIterator __last,
15411 _OutputIterator __result,
15412 output_iterator_tag)
15415 typename iterator_traits<_InputIterator>::value_type __value = *__first;
15416 *__result = __value;
15417 while (++__first != __last)
15418 if (!(__value == *__first))
15420 __value = *__first;
15421 *++__result = __value;
15425 # 1326 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15426 template<typename _InputIterator, typename _ForwardIterator>
15428 __unique_copy(_InputIterator __first, _InputIterator __last,
15429 _ForwardIterator __result,
15430 forward_iterator_tag)
15433 *__result = *__first;
15434 while (++__first != __last)
15435 if (!(*__result == *__first))
15436 *++__result = *__first;
15439 # 1348 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15440 template<typename _InputIterator, typename _OutputIterator,
15441 typename _BinaryPredicate>
15443 __unique_copy(_InputIterator __first, _InputIterator __last,
15444 _OutputIterator __result,
15445 _BinaryPredicate __binary_pred,
15446 output_iterator_tag)
15453 typename iterator_traits<_InputIterator>::value_type __value = *__first;
15454 *__result = __value;
15455 while (++__first != __last)
15456 if (!__binary_pred(__value, *__first))
15458 __value = *__first;
15459 *++__result = __value;
15463 # 1380 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15464 template<typename _InputIterator, typename _ForwardIterator,
15465 typename _BinaryPredicate>
15467 __unique_copy(_InputIterator __first, _InputIterator __last,
15468 _ForwardIterator __result,
15469 _BinaryPredicate __binary_pred,
15470 forward_iterator_tag)
15477 *__result = *__first;
15478 while (++__first != __last)
15479 if (!__binary_pred(*__result, *__first)) *++__result = *__first;
15482 # 1412 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15483 template<typename _InputIterator, typename _OutputIterator>
15484 inline _OutputIterator
15485 unique_copy(_InputIterator __first, _InputIterator __last,
15486 _OutputIterator __result)
15496 typedef typename iterator_traits<_OutputIterator>::iterator_category
15499 if (__first == __last) return __result;
15500 return std::__unique_copy(__first, __last, __result, _IterType());
15502 # 1447 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15503 template<typename _InputIterator, typename _OutputIterator,
15504 typename _BinaryPredicate>
15505 inline _OutputIterator
15506 unique_copy(_InputIterator __first, _InputIterator __last,
15507 _OutputIterator __result,
15508 _BinaryPredicate __binary_pred)
15516 typedef typename iterator_traits<_OutputIterator>::iterator_category
15519 if (__first == __last) return __result;
15520 return std::__unique_copy(__first, __last, __result,
15521 __binary_pred, _IterType());
15523 # 1481 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15524 template<typename _ForwardIterator>
15526 unique(_ForwardIterator __first, _ForwardIterator __last)
15536 __first = std::adjacent_find(__first, __last);
15537 if (__first == __last)
15541 _ForwardIterator __dest = __first;
15543 while (++__first != __last)
15544 if (!(*__dest == *__first))
15545 *++__dest = *__first;
15548 # 1520 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15549 template<typename _ForwardIterator, typename _BinaryPredicate>
15551 unique(_ForwardIterator __first, _ForwardIterator __last,
15552 _BinaryPredicate __binary_pred)
15563 __first = std::adjacent_find(__first, __last, __binary_pred);
15564 if (__first == __last)
15568 _ForwardIterator __dest = __first;
15570 while (++__first != __last)
15571 if (!__binary_pred(*__dest, *__first))
15572 *++__dest = *__first;
15575 # 1554 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15576 template<typename _BidirectionalIterator>
15578 __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last,
15579 bidirectional_iterator_tag)
15582 if (__first == __last || __first == --__last)
15586 std::iter_swap(__first, __last);
15590 # 1576 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15591 template<typename _RandomAccessIterator>
15593 __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last,
15594 random_access_iterator_tag)
15596 if (__first == __last)
15599 while (__first < __last)
15601 std::iter_swap(__first, __last);
15606 # 1603 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15607 template<typename _BidirectionalIterator>
15609 reverse(_BidirectionalIterator __first, _BidirectionalIterator __last)
15615 std::__reverse(__first, __last, std::__iterator_category(__first));
15617 # 1629 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15618 template<typename _BidirectionalIterator, typename _OutputIterator>
15620 reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last,
15621 _OutputIterator __result)
15630 while (__first != __last)
15633 *__result = *__last;
15638 # 1657 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15639 template<typename _EuclideanRingElement>
15640 _EuclideanRingElement
15641 __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
15645 _EuclideanRingElement __t = __m % __n;
15657 template<typename _ForwardIterator>
15659 __rotate(_ForwardIterator __first,
15660 _ForwardIterator __middle,
15661 _ForwardIterator __last,
15662 forward_iterator_tag)
15664 if (__first == __middle || __last == __middle)
15667 _ForwardIterator __first2 = __middle;
15670 swap(*__first, *__first2);
15673 if (__first == __middle)
15674 __middle = __first2;
15676 while (__first2 != __last);
15678 __first2 = __middle;
15680 while (__first2 != __last)
15682 swap(*__first, *__first2);
15685 if (__first == __middle)
15686 __middle = __first2;
15687 else if (__first2 == __last)
15688 __first2 = __middle;
15697 template<typename _BidirectionalIterator>
15699 __rotate(_BidirectionalIterator __first,
15700 _BidirectionalIterator __middle,
15701 _BidirectionalIterator __last,
15702 bidirectional_iterator_tag)
15708 if (__first == __middle || __last == __middle)
15711 std::__reverse(__first, __middle, bidirectional_iterator_tag());
15712 std::__reverse(__middle, __last, bidirectional_iterator_tag());
15714 while (__first != __middle && __middle != __last)
15716 swap(*__first, *--__last);
15720 if (__first == __middle)
15721 std::__reverse(__middle, __last, bidirectional_iterator_tag());
15723 std::__reverse(__first, __middle, bidirectional_iterator_tag());
15731 template<typename _RandomAccessIterator>
15733 __rotate(_RandomAccessIterator __first,
15734 _RandomAccessIterator __middle,
15735 _RandomAccessIterator __last,
15736 random_access_iterator_tag)
15742 if (__first == __middle || __last == __middle)
15745 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
15747 typedef typename iterator_traits<_RandomAccessIterator>::value_type
15750 const _Distance __n = __last - __first;
15751 const _Distance __k = __middle - __first;
15752 const _Distance __l = __n - __k;
15756 std::swap_ranges(__first, __middle, __middle);
15760 const _Distance __d = __gcd(__n, __k);
15762 for (_Distance __i = 0; __i < __d; __i++)
15764 _ValueType __tmp = *__first;
15765 _RandomAccessIterator __p = __first;
15769 for (_Distance __j = 0; __j < __l / __d; __j++)
15771 if (__p > __first + __l)
15773 *__p = *(__p - __l);
15777 *__p = *(__p + __k);
15783 for (_Distance __j = 0; __j < __k / __d - 1; __j ++)
15785 if (__p < __last - __k)
15787 *__p = *(__p + __k);
15790 *__p = * (__p - __l);
15799 # 1836 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15800 template<typename _ForwardIterator>
15802 rotate(_ForwardIterator __first, _ForwardIterator __middle,
15803 _ForwardIterator __last)
15811 typedef typename iterator_traits<_ForwardIterator>::iterator_category
15813 std::__rotate(__first, __middle, __last, _IterType());
15815 # 1869 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15816 template<typename _ForwardIterator, typename _OutputIterator>
15818 rotate_copy(_ForwardIterator __first, _ForwardIterator __middle,
15819 _ForwardIterator __last, _OutputIterator __result)
15828 return std::copy(__first, __middle,
15829 std::copy(__middle, __last, __result));
15831 # 1895 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15832 template<typename _RandomAccessIterator>
15834 random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last)
15841 if (__first != __last)
15842 for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i)
15843 std::iter_swap(__i, __first + (std::rand() % ((__i - __first) + 1)));
15845 # 1922 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15846 template<typename _RandomAccessIterator, typename _RandomNumberGenerator>
15848 random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last,
15849 _RandomNumberGenerator& __rand)
15856 if (__first == __last)
15858 for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i)
15859 std::iter_swap(__i, __first + __rand((__i - __first) + 1));
15868 template<typename _ForwardIterator, typename _Predicate>
15870 __partition(_ForwardIterator __first, _ForwardIterator __last,
15872 forward_iterator_tag)
15874 if (__first == __last)
15877 while (__pred(*__first))
15878 if (++__first == __last)
15881 _ForwardIterator __next = __first;
15883 while (++__next != __last)
15884 if (__pred(*__next))
15886 swap(*__first, *__next);
15898 template<typename _BidirectionalIterator, typename _Predicate>
15899 _BidirectionalIterator
15900 __partition(_BidirectionalIterator __first, _BidirectionalIterator __last,
15902 bidirectional_iterator_tag)
15907 if (__first == __last)
15909 else if (__pred(*__first))
15915 if (__first == __last)
15917 else if (!__pred(*__last))
15921 std::iter_swap(__first, __last);
15925 # 2016 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
15926 template<typename _ForwardIterator, typename _Predicate>
15927 inline _ForwardIterator
15928 partition(_ForwardIterator __first, _ForwardIterator __last,
15938 return std::__partition(__first, __last, __pred,
15939 std::__iterator_category(__first));
15948 template<typename _ForwardIterator, typename _Predicate, typename _Distance>
15950 __inplace_stable_partition(_ForwardIterator __first,
15951 _ForwardIterator __last,
15952 _Predicate __pred, _Distance __len)
15955 return __pred(*__first) ? __last : __first;
15956 _ForwardIterator __middle = __first;
15957 std::advance(__middle, __len / 2);
15958 _ForwardIterator __begin = std::__inplace_stable_partition(__first,
15962 _ForwardIterator __end = std::__inplace_stable_partition(__middle, __last,
15966 std::rotate(__begin, __middle, __end);
15967 std::advance(__begin, std::distance(__middle, __end));
15976 template<typename _ForwardIterator, typename _Pointer, typename _Predicate,
15977 typename _Distance>
15979 __stable_partition_adaptive(_ForwardIterator __first,
15980 _ForwardIterator __last,
15981 _Predicate __pred, _Distance __len,
15983 _Distance __buffer_size)
15985 if (__len <= __buffer_size)
15987 _ForwardIterator __result1 = __first;
15988 _Pointer __result2 = __buffer;
15989 for ( ; __first != __last ; ++__first)
15990 if (__pred(*__first))
15992 *__result1 = *__first;
15997 *__result2 = *__first;
16000 std::copy(__buffer, __result2, __result1);
16005 _ForwardIterator __middle = __first;
16006 std::advance(__middle, __len / 2);
16007 _ForwardIterator __begin =
16008 std::__stable_partition_adaptive(__first, __middle, __pred,
16009 __len / 2, __buffer,
16011 _ForwardIterator __end =
16012 std::__stable_partition_adaptive(__middle, __last, __pred,
16014 __buffer, __buffer_size);
16015 std::rotate(__begin, __middle, __end);
16016 std::advance(__begin, std::distance(__middle, __end));
16020 # 2127 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
16021 template<typename _ForwardIterator, typename _Predicate>
16023 stable_partition(_ForwardIterator __first, _ForwardIterator __last,
16033 if (__first == __last)
16037 typedef typename iterator_traits<_ForwardIterator>::value_type
16039 typedef typename iterator_traits<_ForwardIterator>::difference_type
16042 _Temporary_buffer<_ForwardIterator, _ValueType> __buf(__first,
16044 if (__buf.size() > 0)
16046 std::__stable_partition_adaptive(__first, __last, __pred,
16047 _DistanceType(__buf.requested_size()),
16048 __buf.begin(), __buf.size());
16051 std::__inplace_stable_partition(__first, __last, __pred,
16052 _DistanceType(__buf.requested_size()));
16061 template<typename _RandomAccessIterator, typename _Tp>
16062 _RandomAccessIterator
16063 __unguarded_partition(_RandomAccessIterator __first,
16064 _RandomAccessIterator __last, _Tp __pivot)
16068 while (*__first < __pivot)
16071 while (__pivot < *__last)
16073 if (!(__first < __last))
16075 std::iter_swap(__first, __last);
16085 template<typename _RandomAccessIterator, typename _Tp, typename _Compare>
16086 _RandomAccessIterator
16087 __unguarded_partition(_RandomAccessIterator __first,
16088 _RandomAccessIterator __last,
16089 _Tp __pivot, _Compare __comp)
16093 while (__comp(*__first, __pivot))
16096 while (__comp(__pivot, *__last))
16098 if (!(__first < __last))
16100 std::iter_swap(__first, __last);
16111 enum { _S_threshold = 16 };
16118 template<typename _RandomAccessIterator, typename _Tp>
16120 __unguarded_linear_insert(_RandomAccessIterator __last, _Tp __val)
16122 _RandomAccessIterator __next = __last;
16124 while (__val < *__next)
16138 template<typename _RandomAccessIterator, typename _Tp, typename _Compare>
16140 __unguarded_linear_insert(_RandomAccessIterator __last, _Tp __val,
16143 _RandomAccessIterator __next = __last;
16145 while (__comp(__val, *__next))
16159 template<typename _RandomAccessIterator>
16161 __insertion_sort(_RandomAccessIterator __first,
16162 _RandomAccessIterator __last)
16164 if (__first == __last)
16167 for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i)
16169 typename iterator_traits<_RandomAccessIterator>::value_type
16171 if (__val < *__first)
16173 std::copy_backward(__first, __i, __i + 1);
16177 std::__unguarded_linear_insert(__i, __val);
16186 template<typename _RandomAccessIterator, typename _Compare>
16188 __insertion_sort(_RandomAccessIterator __first,
16189 _RandomAccessIterator __last, _Compare __comp)
16191 if (__first == __last) return;
16193 for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i)
16195 typename iterator_traits<_RandomAccessIterator>::value_type
16197 if (__comp(__val, *__first))
16199 std::copy_backward(__first, __i, __i + 1);
16203 std::__unguarded_linear_insert(__i, __val, __comp);
16212 template<typename _RandomAccessIterator>
16214 __unguarded_insertion_sort(_RandomAccessIterator __first,
16215 _RandomAccessIterator __last)
16217 typedef typename iterator_traits<_RandomAccessIterator>::value_type
16220 for (_RandomAccessIterator __i = __first; __i != __last; ++__i)
16221 std::__unguarded_linear_insert(__i, _ValueType(*__i));
16229 template<typename _RandomAccessIterator, typename _Compare>
16231 __unguarded_insertion_sort(_RandomAccessIterator __first,
16232 _RandomAccessIterator __last, _Compare __comp)
16234 typedef typename iterator_traits<_RandomAccessIterator>::value_type
16237 for (_RandomAccessIterator __i = __first; __i != __last; ++__i)
16238 std::__unguarded_linear_insert(__i, _ValueType(*__i), __comp);
16246 template<typename _RandomAccessIterator>
16248 __final_insertion_sort(_RandomAccessIterator __first,
16249 _RandomAccessIterator __last)
16251 if (__last - __first > int(_S_threshold))
16253 std::__insertion_sort(__first, __first + int(_S_threshold));
16254 std::__unguarded_insertion_sort(__first + int(_S_threshold), __last);
16257 std::__insertion_sort(__first, __last);
16265 template<typename _RandomAccessIterator, typename _Compare>
16267 __final_insertion_sort(_RandomAccessIterator __first,
16268 _RandomAccessIterator __last, _Compare __comp)
16270 if (__last - __first > int(_S_threshold))
16272 std::__insertion_sort(__first, __first + int(_S_threshold), __comp);
16273 std::__unguarded_insertion_sort(__first + int(_S_threshold), __last,
16277 std::__insertion_sort(__first, __last, __comp);
16285 template<typename _Size>
16290 for (__k = 0; __n != 1; __n >>= 1)
16294 # 2416 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
16295 template<typename _RandomAccessIterator>
16297 partial_sort(_RandomAccessIterator __first,
16298 _RandomAccessIterator __middle,
16299 _RandomAccessIterator __last)
16301 typedef typename iterator_traits<_RandomAccessIterator>::value_type
16311 std::make_heap(__first, __middle);
16312 for (_RandomAccessIterator __i = __middle; __i < __last; ++__i)
16313 if (*__i < *__first)
16314 std::__pop_heap(__first, __middle, __i, _ValueType(*__i));
16315 std::sort_heap(__first, __middle);
16317 # 2457 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
16318 template<typename _RandomAccessIterator, typename _Compare>
16320 partial_sort(_RandomAccessIterator __first,
16321 _RandomAccessIterator __middle,
16322 _RandomAccessIterator __last,
16325 typedef typename iterator_traits<_RandomAccessIterator>::value_type
16336 std::make_heap(__first, __middle, __comp);
16337 for (_RandomAccessIterator __i = __middle; __i < __last; ++__i)
16338 if (__comp(*__i, *__first))
16339 std::__pop_heap(__first, __middle, __i, _ValueType(*__i), __comp);
16340 std::sort_heap(__first, __middle, __comp);
16342 # 2499 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
16343 template<typename _InputIterator, typename _RandomAccessIterator>
16344 _RandomAccessIterator
16345 partial_sort_copy(_InputIterator __first, _InputIterator __last,
16346 _RandomAccessIterator __result_first,
16347 _RandomAccessIterator __result_last)
16349 typedef typename iterator_traits<_InputIterator>::value_type
16351 typedef typename iterator_traits<_RandomAccessIterator>::value_type
16353 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
16365 if (__result_first == __result_last)
16366 return __result_last;
16367 _RandomAccessIterator __result_real_last = __result_first;
16368 while(__first != __last && __result_real_last != __result_last)
16370 *__result_real_last = *__first;
16371 ++__result_real_last;
16374 std::make_heap(__result_first, __result_real_last);
16375 while (__first != __last)
16377 if (*__first < *__result_first)
16378 std::__adjust_heap(__result_first, _DistanceType(0),
16379 _DistanceType(__result_real_last
16381 _InputValueType(*__first));
16384 std::sort_heap(__result_first, __result_real_last);
16385 return __result_real_last;
16387 # 2563 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
16388 template<typename _InputIterator, typename _RandomAccessIterator, typename _Compare>
16389 _RandomAccessIterator
16390 partial_sort_copy(_InputIterator __first, _InputIterator __last,
16391 _RandomAccessIterator __result_first,
16392 _RandomAccessIterator __result_last,
16395 typedef typename iterator_traits<_InputIterator>::value_type
16397 typedef typename iterator_traits<_RandomAccessIterator>::value_type
16399 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
16413 if (__result_first == __result_last)
16414 return __result_last;
16415 _RandomAccessIterator __result_real_last = __result_first;
16416 while(__first != __last && __result_real_last != __result_last)
16418 *__result_real_last = *__first;
16419 ++__result_real_last;
16422 std::make_heap(__result_first, __result_real_last, __comp);
16423 while (__first != __last)
16425 if (__comp(*__first, *__result_first))
16426 std::__adjust_heap(__result_first, _DistanceType(0),
16427 _DistanceType(__result_real_last
16429 _InputValueType(*__first),
16433 std::sort_heap(__result_first, __result_real_last, __comp);
16434 return __result_real_last;
16442 template<typename _RandomAccessIterator, typename _Size>
16444 __introsort_loop(_RandomAccessIterator __first,
16445 _RandomAccessIterator __last,
16446 _Size __depth_limit)
16448 typedef typename iterator_traits<_RandomAccessIterator>::value_type
16451 while (__last - __first > int(_S_threshold))
16453 if (__depth_limit == 0)
16455 std::partial_sort(__first, __last, __last);
16459 _RandomAccessIterator __cut =
16460 std::__unguarded_partition(__first, __last,
16461 _ValueType(std::__median(*__first,
16468 std::__introsort_loop(__cut, __last, __depth_limit);
16478 template<typename _RandomAccessIterator, typename _Size, typename _Compare>
16480 __introsort_loop(_RandomAccessIterator __first,
16481 _RandomAccessIterator __last,
16482 _Size __depth_limit, _Compare __comp)
16484 typedef typename iterator_traits<_RandomAccessIterator>::value_type
16487 while (__last - __first > int(_S_threshold))
16489 if (__depth_limit == 0)
16491 std::partial_sort(__first, __last, __last, __comp);
16495 _RandomAccessIterator __cut =
16496 std::__unguarded_partition(__first, __last,
16497 _ValueType(std::__median(*__first,
16505 std::__introsort_loop(__cut, __last, __depth_limit, __comp);
16509 # 2698 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
16510 template<typename _RandomAccessIterator>
16512 sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
16514 typedef typename iterator_traits<_RandomAccessIterator>::value_type
16523 if (__first != __last)
16525 std::__introsort_loop(__first, __last, __lg(__last - __first) * 2);
16526 std::__final_insertion_sort(__first, __last);
16529 # 2732 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
16530 template<typename _RandomAccessIterator, typename _Compare>
16532 sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
16535 typedef typename iterator_traits<_RandomAccessIterator>::value_type
16545 if (__first != __last)
16547 std::__introsort_loop(__first, __last, __lg(__last - __first) * 2,
16549 std::__final_insertion_sort(__first, __last, __comp);
16552 # 2765 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
16553 template<typename _ForwardIterator, typename _Tp>
16555 lower_bound(_ForwardIterator __first, _ForwardIterator __last,
16558 typedef typename iterator_traits<_ForwardIterator>::value_type
16560 typedef typename iterator_traits<_ForwardIterator>::difference_type
16573 _DistanceType __len = std::distance(__first, __last);
16574 _DistanceType __half;
16575 _ForwardIterator __middle;
16579 __half = __len >> 1;
16580 __middle = __first;
16581 std::advance(__middle, __half);
16582 if (*__middle < __val)
16584 __first = __middle;
16586 __len = __len - __half - 1;
16593 # 2820 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
16594 template<typename _ForwardIterator, typename _Tp, typename _Compare>
16596 lower_bound(_ForwardIterator __first, _ForwardIterator __last,
16597 const _Tp& __val, _Compare __comp)
16599 typedef typename iterator_traits<_ForwardIterator>::value_type
16601 typedef typename iterator_traits<_ForwardIterator>::difference_type
16610 _DistanceType __len = std::distance(__first, __last);
16611 _DistanceType __half;
16612 _ForwardIterator __middle;
16616 __half = __len >> 1;
16617 __middle = __first;
16618 std::advance(__middle, __half);
16619 if (__comp(*__middle, __val))
16621 __first = __middle;
16623 __len = __len - __half - 1;
16630 # 2867 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
16631 template<typename _ForwardIterator, typename _Tp>
16633 upper_bound(_ForwardIterator __first, _ForwardIterator __last,
16636 typedef typename iterator_traits<_ForwardIterator>::value_type
16638 typedef typename iterator_traits<_ForwardIterator>::difference_type
16648 _DistanceType __len = std::distance(__first, __last);
16649 _DistanceType __half;
16650 _ForwardIterator __middle;
16654 __half = __len >> 1;
16655 __middle = __first;
16656 std::advance(__middle, __half);
16657 if (__val < *__middle)
16661 __first = __middle;
16663 __len = __len - __half - 1;
16668 # 2919 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
16669 template<typename _ForwardIterator, typename _Tp, typename _Compare>
16671 upper_bound(_ForwardIterator __first, _ForwardIterator __last,
16672 const _Tp& __val, _Compare __comp)
16674 typedef typename iterator_traits<_ForwardIterator>::value_type
16676 typedef typename iterator_traits<_ForwardIterator>::difference_type
16685 _DistanceType __len = std::distance(__first, __last);
16686 _DistanceType __half;
16687 _ForwardIterator __middle;
16691 __half = __len >> 1;
16692 __middle = __first;
16693 std::advance(__middle, __half);
16694 if (__comp(__val, *__middle))
16698 __first = __middle;
16700 __len = __len - __half - 1;
16711 template<typename _BidirectionalIterator, typename _Distance>
16713 __merge_without_buffer(_BidirectionalIterator __first,
16714 _BidirectionalIterator __middle,
16715 _BidirectionalIterator __last,
16716 _Distance __len1, _Distance __len2)
16718 if (__len1 == 0 || __len2 == 0)
16720 if (__len1 + __len2 == 2)
16722 if (*__middle < *__first)
16723 std::iter_swap(__first, __middle);
16726 _BidirectionalIterator __first_cut = __first;
16727 _BidirectionalIterator __second_cut = __middle;
16728 _Distance __len11 = 0;
16729 _Distance __len22 = 0;
16730 if (__len1 > __len2)
16732 __len11 = __len1 / 2;
16733 std::advance(__first_cut, __len11);
16734 __second_cut = std::lower_bound(__middle, __last, *__first_cut);
16735 __len22 = std::distance(__middle, __second_cut);
16739 __len22 = __len2 / 2;
16740 std::advance(__second_cut, __len22);
16741 __first_cut = std::upper_bound(__first, __middle, *__second_cut);
16742 __len11 = std::distance(__first, __first_cut);
16744 std::rotate(__first_cut, __middle, __second_cut);
16745 _BidirectionalIterator __new_middle = __first_cut;
16746 std::advance(__new_middle, std::distance(__middle, __second_cut));
16747 std::__merge_without_buffer(__first, __first_cut, __new_middle,
16749 std::__merge_without_buffer(__new_middle, __second_cut, __last,
16750 __len1 - __len11, __len2 - __len22);
16758 template<typename _BidirectionalIterator, typename _Distance,
16761 __merge_without_buffer(_BidirectionalIterator __first,
16762 _BidirectionalIterator __middle,
16763 _BidirectionalIterator __last,
16764 _Distance __len1, _Distance __len2,
16767 if (__len1 == 0 || __len2 == 0)
16769 if (__len1 + __len2 == 2)
16771 if (__comp(*__middle, *__first))
16772 std::iter_swap(__first, __middle);
16775 _BidirectionalIterator __first_cut = __first;
16776 _BidirectionalIterator __second_cut = __middle;
16777 _Distance __len11 = 0;
16778 _Distance __len22 = 0;
16779 if (__len1 > __len2)
16781 __len11 = __len1 / 2;
16782 std::advance(__first_cut, __len11);
16783 __second_cut = std::lower_bound(__middle, __last, *__first_cut,
16785 __len22 = std::distance(__middle, __second_cut);
16789 __len22 = __len2 / 2;
16790 std::advance(__second_cut, __len22);
16791 __first_cut = std::upper_bound(__first, __middle, *__second_cut,
16793 __len11 = std::distance(__first, __first_cut);
16795 std::rotate(__first_cut, __middle, __second_cut);
16796 _BidirectionalIterator __new_middle = __first_cut;
16797 std::advance(__new_middle, std::distance(__middle, __second_cut));
16798 std::__merge_without_buffer(__first, __first_cut, __new_middle,
16799 __len11, __len22, __comp);
16800 std::__merge_without_buffer(__new_middle, __second_cut, __last,
16801 __len1 - __len11, __len2 - __len22, __comp);
16809 template<typename _RandomAccessIterator>
16811 __inplace_stable_sort(_RandomAccessIterator __first,
16812 _RandomAccessIterator __last)
16814 if (__last - __first < 15)
16816 std::__insertion_sort(__first, __last);
16819 _RandomAccessIterator __middle = __first + (__last - __first) / 2;
16820 std::__inplace_stable_sort(__first, __middle);
16821 std::__inplace_stable_sort(__middle, __last);
16822 std::__merge_without_buffer(__first, __middle, __last,
16823 __middle - __first,
16824 __last - __middle);
16832 template<typename _RandomAccessIterator, typename _Compare>
16834 __inplace_stable_sort(_RandomAccessIterator __first,
16835 _RandomAccessIterator __last, _Compare __comp)
16837 if (__last - __first < 15)
16839 std::__insertion_sort(__first, __last, __comp);
16842 _RandomAccessIterator __middle = __first + (__last - __first) / 2;
16843 std::__inplace_stable_sort(__first, __middle, __comp);
16844 std::__inplace_stable_sort(__middle, __last, __comp);
16845 std::__merge_without_buffer(__first, __middle, __last,
16846 __middle - __first,
16850 # 3117 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
16851 template<typename _InputIterator1, typename _InputIterator2,
16852 typename _OutputIterator>
16854 merge(_InputIterator1 __first1, _InputIterator1 __last1,
16855 _InputIterator2 __first2, _InputIterator2 __last2,
16856 _OutputIterator __result)
16871 while (__first1 != __last1 && __first2 != __last2)
16873 if (*__first2 < *__first1)
16875 *__result = *__first2;
16880 *__result = *__first1;
16885 return std::copy(__first2, __last2, std::copy(__first1, __last1,
16888 # 3175 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
16889 template<typename _InputIterator1, typename _InputIterator2,
16890 typename _OutputIterator, typename _Compare>
16892 merge(_InputIterator1 __first1, _InputIterator1 __last1,
16893 _InputIterator2 __first2, _InputIterator2 __last2,
16894 _OutputIterator __result, _Compare __comp)
16910 while (__first1 != __last1 && __first2 != __last2)
16912 if (__comp(*__first2, *__first1))
16914 *__result = *__first2;
16919 *__result = *__first1;
16924 return std::copy(__first2, __last2, std::copy(__first1, __last1,
16928 template<typename _RandomAccessIterator1, typename _RandomAccessIterator2,
16929 typename _Distance>
16931 __merge_sort_loop(_RandomAccessIterator1 __first,
16932 _RandomAccessIterator1 __last,
16933 _RandomAccessIterator2 __result,
16934 _Distance __step_size)
16936 const _Distance __two_step = 2 * __step_size;
16938 while (__last - __first >= __two_step)
16940 __result = std::merge(__first, __first + __step_size,
16941 __first + __step_size, __first + __two_step,
16943 __first += __two_step;
16946 __step_size = std::min(_Distance(__last - __first), __step_size);
16947 std::merge(__first, __first + __step_size, __first + __step_size, __last,
16951 template<typename _RandomAccessIterator1, typename _RandomAccessIterator2,
16952 typename _Distance, typename _Compare>
16954 __merge_sort_loop(_RandomAccessIterator1 __first,
16955 _RandomAccessIterator1 __last,
16956 _RandomAccessIterator2 __result, _Distance __step_size,
16959 const _Distance __two_step = 2 * __step_size;
16961 while (__last - __first >= __two_step)
16963 __result = std::merge(__first, __first + __step_size,
16964 __first + __step_size, __first + __two_step,
16967 __first += __two_step;
16969 __step_size = std::min(_Distance(__last - __first), __step_size);
16971 std::merge(__first, __first + __step_size,
16972 __first + __step_size, __last,
16977 enum { _S_chunk_size = 7 };
16979 template<typename _RandomAccessIterator, typename _Distance>
16981 __chunk_insertion_sort(_RandomAccessIterator __first,
16982 _RandomAccessIterator __last,
16983 _Distance __chunk_size)
16985 while (__last - __first >= __chunk_size)
16987 std::__insertion_sort(__first, __first + __chunk_size);
16988 __first += __chunk_size;
16990 std::__insertion_sort(__first, __last);
16993 template<typename _RandomAccessIterator, typename _Distance, typename _Compare>
16995 __chunk_insertion_sort(_RandomAccessIterator __first,
16996 _RandomAccessIterator __last,
16997 _Distance __chunk_size, _Compare __comp)
16999 while (__last - __first >= __chunk_size)
17001 std::__insertion_sort(__first, __first + __chunk_size, __comp);
17002 __first += __chunk_size;
17004 std::__insertion_sort(__first, __last, __comp);
17007 template<typename _RandomAccessIterator, typename _Pointer>
17009 __merge_sort_with_buffer(_RandomAccessIterator __first,
17010 _RandomAccessIterator __last,
17013 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
17016 const _Distance __len = __last - __first;
17017 const _Pointer __buffer_last = __buffer + __len;
17019 _Distance __step_size = _S_chunk_size;
17020 std::__chunk_insertion_sort(__first, __last, __step_size);
17022 while (__step_size < __len)
17024 std::__merge_sort_loop(__first, __last, __buffer, __step_size);
17026 std::__merge_sort_loop(__buffer, __buffer_last, __first, __step_size);
17031 template<typename _RandomAccessIterator, typename _Pointer, typename _Compare>
17033 __merge_sort_with_buffer(_RandomAccessIterator __first,
17034 _RandomAccessIterator __last,
17035 _Pointer __buffer, _Compare __comp)
17037 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
17040 const _Distance __len = __last - __first;
17041 const _Pointer __buffer_last = __buffer + __len;
17043 _Distance __step_size = _S_chunk_size;
17044 std::__chunk_insertion_sort(__first, __last, __step_size, __comp);
17046 while (__step_size < __len)
17048 std::__merge_sort_loop(__first, __last, __buffer,
17049 __step_size, __comp);
17051 std::__merge_sort_loop(__buffer, __buffer_last, __first,
17052 __step_size, __comp);
17062 template<typename _BidirectionalIterator1, typename _BidirectionalIterator2,
17063 typename _BidirectionalIterator3>
17064 _BidirectionalIterator3
17065 __merge_backward(_BidirectionalIterator1 __first1,
17066 _BidirectionalIterator1 __last1,
17067 _BidirectionalIterator2 __first2,
17068 _BidirectionalIterator2 __last2,
17069 _BidirectionalIterator3 __result)
17071 if (__first1 == __last1)
17072 return std::copy_backward(__first2, __last2, __result);
17073 if (__first2 == __last2)
17074 return std::copy_backward(__first1, __last1, __result);
17079 if (*__last2 < *__last1)
17081 *--__result = *__last1;
17082 if (__first1 == __last1)
17083 return std::copy_backward(__first2, ++__last2, __result);
17088 *--__result = *__last2;
17089 if (__first2 == __last2)
17090 return std::copy_backward(__first1, ++__last1, __result);
17101 template<typename _BidirectionalIterator1, typename _BidirectionalIterator2,
17102 typename _BidirectionalIterator3, typename _Compare>
17103 _BidirectionalIterator3
17104 __merge_backward(_BidirectionalIterator1 __first1,
17105 _BidirectionalIterator1 __last1,
17106 _BidirectionalIterator2 __first2,
17107 _BidirectionalIterator2 __last2,
17108 _BidirectionalIterator3 __result,
17111 if (__first1 == __last1)
17112 return std::copy_backward(__first2, __last2, __result);
17113 if (__first2 == __last2)
17114 return std::copy_backward(__first1, __last1, __result);
17119 if (__comp(*__last2, *__last1))
17121 *--__result = *__last1;
17122 if (__first1 == __last1)
17123 return std::copy_backward(__first2, ++__last2, __result);
17128 *--__result = *__last2;
17129 if (__first2 == __last2)
17130 return std::copy_backward(__first1, ++__last1, __result);
17141 template<typename _BidirectionalIterator1, typename _BidirectionalIterator2,
17142 typename _Distance>
17143 _BidirectionalIterator1
17144 __rotate_adaptive(_BidirectionalIterator1 __first,
17145 _BidirectionalIterator1 __middle,
17146 _BidirectionalIterator1 __last,
17147 _Distance __len1, _Distance __len2,
17148 _BidirectionalIterator2 __buffer,
17149 _Distance __buffer_size)
17151 _BidirectionalIterator2 __buffer_end;
17152 if (__len1 > __len2 && __len2 <= __buffer_size)
17154 __buffer_end = std::copy(__middle, __last, __buffer);
17155 std::copy_backward(__first, __middle, __last);
17156 return std::copy(__buffer, __buffer_end, __first);
17158 else if (__len1 <= __buffer_size)
17160 __buffer_end = std::copy(__first, __middle, __buffer);
17161 std::copy(__middle, __last, __first);
17162 return std::copy_backward(__buffer, __buffer_end, __last);
17166 std::rotate(__first, __middle, __last);
17167 std::advance(__first, std::distance(__middle, __last));
17177 template<typename _BidirectionalIterator, typename _Distance,
17180 __merge_adaptive(_BidirectionalIterator __first,
17181 _BidirectionalIterator __middle,
17182 _BidirectionalIterator __last,
17183 _Distance __len1, _Distance __len2,
17184 _Pointer __buffer, _Distance __buffer_size)
17186 if (__len1 <= __len2 && __len1 <= __buffer_size)
17188 _Pointer __buffer_end = std::copy(__first, __middle, __buffer);
17189 std::merge(__buffer, __buffer_end, __middle, __last, __first);
17191 else if (__len2 <= __buffer_size)
17193 _Pointer __buffer_end = std::copy(__middle, __last, __buffer);
17194 std::__merge_backward(__first, __middle, __buffer,
17195 __buffer_end, __last);
17199 _BidirectionalIterator __first_cut = __first;
17200 _BidirectionalIterator __second_cut = __middle;
17201 _Distance __len11 = 0;
17202 _Distance __len22 = 0;
17203 if (__len1 > __len2)
17205 __len11 = __len1 / 2;
17206 std::advance(__first_cut, __len11);
17207 __second_cut = std::lower_bound(__middle, __last,
17209 __len22 = std::distance(__middle, __second_cut);
17213 __len22 = __len2 / 2;
17214 std::advance(__second_cut, __len22);
17215 __first_cut = std::upper_bound(__first, __middle,
17217 __len11 = std::distance(__first, __first_cut);
17219 _BidirectionalIterator __new_middle =
17220 std::__rotate_adaptive(__first_cut, __middle, __second_cut,
17221 __len1 - __len11, __len22, __buffer,
17223 std::__merge_adaptive(__first, __first_cut, __new_middle, __len11,
17224 __len22, __buffer, __buffer_size);
17225 std::__merge_adaptive(__new_middle, __second_cut, __last,
17227 __len2 - __len22, __buffer, __buffer_size);
17236 template<typename _BidirectionalIterator, typename _Distance, typename _Pointer,
17239 __merge_adaptive(_BidirectionalIterator __first,
17240 _BidirectionalIterator __middle,
17241 _BidirectionalIterator __last,
17242 _Distance __len1, _Distance __len2,
17243 _Pointer __buffer, _Distance __buffer_size,
17246 if (__len1 <= __len2 && __len1 <= __buffer_size)
17248 _Pointer __buffer_end = std::copy(__first, __middle, __buffer);
17249 std::merge(__buffer, __buffer_end, __middle, __last, __first, __comp);
17251 else if (__len2 <= __buffer_size)
17253 _Pointer __buffer_end = std::copy(__middle, __last, __buffer);
17254 std::__merge_backward(__first, __middle, __buffer, __buffer_end,
17259 _BidirectionalIterator __first_cut = __first;
17260 _BidirectionalIterator __second_cut = __middle;
17261 _Distance __len11 = 0;
17262 _Distance __len22 = 0;
17263 if (__len1 > __len2)
17265 __len11 = __len1 / 2;
17266 std::advance(__first_cut, __len11);
17267 __second_cut = std::lower_bound(__middle, __last, *__first_cut,
17269 __len22 = std::distance(__middle, __second_cut);
17273 __len22 = __len2 / 2;
17274 std::advance(__second_cut, __len22);
17275 __first_cut = std::upper_bound(__first, __middle, *__second_cut,
17277 __len11 = std::distance(__first, __first_cut);
17279 _BidirectionalIterator __new_middle =
17280 std::__rotate_adaptive(__first_cut, __middle, __second_cut,
17281 __len1 - __len11, __len22, __buffer,
17283 std::__merge_adaptive(__first, __first_cut, __new_middle, __len11,
17284 __len22, __buffer, __buffer_size, __comp);
17285 std::__merge_adaptive(__new_middle, __second_cut, __last,
17287 __len2 - __len22, __buffer,
17288 __buffer_size, __comp);
17291 # 3595 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17292 template<typename _BidirectionalIterator>
17294 inplace_merge(_BidirectionalIterator __first,
17295 _BidirectionalIterator __middle,
17296 _BidirectionalIterator __last)
17298 typedef typename iterator_traits<_BidirectionalIterator>::value_type
17300 typedef typename iterator_traits<_BidirectionalIterator>::difference_type
17310 if (__first == __middle || __middle == __last)
17313 _DistanceType __len1 = std::distance(__first, __middle);
17314 _DistanceType __len2 = std::distance(__middle, __last);
17316 _Temporary_buffer<_BidirectionalIterator, _ValueType> __buf(__first,
17318 if (__buf.begin() == 0)
17319 std::__merge_without_buffer(__first, __middle, __last, __len1, __len2);
17321 std::__merge_adaptive(__first, __middle, __last, __len1, __len2,
17322 __buf.begin(), _DistanceType(__buf.size()));
17324 # 3649 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17325 template<typename _BidirectionalIterator, typename _Compare>
17327 inplace_merge(_BidirectionalIterator __first,
17328 _BidirectionalIterator __middle,
17329 _BidirectionalIterator __last,
17332 typedef typename iterator_traits<_BidirectionalIterator>::value_type
17334 typedef typename iterator_traits<_BidirectionalIterator>::difference_type
17345 if (__first == __middle || __middle == __last)
17348 const _DistanceType __len1 = std::distance(__first, __middle);
17349 const _DistanceType __len2 = std::distance(__middle, __last);
17351 _Temporary_buffer<_BidirectionalIterator, _ValueType> __buf(__first,
17353 if (__buf.begin() == 0)
17354 std::__merge_without_buffer(__first, __middle, __last, __len1,
17357 std::__merge_adaptive(__first, __middle, __last, __len1, __len2,
17358 __buf.begin(), _DistanceType(__buf.size()),
17362 template<typename _RandomAccessIterator, typename _Pointer,
17363 typename _Distance>
17365 __stable_sort_adaptive(_RandomAccessIterator __first,
17366 _RandomAccessIterator __last,
17367 _Pointer __buffer, _Distance __buffer_size)
17369 const _Distance __len = (__last - __first + 1) / 2;
17370 const _RandomAccessIterator __middle = __first + __len;
17371 if (__len > __buffer_size)
17373 std::__stable_sort_adaptive(__first, __middle,
17374 __buffer, __buffer_size);
17375 std::__stable_sort_adaptive(__middle, __last,
17376 __buffer, __buffer_size);
17380 std::__merge_sort_with_buffer(__first, __middle, __buffer);
17381 std::__merge_sort_with_buffer(__middle, __last, __buffer);
17383 std::__merge_adaptive(__first, __middle, __last,
17384 _Distance(__middle - __first),
17385 _Distance(__last - __middle),
17386 __buffer, __buffer_size);
17389 template<typename _RandomAccessIterator, typename _Pointer,
17390 typename _Distance, typename _Compare>
17392 __stable_sort_adaptive(_RandomAccessIterator __first,
17393 _RandomAccessIterator __last,
17394 _Pointer __buffer, _Distance __buffer_size,
17397 const _Distance __len = (__last - __first + 1) / 2;
17398 const _RandomAccessIterator __middle = __first + __len;
17399 if (__len > __buffer_size)
17401 std::__stable_sort_adaptive(__first, __middle, __buffer,
17402 __buffer_size, __comp);
17403 std::__stable_sort_adaptive(__middle, __last, __buffer,
17404 __buffer_size, __comp);
17408 std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp);
17409 std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp);
17411 std::__merge_adaptive(__first, __middle, __last,
17412 _Distance(__middle - __first),
17413 _Distance(__last - __middle),
17414 __buffer, __buffer_size,
17417 # 3758 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17418 template<typename _RandomAccessIterator>
17420 stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
17422 typedef typename iterator_traits<_RandomAccessIterator>::value_type
17424 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
17433 _Temporary_buffer<_RandomAccessIterator, _ValueType>
17434 buf(__first, __last);
17435 if (buf.begin() == 0)
17436 std::__inplace_stable_sort(__first, __last);
17438 std::__stable_sort_adaptive(__first, __last, buf.begin(),
17439 _DistanceType(buf.size()));
17441 # 3799 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17442 template<typename _RandomAccessIterator, typename _Compare>
17444 stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
17447 typedef typename iterator_traits<_RandomAccessIterator>::value_type
17449 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
17460 _Temporary_buffer<_RandomAccessIterator, _ValueType> buf(__first, __last);
17461 if (buf.begin() == 0)
17462 std::__inplace_stable_sort(__first, __last, __comp);
17464 std::__stable_sort_adaptive(__first, __last, buf.begin(),
17465 _DistanceType(buf.size()), __comp);
17467 # 3840 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17468 template<typename _RandomAccessIterator>
17470 nth_element(_RandomAccessIterator __first,
17471 _RandomAccessIterator __nth,
17472 _RandomAccessIterator __last)
17474 typedef typename iterator_traits<_RandomAccessIterator>::value_type
17484 while (__last - __first > 3)
17486 _RandomAccessIterator __cut =
17487 std::__unguarded_partition(__first, __last,
17488 _ValueType(std::__median(*__first,
17495 if (__cut <= __nth)
17500 std::__insertion_sort(__first, __last);
17502 # 3891 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17503 template<typename _RandomAccessIterator, typename _Compare>
17505 nth_element(_RandomAccessIterator __first,
17506 _RandomAccessIterator __nth,
17507 _RandomAccessIterator __last,
17510 typedef typename iterator_traits<_RandomAccessIterator>::value_type
17521 while (__last - __first > 3)
17523 _RandomAccessIterator __cut =
17524 std::__unguarded_partition(__first, __last,
17525 _ValueType(std::__median(*__first,
17532 if (__cut <= __nth)
17537 std::__insertion_sort(__first, __last, __comp);
17539 # 3944 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17540 template<typename _ForwardIterator, typename _Tp>
17541 pair<_ForwardIterator, _ForwardIterator>
17542 equal_range(_ForwardIterator __first, _ForwardIterator __last,
17545 typedef typename iterator_traits<_ForwardIterator>::value_type
17547 typedef typename iterator_traits<_ForwardIterator>::difference_type
17557 _DistanceType __len = std::distance(__first, __last);
17558 _DistanceType __half;
17559 _ForwardIterator __middle, __left, __right;
17563 __half = __len >> 1;
17564 __middle = __first;
17565 std::advance(__middle, __half);
17566 if (*__middle < __val)
17568 __first = __middle;
17570 __len = __len - __half - 1;
17572 else if (__val < *__middle)
17576 __left = std::lower_bound(__first, __middle, __val);
17577 std::advance(__first, __len);
17578 __right = std::upper_bound(++__middle, __first, __val);
17579 return pair<_ForwardIterator, _ForwardIterator>(__left, __right);
17582 return pair<_ForwardIterator, _ForwardIterator>(__first, __first);
17584 # 4006 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17585 template<typename _ForwardIterator, typename _Tp, typename _Compare>
17586 pair<_ForwardIterator, _ForwardIterator>
17587 equal_range(_ForwardIterator __first, _ForwardIterator __last,
17591 typedef typename iterator_traits<_ForwardIterator>::value_type
17593 typedef typename iterator_traits<_ForwardIterator>::difference_type
17604 _DistanceType __len = std::distance(__first, __last);
17605 _DistanceType __half;
17606 _ForwardIterator __middle, __left, __right;
17610 __half = __len >> 1;
17611 __middle = __first;
17612 std::advance(__middle, __half);
17613 if (__comp(*__middle, __val))
17615 __first = __middle;
17617 __len = __len - __half - 1;
17619 else if (__comp(__val, *__middle))
17623 __left = std::lower_bound(__first, __middle, __val, __comp);
17624 std::advance(__first, __len);
17625 __right = std::upper_bound(++__middle, __first, __val, __comp);
17626 return pair<_ForwardIterator, _ForwardIterator>(__left, __right);
17629 return pair<_ForwardIterator, _ForwardIterator>(__first, __first);
17631 # 4064 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17632 template<typename _ForwardIterator, typename _Tp>
17634 binary_search(_ForwardIterator __first, _ForwardIterator __last,
17645 _ForwardIterator __i = std::lower_bound(__first, __last, __val);
17646 return __i != __last && !(__val < *__i);
17648 # 4096 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17649 template<typename _ForwardIterator, typename _Tp, typename _Compare>
17651 binary_search(_ForwardIterator __first, _ForwardIterator __last,
17652 const _Tp& __val, _Compare __comp)
17662 _ForwardIterator __i = std::lower_bound(__first, __last, __val, __comp);
17663 return __i != __last && !__comp(__val, *__i);
17665 # 4134 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17666 template<typename _InputIterator1, typename _InputIterator2>
17668 includes(_InputIterator1 __first1, _InputIterator1 __last1,
17669 _InputIterator2 __first2, _InputIterator2 __last2)
17682 while (__first1 != __last1 && __first2 != __last2)
17683 if (*__first2 < *__first1)
17685 else if(*__first1 < *__first2)
17688 ++__first1, ++__first2;
17690 return __first2 == __last2;
17692 # 4180 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17693 template<typename _InputIterator1, typename _InputIterator2,
17696 includes(_InputIterator1 __first1, _InputIterator1 __last1,
17697 _InputIterator2 __first2, _InputIterator2 __last2, _Compare __comp)
17711 while (__first1 != __last1 && __first2 != __last2)
17712 if (__comp(*__first2, *__first1))
17714 else if(__comp(*__first1, *__first2))
17717 ++__first1, ++__first2;
17719 return __first2 == __last2;
17721 # 4226 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17722 template<typename _InputIterator1, typename _InputIterator2,
17723 typename _OutputIterator>
17725 set_union(_InputIterator1 __first1, _InputIterator1 __last1,
17726 _InputIterator2 __first2, _InputIterator2 __last2,
17727 _OutputIterator __result)
17742 while (__first1 != __last1 && __first2 != __last2)
17744 if (*__first1 < *__first2)
17746 *__result = *__first1;
17749 else if (*__first2 < *__first1)
17751 *__result = *__first2;
17756 *__result = *__first1;
17762 return std::copy(__first2, __last2, std::copy(__first1, __last1,
17765 # 4288 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17766 template<typename _InputIterator1, typename _InputIterator2,
17767 typename _OutputIterator, typename _Compare>
17769 set_union(_InputIterator1 __first1, _InputIterator1 __last1,
17770 _InputIterator2 __first2, _InputIterator2 __last2,
17771 _OutputIterator __result, _Compare __comp)
17787 while (__first1 != __last1 && __first2 != __last2)
17789 if (__comp(*__first1, *__first2))
17791 *__result = *__first1;
17794 else if (__comp(*__first2, *__first1))
17796 *__result = *__first2;
17801 *__result = *__first1;
17807 return std::copy(__first2, __last2, std::copy(__first1, __last1,
17810 # 4349 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17811 template<typename _InputIterator1, typename _InputIterator2,
17812 typename _OutputIterator>
17814 set_intersection(_InputIterator1 __first1, _InputIterator1 __last1,
17815 _InputIterator2 __first2, _InputIterator2 __last2,
17816 _OutputIterator __result)
17831 while (__first1 != __last1 && __first2 != __last2)
17832 if (*__first1 < *__first2)
17834 else if (*__first2 < *__first1)
17838 *__result = *__first1;
17845 # 4403 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17846 template<typename _InputIterator1, typename _InputIterator2,
17847 typename _OutputIterator, typename _Compare>
17849 set_intersection(_InputIterator1 __first1, _InputIterator1 __last1,
17850 _InputIterator2 __first2, _InputIterator2 __last2,
17851 _OutputIterator __result, _Compare __comp)
17867 while (__first1 != __last1 && __first2 != __last2)
17868 if (__comp(*__first1, *__first2))
17870 else if (__comp(*__first2, *__first1))
17874 *__result = *__first1;
17881 # 4457 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17882 template<typename _InputIterator1, typename _InputIterator2,
17883 typename _OutputIterator>
17885 set_difference(_InputIterator1 __first1, _InputIterator1 __last1,
17886 _InputIterator2 __first2, _InputIterator2 __last2,
17887 _OutputIterator __result)
17902 while (__first1 != __last1 && __first2 != __last2)
17903 if (*__first1 < *__first2)
17905 *__result = *__first1;
17909 else if (*__first2 < *__first1)
17916 return std::copy(__first1, __last1, __result);
17918 # 4515 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17919 template<typename _InputIterator1, typename _InputIterator2,
17920 typename _OutputIterator, typename _Compare>
17922 set_difference(_InputIterator1 __first1, _InputIterator1 __last1,
17923 _InputIterator2 __first2, _InputIterator2 __last2,
17924 _OutputIterator __result, _Compare __comp)
17940 while (__first1 != __last1 && __first2 != __last2)
17941 if (__comp(*__first1, *__first2))
17943 *__result = *__first1;
17947 else if (__comp(*__first2, *__first1))
17954 return std::copy(__first1, __last1, __result);
17956 # 4569 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17957 template<typename _InputIterator1, typename _InputIterator2,
17958 typename _OutputIterator>
17960 set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1,
17961 _InputIterator2 __first2, _InputIterator2 __last2,
17962 _OutputIterator __result)
17977 while (__first1 != __last1 && __first2 != __last2)
17978 if (*__first1 < *__first2)
17980 *__result = *__first1;
17984 else if (*__first2 < *__first1)
17986 *__result = *__first2;
17995 return std::copy(__first2, __last2, std::copy(__first1,
17996 __last1, __result));
17998 # 4630 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
17999 template<typename _InputIterator1, typename _InputIterator2,
18000 typename _OutputIterator, typename _Compare>
18002 set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1,
18003 _InputIterator2 __first2, _InputIterator2 __last2,
18004 _OutputIterator __result,
18021 while (__first1 != __last1 && __first2 != __last2)
18022 if (__comp(*__first1, *__first2))
18024 *__result = *__first1;
18028 else if (__comp(*__first2, *__first1))
18030 *__result = *__first2;
18039 return std::copy(__first2, __last2, std::copy(__first1,
18040 __last1, __result));
18042 # 4683 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
18043 template<typename _ForwardIterator>
18045 max_element(_ForwardIterator __first, _ForwardIterator __last)
18053 if (__first == __last)
18055 _ForwardIterator __result = __first;
18056 while (++__first != __last)
18057 if (*__result < *__first)
18058 __result = __first;
18061 # 4710 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
18062 template<typename _ForwardIterator, typename _Compare>
18064 max_element(_ForwardIterator __first, _ForwardIterator __last,
18074 if (__first == __last) return __first;
18075 _ForwardIterator __result = __first;
18076 while (++__first != __last)
18077 if (__comp(*__result, *__first)) __result = __first;
18087 template<typename _ForwardIterator>
18089 min_element(_ForwardIterator __first, _ForwardIterator __last)
18097 if (__first == __last)
18099 _ForwardIterator __result = __first;
18100 while (++__first != __last)
18101 if (*__first < *__result)
18102 __result = __first;
18105 # 4762 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
18106 template<typename _ForwardIterator, typename _Compare>
18108 min_element(_ForwardIterator __first, _ForwardIterator __last,
18118 if (__first == __last)
18120 _ForwardIterator __result = __first;
18121 while (++__first != __last)
18122 if (__comp(*__first, *__result))
18123 __result = __first;
18126 # 4797 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
18127 template<typename _BidirectionalIterator>
18129 next_permutation(_BidirectionalIterator __first,
18130 _BidirectionalIterator __last)
18139 if (__first == __last)
18141 _BidirectionalIterator __i = __first;
18150 _BidirectionalIterator __ii = __i;
18154 _BidirectionalIterator __j = __last;
18155 while (!(*__i < *--__j))
18157 std::iter_swap(__i, __j);
18158 std::reverse(__ii, __last);
18161 if (__i == __first)
18163 std::reverse(__first, __last);
18168 # 4853 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
18169 template<typename _BidirectionalIterator, typename _Compare>
18171 next_permutation(_BidirectionalIterator __first,
18172 _BidirectionalIterator __last, _Compare __comp)
18182 if (__first == __last)
18184 _BidirectionalIterator __i = __first;
18193 _BidirectionalIterator __ii = __i;
18195 if (__comp(*__i, *__ii))
18197 _BidirectionalIterator __j = __last;
18198 while (!__comp(*__i, *--__j))
18200 std::iter_swap(__i, __j);
18201 std::reverse(__ii, __last);
18204 if (__i == __first)
18206 std::reverse(__first, __last);
18211 # 4908 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
18212 template<typename _BidirectionalIterator>
18214 prev_permutation(_BidirectionalIterator __first,
18215 _BidirectionalIterator __last)
18224 if (__first == __last)
18226 _BidirectionalIterator __i = __first;
18235 _BidirectionalIterator __ii = __i;
18239 _BidirectionalIterator __j = __last;
18240 while (!(*--__j < *__i))
18242 std::iter_swap(__i, __j);
18243 std::reverse(__ii, __last);
18246 if (__i == __first)
18248 std::reverse(__first, __last);
18253 # 4964 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
18254 template<typename _BidirectionalIterator, typename _Compare>
18256 prev_permutation(_BidirectionalIterator __first,
18257 _BidirectionalIterator __last, _Compare __comp)
18267 if (__first == __last)
18269 _BidirectionalIterator __i = __first;
18278 _BidirectionalIterator __ii = __i;
18280 if (__comp(*__ii, *__i))
18282 _BidirectionalIterator __j = __last;
18283 while (!__comp(*--__j, *__i))
18285 std::iter_swap(__i, __j);
18286 std::reverse(__ii, __last);
18289 if (__i == __first)
18291 std::reverse(__first, __last);
18296 # 5023 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
18297 template<typename _InputIterator, typename _ForwardIterator>
18299 find_first_of(_InputIterator __first1, _InputIterator __last1,
18300 _ForwardIterator __first2, _ForwardIterator __last2)
18311 for ( ; __first1 != __last1; ++__first1)
18312 for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter)
18313 if (*__first1 == *__iter)
18317 # 5059 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
18318 template<typename _InputIterator, typename _ForwardIterator,
18319 typename _BinaryPredicate>
18321 find_first_of(_InputIterator __first1, _InputIterator __last1,
18322 _ForwardIterator __first2, _ForwardIterator __last2,
18323 _BinaryPredicate __comp)
18334 for ( ; __first1 != __last1; ++__first1)
18335 for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter)
18336 if (__comp(*__first1, *__iter))
18340 # 5089 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
18341 template<typename _ForwardIterator1, typename _ForwardIterator2>
18343 __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
18344 _ForwardIterator2 __first2, _ForwardIterator2 __last2,
18345 forward_iterator_tag, forward_iterator_tag)
18347 if (__first2 == __last2)
18351 _ForwardIterator1 __result = __last1;
18354 _ForwardIterator1 __new_result
18355 = std::search(__first1, __last1, __first2, __last2);
18356 if (__new_result == __last1)
18360 __result = __new_result;
18361 __first1 = __new_result;
18368 template<typename _ForwardIterator1, typename _ForwardIterator2,
18369 typename _BinaryPredicate>
18371 __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
18372 _ForwardIterator2 __first2, _ForwardIterator2 __last2,
18373 forward_iterator_tag, forward_iterator_tag,
18374 _BinaryPredicate __comp)
18376 if (__first2 == __last2)
18380 _ForwardIterator1 __result = __last1;
18383 _ForwardIterator1 __new_result
18384 = std::search(__first1, __last1, __first2, __last2, __comp);
18385 if (__new_result == __last1)
18389 __result = __new_result;
18390 __first1 = __new_result;
18398 template<typename _BidirectionalIterator1, typename _BidirectionalIterator2>
18399 _BidirectionalIterator1
18400 __find_end(_BidirectionalIterator1 __first1,
18401 _BidirectionalIterator1 __last1,
18402 _BidirectionalIterator2 __first2,
18403 _BidirectionalIterator2 __last2,
18404 bidirectional_iterator_tag, bidirectional_iterator_tag)
18412 typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1;
18413 typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2;
18415 _RevIterator1 __rlast1(__first1);
18416 _RevIterator2 __rlast2(__first2);
18417 _RevIterator1 __rresult = std::search(_RevIterator1(__last1), __rlast1,
18418 _RevIterator2(__last2), __rlast2);
18420 if (__rresult == __rlast1)
18424 _BidirectionalIterator1 __result = __rresult.base();
18425 std::advance(__result, -std::distance(__first2, __last2));
18430 template<typename _BidirectionalIterator1, typename _BidirectionalIterator2,
18431 typename _BinaryPredicate>
18432 _BidirectionalIterator1
18433 __find_end(_BidirectionalIterator1 __first1,
18434 _BidirectionalIterator1 __last1,
18435 _BidirectionalIterator2 __first2,
18436 _BidirectionalIterator2 __last2,
18437 bidirectional_iterator_tag, bidirectional_iterator_tag,
18438 _BinaryPredicate __comp)
18446 typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1;
18447 typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2;
18449 _RevIterator1 __rlast1(__first1);
18450 _RevIterator2 __rlast2(__first2);
18451 _RevIterator1 __rresult = std::search(_RevIterator1(__last1), __rlast1,
18452 _RevIterator2(__last2), __rlast2,
18455 if (__rresult == __rlast1)
18459 _BidirectionalIterator1 __result = __rresult.base();
18460 std::advance(__result, -std::distance(__first2, __last2));
18464 # 5239 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
18465 template<typename _ForwardIterator1, typename _ForwardIterator2>
18466 inline _ForwardIterator1
18467 find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
18468 _ForwardIterator2 __first2, _ForwardIterator2 __last2)
18479 return std::__find_end(__first1, __last1, __first2, __last2,
18480 std::__iterator_category(__first1),
18481 std::__iterator_category(__first2));
18483 # 5284 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/stl_algo.h" 3
18484 template<typename _ForwardIterator1, typename _ForwardIterator2,
18485 typename _BinaryPredicate>
18486 inline _ForwardIterator1
18487 find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
18488 _ForwardIterator2 __first2, _ForwardIterator2 __last2,
18489 _BinaryPredicate __comp)
18500 return std::__find_end(__first1, __last1, __first2, __last2,
18501 std::__iterator_category(__first1),
18502 std::__iterator_category(__first2),
18507 # 70 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/algorithm" 2 3
18509 #pragma GCC visibility pop
18510 # 57 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/string" 2 3
18511 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.tcc" 1 3
18512 # 46 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.tcc" 3
18514 # 47 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.tcc" 3
18518 template<typename _Type>
18520 __is_null_pointer(_Type* __ptr)
18521 { return __ptr == 0; }
18523 template<typename _Type>
18525 __is_null_pointer(_Type)
18528 template<typename _CharT, typename _Traits, typename _Alloc>
18529 const typename basic_string<_CharT, _Traits, _Alloc>::size_type
18530 basic_string<_CharT, _Traits, _Alloc>::
18531 _Rep::_S_max_size = (((npos - sizeof(_Rep_base))/sizeof(_CharT)) - 1) / 4;
18533 template<typename _CharT, typename _Traits, typename _Alloc>
18535 basic_string<_CharT, _Traits, _Alloc>::
18536 _Rep::_S_terminal = _CharT();
18538 template<typename _CharT, typename _Traits, typename _Alloc>
18539 const typename basic_string<_CharT, _Traits, _Alloc>::size_type
18540 basic_string<_CharT, _Traits, _Alloc>::npos;
18544 template<typename _CharT, typename _Traits, typename _Alloc>
18545 typename basic_string<_CharT, _Traits, _Alloc>::size_type
18546 basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_empty_rep_storage[
18547 (sizeof(_Rep_base) + sizeof(_CharT) + sizeof(size_type) - 1) /
18548 sizeof(size_type)];
18554 template<typename _CharT, typename _Traits, typename _Alloc>
18555 template<typename _InIterator>
18557 basic_string<_CharT, _Traits, _Alloc>::
18558 _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a,
18559 input_iterator_tag)
18562 if (__beg == __end && __a == _Alloc())
18563 return _S_empty_rep()._M_refdata();
18567 size_type __len = 0;
18568 while (__beg != __end && __len < sizeof(__buf) / sizeof(_CharT))
18570 __buf[__len++] = *__beg;
18573 _Rep* __r = _Rep::_S_create(__len, size_type(0), __a);
18574 _M_copy(__r->_M_refdata(), __buf, __len);
18577 while (__beg != __end)
18579 if (__len == __r->_M_capacity)
18582 _Rep* __another = _Rep::_S_create(__len + 1, __len, __a);
18583 _M_copy(__another->_M_refdata(), __r->_M_refdata(), __len);
18584 __r->_M_destroy(__a);
18587 __r->_M_refdata()[__len++] = *__beg;
18593 __r->_M_destroy(__a);
18596 __r->_M_set_length_and_sharable(__len);
18597 return __r->_M_refdata();
18600 template<typename _CharT, typename _Traits, typename _Alloc>
18601 template <typename _InIterator>
18603 basic_string<_CharT, _Traits, _Alloc>::
18604 _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a,
18605 forward_iterator_tag)
18608 if (__beg == __end && __a == _Alloc())
18609 return _S_empty_rep()._M_refdata();
18612 if (__builtin_expect(__is_null_pointer(__beg) && __beg != __end, 0))
18613 __throw_logic_error(("basic_string::_S_construct NULL not valid"));
18615 const size_type __dnew = static_cast<size_type>(std::distance(__beg,
18618 _Rep* __r = _Rep::_S_create(__dnew, size_type(0), __a);
18620 { _S_copy_chars(__r->_M_refdata(), __beg, __end); }
18623 __r->_M_destroy(__a);
18626 __r->_M_set_length_and_sharable(__dnew);
18627 return __r->_M_refdata();
18630 template<typename _CharT, typename _Traits, typename _Alloc>
18632 basic_string<_CharT, _Traits, _Alloc>::
18633 _S_construct(size_type __n, _CharT __c, const _Alloc& __a)
18636 if (__n == 0 && __a == _Alloc())
18637 return _S_empty_rep()._M_refdata();
18640 _Rep* __r = _Rep::_S_create(__n, size_type(0), __a);
18642 _M_assign(__r->_M_refdata(), __n, __c);
18644 __r->_M_set_length_and_sharable(__n);
18645 return __r->_M_refdata();
18648 template<typename _CharT, typename _Traits, typename _Alloc>
18649 basic_string<_CharT, _Traits, _Alloc>::
18650 basic_string(const basic_string& __str)
18651 : _M_dataplus(__str._M_rep()->_M_grab(_Alloc(__str.get_allocator()),
18652 __str.get_allocator()),
18653 __str.get_allocator())
18656 template<typename _CharT, typename _Traits, typename _Alloc>
18657 basic_string<_CharT, _Traits, _Alloc>::
18658 basic_string(const _Alloc& __a)
18659 : _M_dataplus(_S_construct(size_type(), _CharT(), __a), __a)
18662 template<typename _CharT, typename _Traits, typename _Alloc>
18663 basic_string<_CharT, _Traits, _Alloc>::
18664 basic_string(const basic_string& __str, size_type __pos, size_type __n)
18665 : _M_dataplus(_S_construct(__str._M_data()
18666 + __str._M_check(__pos,
18667 "basic_string::basic_string"),
18668 __str._M_data() + __str._M_limit(__pos, __n)
18669 + __pos, _Alloc()), _Alloc())
18672 template<typename _CharT, typename _Traits, typename _Alloc>
18673 basic_string<_CharT, _Traits, _Alloc>::
18674 basic_string(const basic_string& __str, size_type __pos,
18675 size_type __n, const _Alloc& __a)
18676 : _M_dataplus(_S_construct(__str._M_data()
18677 + __str._M_check(__pos,
18678 "basic_string::basic_string"),
18679 __str._M_data() + __str._M_limit(__pos, __n)
18680 + __pos, __a), __a)
18684 template<typename _CharT, typename _Traits, typename _Alloc>
18685 basic_string<_CharT, _Traits, _Alloc>::
18686 basic_string(const _CharT* __s, size_type __n, const _Alloc& __a)
18687 : _M_dataplus(_S_construct(__s, __s + __n, __a), __a)
18691 template<typename _CharT, typename _Traits, typename _Alloc>
18692 basic_string<_CharT, _Traits, _Alloc>::
18693 basic_string(const _CharT* __s, const _Alloc& __a)
18694 : _M_dataplus(_S_construct(__s, __s ? __s + traits_type::length(__s) :
18695 __s + npos, __a), __a)
18698 template<typename _CharT, typename _Traits, typename _Alloc>
18699 basic_string<_CharT, _Traits, _Alloc>::
18700 basic_string(size_type __n, _CharT __c, const _Alloc& __a)
18701 : _M_dataplus(_S_construct(__n, __c, __a), __a)
18705 template<typename _CharT, typename _Traits, typename _Alloc>
18706 template<typename _InputIterator>
18707 basic_string<_CharT, _Traits, _Alloc>::
18708 basic_string(_InputIterator __beg, _InputIterator __end, const _Alloc& __a)
18709 : _M_dataplus(_S_construct(__beg, __end, __a), __a)
18712 template<typename _CharT, typename _Traits, typename _Alloc>
18713 basic_string<_CharT, _Traits, _Alloc>&
18714 basic_string<_CharT, _Traits, _Alloc>::
18715 assign(const basic_string& __str)
18717 if (_M_rep() != __str._M_rep())
18720 const allocator_type __a = this->get_allocator();
18721 _CharT* __tmp = __str._M_rep()->_M_grab(__a, __str.get_allocator());
18722 _M_rep()->_M_dispose(__a);
18728 template<typename _CharT, typename _Traits, typename _Alloc>
18729 basic_string<_CharT, _Traits, _Alloc>&
18730 basic_string<_CharT, _Traits, _Alloc>::
18731 assign(const _CharT* __s, size_type __n)
18734 _M_check_length(this->size(), __n, "basic_string::assign");
18735 if (_M_disjunct(__s) || _M_rep()->_M_is_shared())
18736 return _M_replace_safe(size_type(0), this->size(), __s, __n);
18740 const size_type __pos = __s - _M_data();
18742 _M_copy(_M_data(), __s, __n);
18744 _M_move(_M_data(), __s, __n);
18745 _M_rep()->_M_set_length_and_sharable(__n);
18750 template<typename _CharT, typename _Traits, typename _Alloc>
18751 basic_string<_CharT, _Traits, _Alloc>&
18752 basic_string<_CharT, _Traits, _Alloc>::
18753 append(size_type __n, _CharT __c)
18757 _M_check_length(size_type(0), __n, "basic_string::append");
18758 const size_type __len = __n + this->size();
18759 if (__len > this->capacity() || _M_rep()->_M_is_shared())
18760 this->reserve(__len);
18761 _M_assign(_M_data() + this->size(), __n, __c);
18762 _M_rep()->_M_set_length_and_sharable(__len);
18767 template<typename _CharT, typename _Traits, typename _Alloc>
18768 basic_string<_CharT, _Traits, _Alloc>&
18769 basic_string<_CharT, _Traits, _Alloc>::
18770 append(const _CharT* __s, size_type __n)
18775 _M_check_length(size_type(0), __n, "basic_string::append");
18776 const size_type __len = __n + this->size();
18777 if (__len > this->capacity() || _M_rep()->_M_is_shared())
18779 if (_M_disjunct(__s))
18780 this->reserve(__len);
18783 const size_type __off = __s - _M_data();
18784 this->reserve(__len);
18785 __s = _M_data() + __off;
18788 _M_copy(_M_data() + this->size(), __s, __n);
18789 _M_rep()->_M_set_length_and_sharable(__len);
18794 template<typename _CharT, typename _Traits, typename _Alloc>
18795 basic_string<_CharT, _Traits, _Alloc>&
18796 basic_string<_CharT, _Traits, _Alloc>::
18797 append(const basic_string& __str)
18799 const size_type __size = __str.size();
18802 const size_type __len = __size + this->size();
18803 if (__len > this->capacity() || _M_rep()->_M_is_shared())
18804 this->reserve(__len);
18805 _M_copy(_M_data() + this->size(), __str._M_data(), __size);
18806 _M_rep()->_M_set_length_and_sharable(__len);
18811 template<typename _CharT, typename _Traits, typename _Alloc>
18812 basic_string<_CharT, _Traits, _Alloc>&
18813 basic_string<_CharT, _Traits, _Alloc>::
18814 append(const basic_string& __str, size_type __pos, size_type __n)
18816 __str._M_check(__pos, "basic_string::append");
18817 __n = __str._M_limit(__pos, __n);
18820 const size_type __len = __n + this->size();
18821 if (__len > this->capacity() || _M_rep()->_M_is_shared())
18822 this->reserve(__len);
18823 _M_copy(_M_data() + this->size(), __str._M_data() + __pos, __n);
18824 _M_rep()->_M_set_length_and_sharable(__len);
18829 template<typename _CharT, typename _Traits, typename _Alloc>
18830 basic_string<_CharT, _Traits, _Alloc>&
18831 basic_string<_CharT, _Traits, _Alloc>::
18832 insert(size_type __pos, const _CharT* __s, size_type __n)
18835 _M_check(__pos, "basic_string::insert");
18836 _M_check_length(size_type(0), __n, "basic_string::insert");
18837 if (_M_disjunct(__s) || _M_rep()->_M_is_shared())
18838 return _M_replace_safe(__pos, size_type(0), __s, __n);
18842 const size_type __off = __s - _M_data();
18843 _M_mutate(__pos, 0, __n);
18844 __s = _M_data() + __off;
18845 _CharT* __p = _M_data() + __pos;
18846 if (__s + __n <= __p)
18847 _M_copy(__p, __s, __n);
18848 else if (__s >= __p)
18849 _M_copy(__p, __s + __n, __n);
18852 const size_type __nleft = __p - __s;
18853 _M_copy(__p, __s, __nleft);
18854 _M_copy(__p + __nleft, __p + __n, __n - __nleft);
18860 template<typename _CharT, typename _Traits, typename _Alloc>
18861 basic_string<_CharT, _Traits, _Alloc>&
18862 basic_string<_CharT, _Traits, _Alloc>::
18863 replace(size_type __pos, size_type __n1, const _CharT* __s,
18867 _M_check(__pos, "basic_string::replace");
18868 __n1 = _M_limit(__pos, __n1);
18869 _M_check_length(__n1, __n2, "basic_string::replace");
18871 if (_M_disjunct(__s) || _M_rep()->_M_is_shared())
18872 return _M_replace_safe(__pos, __n1, __s, __n2);
18873 else if ((__left = __s + __n2 <= _M_data() + __pos)
18874 || _M_data() + __pos + __n1 <= __s)
18877 size_type __off = __s - _M_data();
18878 __left ? __off : (__off += __n2 - __n1);
18879 _M_mutate(__pos, __n1, __n2);
18880 _M_copy(_M_data() + __pos, _M_data() + __off, __n2);
18886 const basic_string __tmp(__s, __n2);
18887 return _M_replace_safe(__pos, __n1, __tmp._M_data(), __n2);
18891 template<typename _CharT, typename _Traits, typename _Alloc>
18893 basic_string<_CharT, _Traits, _Alloc>::_Rep::
18894 _M_destroy(const _Alloc& __a) throw ()
18896 const size_type __size = sizeof(_Rep_base) +
18897 (this->_M_capacity + 1) * sizeof(_CharT);
18898 _Raw_bytes_alloc(__a).deallocate(reinterpret_cast<char*>(this), __size);
18901 template<typename _CharT, typename _Traits, typename _Alloc>
18903 basic_string<_CharT, _Traits, _Alloc>::
18907 if (_M_rep() == &_S_empty_rep())
18910 if (_M_rep()->_M_is_shared())
18911 _M_mutate(0, 0, 0);
18912 _M_rep()->_M_set_leaked();
18915 template<typename _CharT, typename _Traits, typename _Alloc>
18917 basic_string<_CharT, _Traits, _Alloc>::
18918 _M_mutate(size_type __pos, size_type __len1, size_type __len2)
18920 const size_type __old_size = this->size();
18921 const size_type __new_size = __old_size + __len2 - __len1;
18922 const size_type __how_much = __old_size - __pos - __len1;
18924 if (__new_size > this->capacity() || _M_rep()->_M_is_shared())
18927 const allocator_type __a = get_allocator();
18928 _Rep* __r = _Rep::_S_create(__new_size, this->capacity(), __a);
18931 _M_copy(__r->_M_refdata(), _M_data(), __pos);
18933 _M_copy(__r->_M_refdata() + __pos + __len2,
18934 _M_data() + __pos + __len1, __how_much);
18936 _M_rep()->_M_dispose(__a);
18937 _M_data(__r->_M_refdata());
18939 else if (__how_much && __len1 != __len2)
18942 _M_move(_M_data() + __pos + __len2,
18943 _M_data() + __pos + __len1, __how_much);
18945 _M_rep()->_M_set_length_and_sharable(__new_size);
18948 template<typename _CharT, typename _Traits, typename _Alloc>
18950 basic_string<_CharT, _Traits, _Alloc>::
18951 reserve(size_type __res)
18953 if (__res != this->capacity() || _M_rep()->_M_is_shared())
18956 if (__res < this->size())
18957 __res = this->size();
18958 const allocator_type __a = get_allocator();
18959 _CharT* __tmp = _M_rep()->_M_clone(__a, __res - this->size());
18960 _M_rep()->_M_dispose(__a);
18965 template<typename _CharT, typename _Traits, typename _Alloc>
18967 basic_string<_CharT, _Traits, _Alloc>::
18968 swap(basic_string& __s)
18970 if (_M_rep()->_M_is_leaked())
18971 _M_rep()->_M_set_sharable();
18972 if (__s._M_rep()->_M_is_leaked())
18973 __s._M_rep()->_M_set_sharable();
18974 if (this->get_allocator() == __s.get_allocator())
18976 _CharT* __tmp = _M_data();
18977 _M_data(__s._M_data());
18978 __s._M_data(__tmp);
18983 const basic_string __tmp1(_M_ibegin(), _M_iend(),
18984 __s.get_allocator());
18985 const basic_string __tmp2(__s._M_ibegin(), __s._M_iend(),
18986 this->get_allocator());
18992 template<typename _CharT, typename _Traits, typename _Alloc>
18993 typename basic_string<_CharT, _Traits, _Alloc>::_Rep*
18994 basic_string<_CharT, _Traits, _Alloc>::_Rep::
18995 _S_create(size_type __capacity, size_type __old_capacity,
18996 const _Alloc& __alloc)
19000 if (__capacity > _S_max_size)
19001 __throw_length_error(("basic_string::_S_create"));
19002 # 558 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_string.tcc" 3
19003 const size_type __pagesize = 4096;
19004 const size_type __malloc_header_size = 4 * sizeof(void*);
19012 if (__capacity > __old_capacity && __capacity < 2 * __old_capacity)
19013 __capacity = 2 * __old_capacity;
19018 size_type __size = (__capacity + 1) * sizeof(_CharT) + sizeof(_Rep);
19020 const size_type __adj_size = __size + __malloc_header_size;
19021 if (__adj_size > __pagesize && __capacity > __old_capacity)
19023 const size_type __extra = __pagesize - __adj_size % __pagesize;
19024 __capacity += __extra / sizeof(_CharT);
19026 if (__capacity > _S_max_size)
19027 __capacity = _S_max_size;
19028 __size = (__capacity + 1) * sizeof(_CharT) + sizeof(_Rep);
19033 void* __place = _Raw_bytes_alloc(__alloc).allocate(__size);
19034 _Rep *__p = new (__place) _Rep;
19035 __p->_M_capacity = __capacity;
19043 __p->_M_set_sharable();
19047 template<typename _CharT, typename _Traits, typename _Alloc>
19049 basic_string<_CharT, _Traits, _Alloc>::_Rep::
19050 _M_clone(const _Alloc& __alloc, size_type __res)
19053 const size_type __requested_cap = this->_M_length + __res;
19054 _Rep* __r = _Rep::_S_create(__requested_cap, this->_M_capacity,
19056 if (this->_M_length)
19057 _M_copy(__r->_M_refdata(), _M_refdata(), this->_M_length);
19059 __r->_M_set_length_and_sharable(this->_M_length);
19060 return __r->_M_refdata();
19063 template<typename _CharT, typename _Traits, typename _Alloc>
19065 basic_string<_CharT, _Traits, _Alloc>::
19066 resize(size_type __n, _CharT __c)
19068 const size_type __size = this->size();
19069 _M_check_length(__size, __n, "basic_string::resize");
19071 this->append(__n - __size, __c);
19072 else if (__n < __size)
19077 template<typename _CharT, typename _Traits, typename _Alloc>
19078 template<typename _InputIterator>
19079 basic_string<_CharT, _Traits, _Alloc>&
19080 basic_string<_CharT, _Traits, _Alloc>::
19081 _M_replace_dispatch(iterator __i1, iterator __i2, _InputIterator __k1,
19082 _InputIterator __k2, __false_type)
19084 const basic_string __s(__k1, __k2);
19085 const size_type __n1 = __i2 - __i1;
19086 _M_check_length(__n1, __s.size(), "basic_string::_M_replace_dispatch");
19087 return _M_replace_safe(__i1 - _M_ibegin(), __n1, __s._M_data(),
19091 template<typename _CharT, typename _Traits, typename _Alloc>
19092 basic_string<_CharT, _Traits, _Alloc>&
19093 basic_string<_CharT, _Traits, _Alloc>::
19094 _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2,
19097 _M_check_length(__n1, __n2, "basic_string::_M_replace_aux");
19098 _M_mutate(__pos1, __n1, __n2);
19100 _M_assign(_M_data() + __pos1, __n2, __c);
19104 template<typename _CharT, typename _Traits, typename _Alloc>
19105 basic_string<_CharT, _Traits, _Alloc>&
19106 basic_string<_CharT, _Traits, _Alloc>::
19107 _M_replace_safe(size_type __pos1, size_type __n1, const _CharT* __s,
19110 _M_mutate(__pos1, __n1, __n2);
19112 _M_copy(_M_data() + __pos1, __s, __n2);
19116 template<typename _CharT, typename _Traits, typename _Alloc>
19117 basic_string<_CharT, _Traits, _Alloc>
19118 operator+(const _CharT* __lhs,
19119 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
19122 typedef basic_string<_CharT, _Traits, _Alloc> __string_type;
19123 typedef typename __string_type::size_type __size_type;
19124 const __size_type __len = _Traits::length(__lhs);
19125 __string_type __str;
19126 __str.reserve(__len + __rhs.size());
19127 __str.append(__lhs, __len);
19128 __str.append(__rhs);
19132 template<typename _CharT, typename _Traits, typename _Alloc>
19133 basic_string<_CharT, _Traits, _Alloc>
19134 operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
19136 typedef basic_string<_CharT, _Traits, _Alloc> __string_type;
19137 typedef typename __string_type::size_type __size_type;
19138 __string_type __str;
19139 const __size_type __len = __rhs.size();
19140 __str.reserve(__len + 1);
19141 __str.append(__size_type(1), __lhs);
19142 __str.append(__rhs);
19146 template<typename _CharT, typename _Traits, typename _Alloc>
19147 typename basic_string<_CharT, _Traits, _Alloc>::size_type
19148 basic_string<_CharT, _Traits, _Alloc>::
19149 copy(_CharT* __s, size_type __n, size_type __pos) const
19151 _M_check(__pos, "basic_string::copy");
19152 __n = _M_limit(__pos, __n);
19155 _M_copy(__s, _M_data() + __pos, __n);
19160 template<typename _CharT, typename _Traits, typename _Alloc>
19161 typename basic_string<_CharT, _Traits, _Alloc>::size_type
19162 basic_string<_CharT, _Traits, _Alloc>::
19163 find(const _CharT* __s, size_type __pos, size_type __n) const
19166 size_type __ret = npos;
19167 const size_type __size = this->size();
19168 if (__pos + __n <= __size)
19170 const _CharT* __data = _M_data();
19171 const _CharT* __p = std::search(__data + __pos, __data + __size,
19172 __s, __s + __n, traits_type::eq);
19173 if (__p != __data + __size || __n == 0)
19174 __ret = __p - __data;
19179 template<typename _CharT, typename _Traits, typename _Alloc>
19180 typename basic_string<_CharT, _Traits, _Alloc>::size_type
19181 basic_string<_CharT, _Traits, _Alloc>::
19182 find(_CharT __c, size_type __pos) const
19184 size_type __ret = npos;
19185 const size_type __size = this->size();
19186 if (__pos < __size)
19188 const _CharT* __data = _M_data();
19189 const size_type __n = __size - __pos;
19190 const _CharT* __p = traits_type::find(__data + __pos, __n, __c);
19192 __ret = __p - __data;
19197 template<typename _CharT, typename _Traits, typename _Alloc>
19198 typename basic_string<_CharT, _Traits, _Alloc>::size_type
19199 basic_string<_CharT, _Traits, _Alloc>::
19200 rfind(const _CharT* __s, size_type __pos, size_type __n) const
19203 const size_type __size = this->size();
19206 __pos = std::min(size_type(__size - __n), __pos);
19207 const _CharT* __data = _M_data();
19210 if (traits_type::compare(__data + __pos, __s, __n) == 0)
19213 while (__pos-- > 0);
19218 template<typename _CharT, typename _Traits, typename _Alloc>
19219 typename basic_string<_CharT, _Traits, _Alloc>::size_type
19220 basic_string<_CharT, _Traits, _Alloc>::
19221 rfind(_CharT __c, size_type __pos) const
19223 size_type __size = this->size();
19226 if (--__size > __pos)
19228 for (++__size; __size-- > 0; )
19229 if (traits_type::eq(_M_data()[__size], __c))
19235 template<typename _CharT, typename _Traits, typename _Alloc>
19236 typename basic_string<_CharT, _Traits, _Alloc>::size_type
19237 basic_string<_CharT, _Traits, _Alloc>::
19238 find_first_of(const _CharT* __s, size_type __pos, size_type __n) const
19241 for (; __n && __pos < this->size(); ++__pos)
19243 const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]);
19250 template<typename _CharT, typename _Traits, typename _Alloc>
19251 typename basic_string<_CharT, _Traits, _Alloc>::size_type
19252 basic_string<_CharT, _Traits, _Alloc>::
19253 find_last_of(const _CharT* __s, size_type __pos, size_type __n) const
19256 size_type __size = this->size();
19259 if (--__size > __pos)
19263 if (traits_type::find(__s, __n, _M_data()[__size]))
19266 while (__size-- != 0);
19271 template<typename _CharT, typename _Traits, typename _Alloc>
19272 typename basic_string<_CharT, _Traits, _Alloc>::size_type
19273 basic_string<_CharT, _Traits, _Alloc>::
19274 find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const
19277 for (; __pos < this->size(); ++__pos)
19278 if (!traits_type::find(__s, __n, _M_data()[__pos]))
19283 template<typename _CharT, typename _Traits, typename _Alloc>
19284 typename basic_string<_CharT, _Traits, _Alloc>::size_type
19285 basic_string<_CharT, _Traits, _Alloc>::
19286 find_first_not_of(_CharT __c, size_type __pos) const
19288 for (; __pos < this->size(); ++__pos)
19289 if (!traits_type::eq(_M_data()[__pos], __c))
19294 template<typename _CharT, typename _Traits, typename _Alloc>
19295 typename basic_string<_CharT, _Traits, _Alloc>::size_type
19296 basic_string<_CharT, _Traits, _Alloc>::
19297 find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const
19300 size_type __size = this->size();
19303 if (--__size > __pos)
19307 if (!traits_type::find(__s, __n, _M_data()[__size]))
19315 template<typename _CharT, typename _Traits, typename _Alloc>
19316 typename basic_string<_CharT, _Traits, _Alloc>::size_type
19317 basic_string<_CharT, _Traits, _Alloc>::
19318 find_last_not_of(_CharT __c, size_type __pos) const
19320 size_type __size = this->size();
19323 if (--__size > __pos)
19327 if (!traits_type::eq(_M_data()[__size], __c))
19335 template<typename _CharT, typename _Traits, typename _Alloc>
19337 basic_string<_CharT, _Traits, _Alloc>::
19338 compare(size_type __pos, size_type __n, const basic_string& __str) const
19340 _M_check(__pos, "basic_string::compare");
19341 __n = _M_limit(__pos, __n);
19342 const size_type __osize = __str.size();
19343 const size_type __len = std::min(__n, __osize);
19344 int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len);
19346 __r = __n - __osize;
19350 template<typename _CharT, typename _Traits, typename _Alloc>
19352 basic_string<_CharT, _Traits, _Alloc>::
19353 compare(size_type __pos1, size_type __n1, const basic_string& __str,
19354 size_type __pos2, size_type __n2) const
19356 _M_check(__pos1, "basic_string::compare");
19357 __str._M_check(__pos2, "basic_string::compare");
19358 __n1 = _M_limit(__pos1, __n1);
19359 __n2 = __str._M_limit(__pos2, __n2);
19360 const size_type __len = std::min(__n1, __n2);
19361 int __r = traits_type::compare(_M_data() + __pos1,
19362 __str.data() + __pos2, __len);
19368 template<typename _CharT, typename _Traits, typename _Alloc>
19370 basic_string<_CharT, _Traits, _Alloc>::
19371 compare(const _CharT* __s) const
19374 const size_type __size = this->size();
19375 const size_type __osize = traits_type::length(__s);
19376 const size_type __len = std::min(__size, __osize);
19377 int __r = traits_type::compare(_M_data(), __s, __len);
19379 __r = __size - __osize;
19383 template<typename _CharT, typename _Traits, typename _Alloc>
19385 basic_string <_CharT, _Traits, _Alloc>::
19386 compare(size_type __pos, size_type __n1, const _CharT* __s) const
19389 _M_check(__pos, "basic_string::compare");
19390 __n1 = _M_limit(__pos, __n1);
19391 const size_type __osize = traits_type::length(__s);
19392 const size_type __len = std::min(__n1, __osize);
19393 int __r = traits_type::compare(_M_data() + __pos, __s, __len);
19395 __r = __n1 - __osize;
19399 template<typename _CharT, typename _Traits, typename _Alloc>
19401 basic_string <_CharT, _Traits, _Alloc>::
19402 compare(size_type __pos, size_type __n1, const _CharT* __s,
19403 size_type __n2) const
19406 _M_check(__pos, "basic_string::compare");
19407 __n1 = _M_limit(__pos, __n1);
19408 const size_type __len = std::min(__n1, __n2);
19409 int __r = traits_type::compare(_M_data() + __pos, __s, __len);
19419 extern template class basic_string<char>;
19421 basic_istream<char>&
19422 operator>>(basic_istream<char>&, string&);
19424 basic_ostream<char>&
19425 operator<<(basic_ostream<char>&, const string&);
19427 basic_istream<char>&
19428 getline(basic_istream<char>&, string&, char);
19430 basic_istream<char>&
19431 getline(basic_istream<char>&, string&);
19434 extern template class basic_string<wchar_t>;
19436 basic_istream<wchar_t>&
19437 operator>>(basic_istream<wchar_t>&, wstring&);
19439 basic_ostream<wchar_t>&
19440 operator<<(basic_ostream<wchar_t>&, const wstring&);
19442 basic_istream<wchar_t>&
19443 getline(basic_istream<wchar_t>&, wstring&, wchar_t);
19445 basic_istream<wchar_t>&
19446 getline(basic_istream<wchar_t>&, wstring&);
19450 # 58 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/string" 2 3
19453 #pragma GCC visibility pop
19454 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 2 3
19460 # 67 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19466 typedef int category;
19473 friend class facet;
19474 friend class _Impl;
19476 template<typename _Facet>
19478 has_facet(const locale&) throw();
19480 template<typename _Facet>
19481 friend const _Facet&
19482 use_facet(const locale&);
19484 template<typename _Cache>
19485 friend struct __use_cache;
19486 # 105 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19487 static const category none = 0;
19488 static const category ctype = 1L << 0;
19489 static const category numeric = 1L << 1;
19490 static const category collate = 1L << 2;
19491 static const category time = 1L << 3;
19492 static const category monetary = 1L << 4;
19493 static const category messages = 1L << 5;
19494 static const category all = (ctype | numeric | collate |
19495 time | monetary | messages);
19496 # 124 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19498 # 133 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19499 locale(const locale& __other) throw();
19500 # 143 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19502 locale(const char* __s);
19503 # 158 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19504 locale(const locale& __base, const char* __s, category __cat);
19505 # 171 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19506 locale(const locale& __base, const locale& __add, category __cat);
19507 # 183 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19508 template<typename _Facet>
19509 locale(const locale& __other, _Facet* __f);
19513 # 197 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19515 operator=(const locale& __other) throw();
19516 # 212 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19517 template<typename _Facet>
19519 combine(const locale& __other) const;
19528 # 231 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19530 operator==(const locale& __other) const throw ();
19539 operator!=(const locale& __other) const throw ()
19540 { return !(this->operator==(__other)); }
19541 # 259 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19542 template<typename _Char, typename _Traits, typename _Alloc>
19544 operator()(const basic_string<_Char, _Traits, _Alloc>& __s1,
19545 const basic_string<_Char, _Traits, _Alloc>& __s2) const;
19546 # 275 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19548 global(const locale&);
19553 static const locale&
19561 static _Impl* _S_classic;
19564 static _Impl* _S_global;
19570 static const char* const* const _S_categories;
19571 # 310 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19572 enum { _S_categories_size = 6 + 6 };
19575 static __gthread_once_t _S_once;
19579 locale(_Impl*) throw();
19585 _S_initialize_once();
19588 _S_normalize_category(category);
19591 _M_coalesce(const locale& __base, const locale& __add, category __cat);
19593 # 343 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19594 class locale::facet
19597 friend class locale;
19598 friend class locale::_Impl;
19600 mutable _Atomic_word _M_refcount;
19603 static __c_locale _S_c_locale;
19606 static const char _S_c_name[2];
19609 static __gthread_once_t _S_once;
19613 _S_initialize_once();
19616 # 374 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19618 facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0)
19626 _S_create_c_locale(__c_locale& __cloc, const char* __s,
19627 __c_locale __old = 0);
19630 _S_clone_c_locale(__c_locale& __cloc);
19633 _S_destroy_c_locale(__c_locale& __cloc);
19645 _M_add_reference() const throw()
19646 { __gnu_cxx::__atomic_add(&_M_refcount, 1); }
19649 _M_remove_reference() const throw()
19651 if (__gnu_cxx::__exchange_and_add(&_M_refcount, -1) == 1)
19660 facet(const facet&);
19663 operator=(const facet&);
19665 # 434 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_classes.h" 3
19669 friend class locale;
19670 friend class locale::_Impl;
19672 template<typename _Facet>
19673 friend const _Facet&
19674 use_facet(const locale&);
19676 template<typename _Facet>
19678 has_facet(const locale&) throw ();
19683 mutable size_t _M_index;
19686 static _Atomic_word _S_refcount;
19689 operator=(const id&);
19705 class locale::_Impl
19709 friend class locale;
19710 friend class locale::facet;
19712 template<typename _Facet>
19714 has_facet(const locale&) throw();
19716 template<typename _Facet>
19717 friend const _Facet&
19718 use_facet(const locale&);
19720 template<typename _Cache>
19721 friend struct __use_cache;
19725 _Atomic_word _M_refcount;
19726 const facet** _M_facets;
19727 size_t _M_facets_size;
19728 const facet** _M_caches;
19730 static const locale::id* const _S_id_ctype[];
19731 static const locale::id* const _S_id_numeric[];
19732 static const locale::id* const _S_id_collate[];
19733 static const locale::id* const _S_id_time[];
19734 static const locale::id* const _S_id_monetary[];
19735 static const locale::id* const _S_id_messages[];
19736 static const locale::id* const* const _S_facet_categories[];
19739 _M_add_reference() throw()
19740 { __gnu_cxx::__atomic_add(&_M_refcount, 1); }
19743 _M_remove_reference() throw()
19745 if (__gnu_cxx::__exchange_and_add(&_M_refcount, -1) == 1)
19754 _Impl(const _Impl&, size_t);
19755 _Impl(const char*, size_t);
19756 _Impl(size_t) throw();
19760 _Impl(const _Impl&);
19763 operator=(const _Impl&);
19766 _M_check_same_name()
19771 for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i)
19772 __ret = std::strcmp(_M_names[__i], _M_names[__i + 1]) == 0;
19777 _M_replace_categories(const _Impl*, category);
19780 _M_replace_category(const _Impl*, const locale::id* const*);
19783 _M_replace_facet(const _Impl*, const locale::id*);
19786 _M_install_facet(const locale::id*, const facet*);
19788 template<typename _Facet>
19790 _M_init_facet(_Facet* __facet)
19791 { _M_install_facet(&_Facet::id, __facet); }
19794 _M_install_cache(const facet*, size_t);
19797 template<typename _Facet>
19798 locale::locale(const locale& __other, _Facet* __f)
19800 _M_impl = new _Impl(*__other._M_impl, 1);
19803 { _M_impl->_M_install_facet(&_Facet::id, __f); }
19806 _M_impl->_M_remove_reference();
19809 delete [] _M_impl->_M_names[0];
19810 _M_impl->_M_names[0] = 0;
19813 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 2 3
19823 _S_boolalpha = 1L << 0,
19825 _S_fixed = 1L << 2,
19827 _S_internal = 1L << 4,
19830 _S_right = 1L << 7,
19831 _S_scientific = 1L << 8,
19832 _S_showbase = 1L << 9,
19833 _S_showpoint = 1L << 10,
19834 _S_showpos = 1L << 11,
19835 _S_skipws = 1L << 12,
19836 _S_unitbuf = 1L << 13,
19837 _S_uppercase = 1L << 14,
19838 _S_adjustfield = _S_left | _S_right | _S_internal,
19839 _S_basefield = _S_dec | _S_oct | _S_hex,
19840 _S_floatfield = _S_scientific | _S_fixed,
19841 _S_ios_fmtflags_end = 1L << 16
19844 inline _Ios_Fmtflags
19845 operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
19846 { return _Ios_Fmtflags(static_cast<int>(__a) & static_cast<int>(__b)); }
19848 inline _Ios_Fmtflags
19849 operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
19850 { return _Ios_Fmtflags(static_cast<int>(__a) | static_cast<int>(__b)); }
19852 inline _Ios_Fmtflags
19853 operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
19854 { return _Ios_Fmtflags(static_cast<int>(__a) ^ static_cast<int>(__b)); }
19856 inline _Ios_Fmtflags&
19857 operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
19858 { return __a = __a | __b; }
19860 inline _Ios_Fmtflags&
19861 operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
19862 { return __a = __a & __b; }
19864 inline _Ios_Fmtflags&
19865 operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
19866 { return __a = __a ^ __b; }
19868 inline _Ios_Fmtflags
19869 operator~(_Ios_Fmtflags __a)
19870 { return _Ios_Fmtflags(~static_cast<int>(__a)); }
19880 _S_trunc = 1L << 5,
19881 _S_ios_openmode_end = 1L << 16
19884 inline _Ios_Openmode
19885 operator&(_Ios_Openmode __a, _Ios_Openmode __b)
19886 { return _Ios_Openmode(static_cast<int>(__a) & static_cast<int>(__b)); }
19888 inline _Ios_Openmode
19889 operator|(_Ios_Openmode __a, _Ios_Openmode __b)
19890 { return _Ios_Openmode(static_cast<int>(__a) | static_cast<int>(__b)); }
19892 inline _Ios_Openmode
19893 operator^(_Ios_Openmode __a, _Ios_Openmode __b)
19894 { return _Ios_Openmode(static_cast<int>(__a) ^ static_cast<int>(__b)); }
19896 inline _Ios_Openmode&
19897 operator|=(_Ios_Openmode& __a, _Ios_Openmode __b)
19898 { return __a = __a | __b; }
19900 inline _Ios_Openmode&
19901 operator&=(_Ios_Openmode& __a, _Ios_Openmode __b)
19902 { return __a = __a & __b; }
19904 inline _Ios_Openmode&
19905 operator^=(_Ios_Openmode& __a, _Ios_Openmode __b)
19906 { return __a = __a ^ __b; }
19908 inline _Ios_Openmode
19909 operator~(_Ios_Openmode __a)
19910 { return _Ios_Openmode(~static_cast<int>(__a)); }
19916 _S_badbit = 1L << 0,
19917 _S_eofbit = 1L << 1,
19918 _S_failbit = 1L << 2,
19919 _S_ios_iostate_end = 1L << 16
19922 inline _Ios_Iostate
19923 operator&(_Ios_Iostate __a, _Ios_Iostate __b)
19924 { return _Ios_Iostate(static_cast<int>(__a) & static_cast<int>(__b)); }
19926 inline _Ios_Iostate
19927 operator|(_Ios_Iostate __a, _Ios_Iostate __b)
19928 { return _Ios_Iostate(static_cast<int>(__a) | static_cast<int>(__b)); }
19930 inline _Ios_Iostate
19931 operator^(_Ios_Iostate __a, _Ios_Iostate __b)
19932 { return _Ios_Iostate(static_cast<int>(__a) ^ static_cast<int>(__b)); }
19934 inline _Ios_Iostate&
19935 operator|=(_Ios_Iostate& __a, _Ios_Iostate __b)
19936 { return __a = __a | __b; }
19938 inline _Ios_Iostate&
19939 operator&=(_Ios_Iostate& __a, _Ios_Iostate __b)
19940 { return __a = __a & __b; }
19942 inline _Ios_Iostate&
19943 operator^=(_Ios_Iostate& __a, _Ios_Iostate __b)
19944 { return __a = __a ^ __b; }
19946 inline _Ios_Iostate
19947 operator~(_Ios_Iostate __a)
19948 { return _Ios_Iostate(~static_cast<int>(__a)); }
19955 _S_ios_seekdir_end = 1L << 16
19957 # 201 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
19964 class failure : public exception
19970 failure(const string& __str) throw();
19975 ~failure() throw();
19977 virtual const char*
19978 what() const throw();
19983 # 253 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
19984 typedef _Ios_Fmtflags fmtflags;
19987 static const fmtflags boolalpha = _S_boolalpha;
19990 static const fmtflags dec = _S_dec;
19993 static const fmtflags fixed = _S_fixed;
19996 static const fmtflags hex = _S_hex;
20001 static const fmtflags internal = _S_internal;
20005 static const fmtflags left = _S_left;
20008 static const fmtflags oct = _S_oct;
20012 static const fmtflags right = _S_right;
20015 static const fmtflags scientific = _S_scientific;
20019 static const fmtflags showbase = _S_showbase;
20023 static const fmtflags showpoint = _S_showpoint;
20026 static const fmtflags showpos = _S_showpos;
20029 static const fmtflags skipws = _S_skipws;
20032 static const fmtflags unitbuf = _S_unitbuf;
20036 static const fmtflags uppercase = _S_uppercase;
20039 static const fmtflags adjustfield = _S_adjustfield;
20042 static const fmtflags basefield = _S_basefield;
20045 static const fmtflags floatfield = _S_floatfield;
20046 # 328 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20047 typedef _Ios_Iostate iostate;
20051 static const iostate badbit = _S_badbit;
20054 static const iostate eofbit = _S_eofbit;
20059 static const iostate failbit = _S_failbit;
20062 static const iostate goodbit = _S_goodbit;
20063 # 359 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20064 typedef _Ios_Openmode openmode;
20067 static const openmode app = _S_app;
20070 static const openmode ate = _S_ate;
20076 static const openmode binary = _S_bin;
20079 static const openmode in = _S_in;
20082 static const openmode out = _S_out;
20085 static const openmode trunc = _S_trunc;
20086 # 392 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20087 typedef _Ios_Seekdir seekdir;
20090 static const seekdir beg = _S_beg;
20093 static const seekdir cur = _S_cur;
20096 static const seekdir end = _S_end;
20099 typedef int io_state;
20100 typedef int open_mode;
20101 typedef int seek_dir;
20103 typedef std::streampos streampos;
20104 typedef std::streamoff streamoff;
20105 # 418 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20112 # 435 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20113 typedef void (*event_callback) (event, ios_base&, int);
20114 # 447 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20116 register_callback(event_callback __fn, int __index);
20125 streamsize _M_precision;
20126 streamsize _M_width;
20128 iostate _M_exception;
20129 iostate _M_streambuf_state;
20134 struct _Callback_list
20137 _Callback_list* _M_next;
20138 ios_base::event_callback _M_fn;
20140 _Atomic_word _M_refcount;
20142 _Callback_list(ios_base::event_callback __fn, int __index,
20143 _Callback_list* __cb)
20144 : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { }
20147 _M_add_reference() { __gnu_cxx::__atomic_add(&_M_refcount, 1); }
20151 _M_remove_reference()
20152 { return __gnu_cxx::__exchange_and_add(&_M_refcount, -1); }
20155 _Callback_list* _M_callbacks;
20158 _M_call_callbacks(event __ev) throw();
20161 _M_dispose_callbacks(void);
20168 _Words() : _M_pword(0), _M_iword(0) { }
20172 _Words _M_word_zero;
20176 enum { _S_local_word_size = 8 };
20177 _Words _M_local_word[_S_local_word_size];
20184 _M_grow_words(int __index, bool __iword);
20187 locale _M_ios_locale;
20200 friend class ios_base;
20206 static _Atomic_word _S_refcount;
20207 static bool _S_synced_with_stdio;
20216 flags() const { return _M_flags; }
20217 # 557 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20219 flags(fmtflags __fmtfl)
20221 fmtflags __old = _M_flags;
20222 _M_flags = __fmtfl;
20225 # 573 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20227 setf(fmtflags __fmtfl)
20229 fmtflags __old = _M_flags;
20230 _M_flags |= __fmtfl;
20233 # 590 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20235 setf(fmtflags __fmtfl, fmtflags __mask)
20237 fmtflags __old = _M_flags;
20238 _M_flags &= ~__mask;
20239 _M_flags |= (__fmtfl & __mask);
20250 unsetf(fmtflags __mask) { _M_flags &= ~__mask; }
20251 # 617 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20253 precision() const { return _M_precision; }
20261 precision(streamsize __prec)
20263 streamsize __old = _M_precision;
20264 _M_precision = __prec;
20275 width() const { return _M_width; }
20283 width(streamsize __wide)
20285 streamsize __old = _M_width;
20289 # 666 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20291 sync_with_stdio(bool __sync = true);
20292 # 678 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20294 imbue(const locale& __loc);
20295 # 689 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20297 getloc() const { return _M_ios_locale; }
20298 # 699 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20299 inline const locale&
20300 _M_getloc() const { return _M_ios_locale; }
20301 # 717 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20304 # 733 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20308 _Words& __word = (__ix < _M_word_size)
20309 ? _M_word[__ix] : _M_grow_words(__ix, true);
20310 return __word._M_iword;
20312 # 754 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20316 _Words& __word = (__ix < _M_word_size)
20317 ? _M_word[__ix] : _M_grow_words(__ix, false);
20318 return __word._M_pword;
20320 # 771 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ios_base.h" 3
20321 virtual ~ios_base();
20329 ios_base(const ios_base&);
20332 operator=(const ios_base&);
20338 boolalpha(ios_base& __base)
20340 __base.setf(ios_base::boolalpha);
20346 noboolalpha(ios_base& __base)
20348 __base.unsetf(ios_base::boolalpha);
20354 showbase(ios_base& __base)
20356 __base.setf(ios_base::showbase);
20362 noshowbase(ios_base& __base)
20364 __base.unsetf(ios_base::showbase);
20370 showpoint(ios_base& __base)
20372 __base.setf(ios_base::showpoint);
20378 noshowpoint(ios_base& __base)
20380 __base.unsetf(ios_base::showpoint);
20386 showpos(ios_base& __base)
20388 __base.setf(ios_base::showpos);
20394 noshowpos(ios_base& __base)
20396 __base.unsetf(ios_base::showpos);
20402 skipws(ios_base& __base)
20404 __base.setf(ios_base::skipws);
20410 noskipws(ios_base& __base)
20412 __base.unsetf(ios_base::skipws);
20418 uppercase(ios_base& __base)
20420 __base.setf(ios_base::uppercase);
20426 nouppercase(ios_base& __base)
20428 __base.unsetf(ios_base::uppercase);
20434 unitbuf(ios_base& __base)
20436 __base.setf(ios_base::unitbuf);
20442 nounitbuf(ios_base& __base)
20444 __base.unsetf(ios_base::unitbuf);
20451 internal(ios_base& __base)
20453 __base.setf(ios_base::internal, ios_base::adjustfield);
20459 left(ios_base& __base)
20461 __base.setf(ios_base::left, ios_base::adjustfield);
20467 right(ios_base& __base)
20469 __base.setf(ios_base::right, ios_base::adjustfield);
20476 dec(ios_base& __base)
20478 __base.setf(ios_base::dec, ios_base::basefield);
20484 hex(ios_base& __base)
20486 __base.setf(ios_base::hex, ios_base::basefield);
20492 oct(ios_base& __base)
20494 __base.setf(ios_base::oct, ios_base::basefield);
20501 fixed(ios_base& __base)
20503 __base.setf(ios_base::fixed, ios_base::floatfield);
20509 scientific(ios_base& __base)
20511 __base.setf(ios_base::scientific, ios_base::floatfield);
20515 # 51 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ios" 2 3
20516 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 1 3
20517 # 42 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20519 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20520 #pragma GCC visibility push(default)
20534 template<typename _CharT, typename _Traits>
20536 __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin,
20537 basic_streambuf<_CharT, _Traits>* __sbout);
20538 # 122 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20539 template<typename _CharT, typename _Traits>
20540 class basic_streambuf
20549 typedef _CharT char_type;
20550 typedef _Traits traits_type;
20551 typedef typename traits_type::int_type int_type;
20552 typedef typename traits_type::pos_type pos_type;
20553 typedef typename traits_type::off_type off_type;
20554 # 145 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20555 typedef basic_streambuf<char_type, traits_type> __streambuf_type;
20558 friend class basic_ios<char_type, traits_type>;
20559 friend class basic_istream<char_type, traits_type>;
20560 friend class basic_ostream<char_type, traits_type>;
20561 friend class istreambuf_iterator<char_type, traits_type>;
20562 friend class ostreambuf_iterator<char_type, traits_type>;
20565 __copy_streambufs<>(__streambuf_type* __sbin,
20566 __streambuf_type* __sbout);
20568 template<typename _CharT2, typename _Traits2>
20569 friend basic_istream<_CharT2, _Traits2>&
20570 operator>>(basic_istream<_CharT2, _Traits2>&, _CharT2*);
20572 template<typename _CharT2, typename _Traits2, typename _Alloc>
20573 friend basic_istream<_CharT2, _Traits2>&
20574 operator>>(basic_istream<_CharT2, _Traits2>&,
20575 basic_string<_CharT2, _Traits2, _Alloc>&);
20577 template<typename _CharT2, typename _Traits2, typename _Alloc>
20578 friend basic_istream<_CharT2, _Traits2>&
20579 getline(basic_istream<_CharT2, _Traits2>&,
20580 basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2);
20583 # 183 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20584 char_type* _M_in_beg;
20585 char_type* _M_in_cur;
20586 char_type* _M_in_end;
20587 char_type* _M_out_beg;
20588 char_type* _M_out_cur;
20589 char_type* _M_out_end;
20596 locale _M_buf_locale;
20603 # 211 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20605 pubimbue(const locale &__loc)
20607 locale __tmp(this->getloc());
20608 this->imbue(__loc);
20609 _M_buf_locale = __loc;
20612 # 228 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20615 { return _M_buf_locale; }
20616 # 241 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20618 pubsetbuf(char_type* __s, streamsize __n)
20619 { return this->setbuf(__s, __n); }
20622 pubseekoff(off_type __off, ios_base::seekdir __way,
20623 ios_base::openmode __mode = ios_base::in | ios_base::out)
20624 { return this->seekoff(__off, __way, __mode); }
20627 pubseekpos(pos_type __sp,
20628 ios_base::openmode __mode = ios_base::in | ios_base::out)
20629 { return this->seekpos(__sp, __mode); }
20632 pubsync() { return this->sync(); }
20633 # 268 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20637 const streamsize __ret = this->egptr() - this->gptr();
20638 return __ret ? __ret : this->showmanyc();
20640 # 282 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20644 int_type __ret = traits_type::eof();
20645 if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(),
20647 __ret = this->sgetc();
20650 # 300 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20655 if (__builtin_expect(this->gptr() < this->egptr(), true))
20657 __ret = traits_type::to_int_type(*this->gptr());
20661 __ret = this->uflow();
20664 # 322 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20669 if (__builtin_expect(this->gptr() < this->egptr(), true))
20670 __ret = traits_type::to_int_type(*this->gptr());
20672 __ret = this->underflow();
20675 # 341 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20677 sgetn(char_type* __s, streamsize __n)
20678 { return this->xsgetn(__s, __n); }
20679 # 355 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20681 sputbackc(char_type __c)
20684 const bool __testpos = this->eback() < this->gptr();
20685 if (__builtin_expect(!__testpos ||
20686 !traits_type::eq(__c, this->gptr()[-1]), false))
20687 __ret = this->pbackfail(traits_type::to_int_type(__c));
20691 __ret = traits_type::to_int_type(*this->gptr());
20695 # 380 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20700 if (__builtin_expect(this->eback() < this->gptr(), true))
20703 __ret = traits_type::to_int_type(*this->gptr());
20706 __ret = this->pbackfail();
20709 # 407 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20711 sputc(char_type __c)
20714 if (__builtin_expect(this->pptr() < this->epptr(), true))
20716 *this->pptr() = __c;
20718 __ret = traits_type::to_int_type(__c);
20721 __ret = this->overflow(traits_type::to_int_type(__c));
20724 # 433 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20726 sputn(const char_type* __s, streamsize __n)
20727 { return this->xsputn(__s, __n); }
20730 # 447 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20732 : _M_in_beg(0), _M_in_cur(0), _M_in_end(0),
20733 _M_out_beg(0), _M_out_cur(0), _M_out_end(0),
20734 _M_buf_locale(locale())
20736 # 465 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20738 eback() const { return _M_in_beg; }
20741 gptr() const { return _M_in_cur; }
20744 egptr() const { return _M_in_end; }
20745 # 481 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20747 gbump(int __n) { _M_in_cur += __n; }
20748 # 492 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20750 setg(char_type* __gbeg, char_type* __gnext, char_type* __gend)
20752 _M_in_beg = __gbeg;
20753 _M_in_cur = __gnext;
20754 _M_in_end = __gend;
20756 # 512 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20758 pbase() const { return _M_out_beg; }
20761 pptr() const { return _M_out_cur; }
20764 epptr() const { return _M_out_end; }
20765 # 528 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20767 pbump(int __n) { _M_out_cur += __n; }
20768 # 538 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20770 setp(char_type* __pbeg, char_type* __pend)
20772 _M_out_beg = _M_out_cur = __pbeg;
20773 _M_out_end = __pend;
20775 # 559 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20777 imbue(const locale&)
20779 # 574 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20780 virtual basic_streambuf<char_type,_Traits>*
20781 setbuf(char_type*, streamsize)
20783 # 585 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20785 seekoff(off_type, ios_base::seekdir,
20786 ios_base::openmode = ios_base::in | ios_base::out)
20787 { return pos_type(off_type(-1)); }
20788 # 597 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20791 ios_base::openmode = ios_base::in | ios_base::out)
20792 { return pos_type(off_type(-1)); }
20793 # 610 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20795 sync() { return 0; }
20796 # 632 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20798 showmanyc() { return 0; }
20799 # 648 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20801 xsgetn(char_type* __s, streamsize __n);
20802 # 670 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20805 { return traits_type::eof(); }
20806 # 683 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20810 int_type __ret = traits_type::eof();
20811 const bool __testeof = traits_type::eq_int_type(this->underflow(),
20815 __ret = traits_type::to_int_type(*this->gptr());
20820 # 707 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20822 pbackfail(int_type = traits_type::eof())
20823 { return traits_type::eof(); }
20824 # 725 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20826 xsputn(const char_type* __s, streamsize __n);
20827 # 750 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20829 overflow(int_type = traits_type::eof())
20830 { return traits_type::eof(); }
20831 # 779 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 3
20835 basic_streambuf(const __streambuf_type& __sb)
20836 : _M_in_beg(__sb._M_in_beg), _M_in_cur(__sb._M_in_cur),
20837 _M_in_end(__sb._M_in_end), _M_out_beg(__sb._M_out_beg),
20838 _M_out_cur(__sb._M_out_cur), _M_out_end(__sb._M_out_cur),
20839 _M_buf_locale(__sb._M_buf_locale)
20843 operator=(const __streambuf_type&) { return *this; };
20849 __copy_streambufs(basic_streambuf<char>* __sbin,
20850 basic_streambuf<char>* __sbout);
20854 __copy_streambufs(basic_streambuf<wchar_t>* __sbin,
20855 basic_streambuf<wchar_t>* __sbout);
20860 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/streambuf.tcc" 1 3
20861 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/streambuf.tcc" 3
20863 # 44 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/streambuf.tcc" 3
20867 template<typename _CharT, typename _Traits>
20869 basic_streambuf<_CharT, _Traits>::
20870 xsgetn(char_type* __s, streamsize __n)
20872 streamsize __ret = 0;
20873 while (__ret < __n)
20875 const streamsize __buf_len = this->egptr() - this->gptr();
20878 const streamsize __remaining = __n - __ret;
20879 const streamsize __len = std::min(__buf_len, __remaining);
20880 traits_type::copy(__s, this->gptr(), __len);
20883 this->gbump(__len);
20888 const int_type __c = this->uflow();
20889 if (!traits_type::eq_int_type(__c, traits_type::eof()))
20891 traits_type::assign(*__s++, traits_type::to_char_type(__c));
20901 template<typename _CharT, typename _Traits>
20903 basic_streambuf<_CharT, _Traits>::
20904 xsputn(const char_type* __s, streamsize __n)
20906 streamsize __ret = 0;
20907 while (__ret < __n)
20909 const streamsize __buf_len = this->epptr() - this->pptr();
20912 const streamsize __remaining = __n - __ret;
20913 const streamsize __len = std::min(__buf_len, __remaining);
20914 traits_type::copy(this->pptr(), __s, __len);
20917 this->pbump(__len);
20922 int_type __c = this->overflow(traits_type::to_int_type(*__s));
20923 if (!traits_type::eq_int_type(__c, traits_type::eof()))
20938 template<typename _CharT, typename _Traits>
20940 __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin,
20941 basic_streambuf<_CharT, _Traits>* __sbout)
20943 streamsize __ret = 0;
20944 typename _Traits::int_type __c = __sbin->sgetc();
20945 while (!_Traits::eq_int_type(__c, _Traits::eof()))
20947 __c = __sbout->sputc(_Traits::to_char_type(__c));
20948 if (_Traits::eq_int_type(__c, _Traits::eof()))
20951 __c = __sbin->snextc();
20960 extern template class basic_streambuf<char>;
20963 __copy_streambufs(basic_streambuf<char>*, basic_streambuf<char>*);
20966 extern template class basic_streambuf<wchar_t>;
20969 __copy_streambufs(basic_streambuf<wchar_t>*, basic_streambuf<wchar_t>*);
20973 # 808 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/streambuf" 2 3
20976 #pragma GCC visibility pop
20977 # 52 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ios" 2 3
20978 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 1 3
20979 # 39 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
20981 # 40 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
20983 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/streambuf_iterator.h" 1 3
20984 # 39 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/streambuf_iterator.h" 3
20986 # 40 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/streambuf_iterator.h" 3
20997 template<typename _CharT, typename _Traits>
20998 class istreambuf_iterator
20999 : public iterator<input_iterator_tag, _CharT, typename _Traits::off_type,
21006 typedef _CharT char_type;
21007 typedef _Traits traits_type;
21008 typedef typename _Traits::int_type int_type;
21009 typedef basic_streambuf<_CharT, _Traits> streambuf_type;
21010 typedef basic_istream<_CharT, _Traits> istream_type;
21021 mutable streambuf_type* _M_sbuf;
21022 mutable int_type _M_c;
21026 istreambuf_iterator() throw()
21027 : _M_sbuf(0), _M_c(traits_type::eof()) { }
21030 istreambuf_iterator(istream_type& __s) throw()
21031 : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { }
21034 istreambuf_iterator(streambuf_type* __s) throw()
21035 : _M_sbuf(__s), _M_c(traits_type::eof()) { }
21050 return traits_type::to_char_type(_M_get());
21054 istreambuf_iterator&
21063 _M_c = traits_type::eof();
21069 istreambuf_iterator
21076 istreambuf_iterator __old = *this;
21079 __old._M_c = _M_sbuf->sbumpc();
21080 _M_c = traits_type::eof();
21090 equal(const istreambuf_iterator& __b) const
21092 const bool __thiseof = _M_at_eof();
21093 const bool __beof = __b._M_at_eof();
21094 return (__thiseof && __beof || (!__thiseof && !__beof));
21101 const int_type __eof = traits_type::eof();
21102 int_type __ret = __eof;
21105 if (!traits_type::eq_int_type(_M_c, __eof))
21107 else if (!traits_type::eq_int_type((__ret = _M_sbuf->sgetc()),
21119 const int_type __eof = traits_type::eof();
21120 return traits_type::eq_int_type(_M_get(), __eof);
21124 template<typename _CharT, typename _Traits>
21126 operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
21127 const istreambuf_iterator<_CharT, _Traits>& __b)
21128 { return __a.equal(__b); }
21130 template<typename _CharT, typename _Traits>
21132 operator!=(const istreambuf_iterator<_CharT, _Traits>& __a,
21133 const istreambuf_iterator<_CharT, _Traits>& __b)
21134 { return !__a.equal(__b); }
21137 template<typename _CharT, typename _Traits>
21138 class ostreambuf_iterator
21139 : public iterator<output_iterator_tag, void, void, void, void>
21145 typedef _CharT char_type;
21146 typedef _Traits traits_type;
21147 typedef basic_streambuf<_CharT, _Traits> streambuf_type;
21148 typedef basic_ostream<_CharT, _Traits> ostream_type;
21152 streambuf_type* _M_sbuf;
21157 ostreambuf_iterator(ostream_type& __s) throw ()
21158 : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { }
21161 ostreambuf_iterator(streambuf_type* __s) throw ()
21162 : _M_sbuf(__s), _M_failed(!_M_sbuf) { }
21165 ostreambuf_iterator&
21166 operator=(_CharT __c)
21169 _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof()))
21175 ostreambuf_iterator&
21180 ostreambuf_iterator&
21185 ostreambuf_iterator&
21191 failed() const throw()
21192 { return _M_failed; }
21194 ostreambuf_iterator&
21195 _M_put(const _CharT* __ws, streamsize __len)
21197 if (__builtin_expect(!_M_failed, true)
21198 && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len,
21205 # 42 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 2 3
21208 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 1 3
21209 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21211 # 44 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21214 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cwctype" 1 3
21215 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cwctype" 3
21217 # 49 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cwctype" 3
21218 #pragma GCC visibility push(default)
21223 # 1 "/usr/include/wctype.h" 1 3 4
21224 # 35 "/usr/include/wctype.h" 3 4
21225 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4
21226 # 36 "/usr/include/wctype.h" 2 3 4
21227 # 45 "/usr/include/wctype.h" 3 4
21229 # 63 "/usr/include/wctype.h" 3 4
21233 typedef unsigned long int wctype_t;
21235 # 85 "/usr/include/wctype.h" 3 4
21251 _ISwupper = (1 << (__ISwupper)),
21252 _ISwlower = (1 << (__ISwlower)),
21253 _ISwalpha = (1 << (__ISwalpha)),
21254 _ISwdigit = (1 << (__ISwdigit)),
21255 _ISwxdigit = (1 << (__ISwxdigit)),
21256 _ISwspace = (1 << (__ISwspace)),
21257 _ISwprint = (1 << (__ISwprint)),
21258 _ISwgraph = (1 << (__ISwgraph)),
21259 _ISwblank = (1 << (__ISwblank)),
21260 _ISwcntrl = (1 << (__ISwcntrl)),
21261 _ISwpunct = (1 << (__ISwpunct)),
21262 _ISwalnum = (1 << (__ISwalnum))
21276 extern int iswalnum (wint_t __wc) throw ();
21282 extern int iswalpha (wint_t __wc) throw ();
21285 extern int iswcntrl (wint_t __wc) throw ();
21289 extern int iswdigit (wint_t __wc) throw ();
21293 extern int iswgraph (wint_t __wc) throw ();
21298 extern int iswlower (wint_t __wc) throw ();
21301 extern int iswprint (wint_t __wc) throw ();
21306 extern int iswpunct (wint_t __wc) throw ();
21311 extern int iswspace (wint_t __wc) throw ();
21316 extern int iswupper (wint_t __wc) throw ();
21321 extern int iswxdigit (wint_t __wc) throw ();
21327 extern int iswblank (wint_t __wc) throw ();
21328 # 185 "/usr/include/wctype.h" 3 4
21329 extern wctype_t wctype (__const char *__property) throw ();
21333 extern int iswctype (wint_t __wc, wctype_t __desc) throw ();
21344 typedef __const __int32_t *wctrans_t;
21352 extern wint_t towlower (wint_t __wc) throw ();
21355 extern wint_t towupper (wint_t __wc) throw ();
21359 # 227 "/usr/include/wctype.h" 3 4
21365 extern wctrans_t wctrans (__const char *__property) throw ();
21368 extern wint_t towctrans (wint_t __wc, wctrans_t __desc) throw ();
21377 extern int iswalnum_l (wint_t __wc, __locale_t __locale) throw ();
21383 extern int iswalpha_l (wint_t __wc, __locale_t __locale) throw ();
21386 extern int iswcntrl_l (wint_t __wc, __locale_t __locale) throw ();
21390 extern int iswdigit_l (wint_t __wc, __locale_t __locale) throw ();
21394 extern int iswgraph_l (wint_t __wc, __locale_t __locale) throw ();
21399 extern int iswlower_l (wint_t __wc, __locale_t __locale) throw ();
21402 extern int iswprint_l (wint_t __wc, __locale_t __locale) throw ();
21407 extern int iswpunct_l (wint_t __wc, __locale_t __locale) throw ();
21412 extern int iswspace_l (wint_t __wc, __locale_t __locale) throw ();
21417 extern int iswupper_l (wint_t __wc, __locale_t __locale) throw ();
21422 extern int iswxdigit_l (wint_t __wc, __locale_t __locale) throw ();
21427 extern int iswblank_l (wint_t __wc, __locale_t __locale) throw ();
21431 extern wctype_t wctype_l (__const char *__property, __locale_t __locale)
21436 extern int iswctype_l (wint_t __wc, wctype_t __desc, __locale_t __locale)
21445 extern wint_t towlower_l (wint_t __wc, __locale_t __locale) throw ();
21448 extern wint_t towupper_l (wint_t __wc, __locale_t __locale) throw ();
21452 extern wctrans_t wctrans_l (__const char *__property, __locale_t __locale)
21456 extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc,
21457 __locale_t __locale) throw ();
21462 # 55 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cwctype" 2 3
21463 # 80 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/cwctype" 3
21494 #pragma GCC visibility pop
21495 # 47 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 2 3
21502 # 63 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21503 template<typename _Tv>
21505 __convert_to_v(const char* __in, _Tv& __out, ios_base::iostate& __err,
21506 const __c_locale& __cloc);
21511 __convert_to_v(const char*, float&, ios_base::iostate&,
21512 const __c_locale&);
21516 __convert_to_v(const char*, double&, ios_base::iostate&,
21517 const __c_locale&);
21521 __convert_to_v(const char*, long double&, ios_base::iostate&,
21522 const __c_locale&);
21526 template<typename _CharT, typename _Traits>
21530 _S_pad(ios_base& __io, _CharT __fill, _CharT* __news,
21531 const _CharT* __olds, const streamsize __newlen,
21532 const streamsize __oldlen, const bool __num);
21540 template<typename _CharT>
21542 __add_grouping(_CharT* __s, _CharT __sep,
21543 const char* __gbeg, size_t __gsize,
21544 const _CharT* __first, const _CharT* __last);
21549 template<typename _CharT>
21551 ostreambuf_iterator<_CharT>
21552 __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len)
21554 __s._M_put(__ws, __len);
21559 template<typename _CharT, typename _OutIter>
21562 __write(_OutIter __s, const _CharT* __ws, int __len)
21564 for (int __j = 0; __j < __len; __j++, ++__s)
21572 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/ctype_base.h" 1 3
21573 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/ctype_base.h" 3
21577 typedef const int* __to_type;
21581 typedef unsigned short mask;
21582 static const mask upper = _ISupper;
21583 static const mask lower = _ISlower;
21584 static const mask alpha = _ISalpha;
21585 static const mask digit = _ISdigit;
21586 static const mask xdigit = _ISxdigit;
21587 static const mask space = _ISspace;
21588 static const mask print = _ISprint;
21589 static const mask graph = _ISalpha | _ISdigit | _ISpunct;
21590 static const mask cntrl = _IScntrl;
21591 static const mask punct = _ISpunct;
21592 static const mask alnum = _ISalpha | _ISdigit;
21594 # 133 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 2 3
21595 # 144 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21596 template<typename _CharT>
21597 class __ctype_abstract_base : public locale::facet, public ctype_base
21602 typedef _CharT char_type;
21603 # 162 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21605 is(mask __m, char_type __c) const
21606 { return this->do_is(__m, __c); }
21607 # 179 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21609 is(const char_type *__lo, const char_type *__hi, mask *__vec) const
21610 { return this->do_is(__lo, __hi, __vec); }
21611 # 195 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21613 scan_is(mask __m, const char_type* __lo, const char_type* __hi) const
21614 { return this->do_scan_is(__m, __lo, __hi); }
21615 # 211 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21617 scan_not(mask __m, const char_type* __lo, const char_type* __hi) const
21618 { return this->do_scan_not(__m, __lo, __hi); }
21619 # 225 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21621 toupper(char_type __c) const
21622 { return this->do_toupper(__c); }
21623 # 240 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21625 toupper(char_type *__lo, const char_type* __hi) const
21626 { return this->do_toupper(__lo, __hi); }
21627 # 254 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21629 tolower(char_type __c) const
21630 { return this->do_tolower(__c); }
21631 # 269 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21633 tolower(char_type* __lo, const char_type* __hi) const
21634 { return this->do_tolower(__lo, __hi); }
21635 # 286 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21637 widen(char __c) const
21638 { return this->do_widen(__c); }
21639 # 305 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21641 widen(const char* __lo, const char* __hi, char_type* __to) const
21642 { return this->do_widen(__lo, __hi, __to); }
21643 # 324 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21645 narrow(char_type __c, char __dfault) const
21646 { return this->do_narrow(__c, __dfault); }
21647 # 346 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21649 narrow(const char_type* __lo, const char_type* __hi,
21650 char __dfault, char *__to) const
21651 { return this->do_narrow(__lo, __hi, __dfault, __to); }
21655 __ctype_abstract_base(size_t __refs = 0): facet(__refs) { }
21658 ~__ctype_abstract_base() { }
21659 # 371 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21661 do_is(mask __m, char_type __c) const = 0;
21662 # 390 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21663 virtual const char_type*
21664 do_is(const char_type* __lo, const char_type* __hi,
21665 mask* __vec) const = 0;
21666 # 409 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21667 virtual const char_type*
21668 do_scan_is(mask __m, const char_type* __lo,
21669 const char_type* __hi) const = 0;
21670 # 428 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21671 virtual const char_type*
21672 do_scan_not(mask __m, const char_type* __lo,
21673 const char_type* __hi) const = 0;
21674 # 446 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21676 do_toupper(char_type) const = 0;
21677 # 463 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21678 virtual const char_type*
21679 do_toupper(char_type* __lo, const char_type* __hi) const = 0;
21680 # 479 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21682 do_tolower(char_type) const = 0;
21683 # 496 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21684 virtual const char_type*
21685 do_tolower(char_type* __lo, const char_type* __hi) const = 0;
21686 # 515 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21688 do_widen(char) const = 0;
21689 # 536 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21690 virtual const char*
21691 do_widen(const char* __lo, const char* __hi,
21692 char_type* __dest) const = 0;
21693 # 558 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21695 do_narrow(char_type, char __dfault) const = 0;
21696 # 582 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21697 virtual const char_type*
21698 do_narrow(const char_type* __lo, const char_type* __hi,
21699 char __dfault, char* __dest) const = 0;
21701 # 605 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21702 template<typename _CharT>
21703 class ctype : public __ctype_abstract_base<_CharT>
21707 typedef _CharT char_type;
21708 typedef typename __ctype_abstract_base<_CharT>::mask mask;
21711 static locale::id id;
21714 ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { }
21721 do_is(mask __m, char_type __c) const;
21723 virtual const char_type*
21724 do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const;
21726 virtual const char_type*
21727 do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const;
21729 virtual const char_type*
21730 do_scan_not(mask __m, const char_type* __lo,
21731 const char_type* __hi) const;
21734 do_toupper(char_type __c) const;
21736 virtual const char_type*
21737 do_toupper(char_type* __lo, const char_type* __hi) const;
21740 do_tolower(char_type __c) const;
21742 virtual const char_type*
21743 do_tolower(char_type* __lo, const char_type* __hi) const;
21746 do_widen(char __c) const;
21748 virtual const char*
21749 do_widen(const char* __lo, const char* __hi, char_type* __dest) const;
21752 do_narrow(char_type, char __dfault) const;
21754 virtual const char_type*
21755 do_narrow(const char_type* __lo, const char_type* __hi,
21756 char __dfault, char* __dest) const;
21759 template<typename _CharT>
21760 locale::id ctype<_CharT>::id;
21761 # 674 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21763 class ctype<char> : public locale::facet, public ctype_base
21768 typedef char char_type;
21772 __c_locale _M_c_locale_ctype;
21774 __to_type _M_toupper;
21775 __to_type _M_tolower;
21776 const mask* _M_table;
21777 mutable char _M_widen_ok;
21778 mutable char _M_widen[1 + static_cast<unsigned char>(-1)];
21779 mutable char _M_narrow[1 + static_cast<unsigned char>(-1)];
21780 mutable char _M_narrow_ok;
21785 static locale::id id;
21787 static const size_t table_size = 1 + static_cast<unsigned char>(-1);
21788 # 711 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21790 ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0);
21791 # 724 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21793 ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false,
21794 size_t __refs = 0);
21795 # 737 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21797 is(mask __m, char __c) const;
21798 # 752 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21800 is(const char* __lo, const char* __hi, mask* __vec) const;
21801 # 766 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21803 scan_is(mask __m, const char* __lo, const char* __hi) const;
21804 # 780 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21806 scan_not(mask __m, const char* __lo, const char* __hi) const;
21807 # 795 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21809 toupper(char_type __c) const
21810 { return this->do_toupper(__c); }
21811 # 812 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21813 toupper(char_type *__lo, const char_type* __hi) const
21814 { return this->do_toupper(__lo, __hi); }
21815 # 828 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21817 tolower(char_type __c) const
21818 { return this->do_tolower(__c); }
21819 # 845 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21821 tolower(char_type* __lo, const char_type* __hi) const
21822 { return this->do_tolower(__lo, __hi); }
21823 # 865 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21825 widen(char __c) const
21828 return _M_widen[static_cast<unsigned char>(__c)];
21829 this->_M_widen_init();
21830 return this->do_widen(__c);
21832 # 892 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21834 widen(const char* __lo, const char* __hi, char_type* __to) const
21836 if (_M_widen_ok == 1)
21838 memcpy(__to, __lo, __hi - __lo);
21843 return this->do_widen(__lo, __hi, __to);
21845 # 923 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21847 narrow(char_type __c, char __dfault) const
21849 if (_M_narrow[static_cast<unsigned char>(__c)])
21850 return _M_narrow[static_cast<unsigned char>(__c)];
21851 const char __t = do_narrow(__c, __dfault);
21852 if (__t != __dfault)
21853 _M_narrow[static_cast<unsigned char>(__c)] = __t;
21856 # 956 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21858 narrow(const char_type* __lo, const char_type* __hi,
21859 char __dfault, char *__to) const
21861 if (__builtin_expect(_M_narrow_ok == 1, true))
21863 memcpy(__to, __lo, __hi - __lo);
21868 return this->do_narrow(__lo, __hi, __dfault, __to);
21875 table() const throw()
21876 { return _M_table; }
21880 classic_table() throw();
21890 # 1003 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21892 do_toupper(char_type) const;
21893 # 1020 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21894 virtual const char_type*
21895 do_toupper(char_type* __lo, const char_type* __hi) const;
21896 # 1036 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21898 do_tolower(char_type) const;
21899 # 1053 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21900 virtual const char_type*
21901 do_tolower(char_type* __lo, const char_type* __hi) const;
21902 # 1073 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21904 do_widen(char __c) const
21906 # 1096 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21907 virtual const char*
21908 do_widen(const char* __lo, const char* __hi, char_type* __dest) const
21910 memcpy(__dest, __lo, __hi - __lo);
21913 # 1122 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21915 do_narrow(char_type __c, char) const
21917 # 1148 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21918 virtual const char_type*
21919 do_narrow(const char_type* __lo, const char_type* __hi,
21920 char, char* __dest) const
21922 memcpy(__dest, __lo, __hi - __lo);
21928 void _M_widen_init() const
21930 char __tmp[sizeof(_M_widen)];
21931 for (size_t __i = 0; __i < sizeof(_M_widen); ++__i)
21933 do_widen(__tmp, __tmp + sizeof(__tmp), _M_widen);
21937 if (memcmp(__tmp, _M_widen, sizeof(_M_widen)))
21944 void _M_narrow_init() const
21946 char __tmp[sizeof(_M_narrow)];
21947 for (size_t __i = 0; __i < sizeof(_M_narrow); ++__i)
21949 do_narrow(__tmp, __tmp + sizeof(__tmp), 0, _M_narrow);
21952 if (memcmp(__tmp, _M_narrow, sizeof(_M_narrow)))
21959 do_narrow(__tmp, __tmp + 1, 1, &__c);
21968 use_facet<ctype<char> >(const locale& __loc);
21969 # 1212 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21971 class ctype<wchar_t> : public __ctype_abstract_base<wchar_t>
21976 typedef wchar_t char_type;
21977 typedef wctype_t __wmask_type;
21980 __c_locale _M_c_locale_ctype;
21984 char _M_narrow[128];
21985 wint_t _M_widen[1 + static_cast<unsigned char>(-1)];
21989 __wmask_type _M_wmask[16];
21994 static locale::id id;
21995 # 1245 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
21997 ctype(size_t __refs = 0);
21998 # 1256 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22000 ctype(__c_locale __cloc, size_t __refs = 0);
22004 _M_convert_to_wmask(const mask __m) const;
22009 # 1280 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22011 do_is(mask __m, char_type __c) const;
22012 # 1299 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22013 virtual const char_type*
22014 do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const;
22015 # 1317 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22016 virtual const char_type*
22017 do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const;
22018 # 1335 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22019 virtual const char_type*
22020 do_scan_not(mask __m, const char_type* __lo,
22021 const char_type* __hi) const;
22022 # 1352 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22024 do_toupper(char_type) const;
22025 # 1369 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22026 virtual const char_type*
22027 do_toupper(char_type* __lo, const char_type* __hi) const;
22028 # 1385 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22030 do_tolower(char_type) const;
22031 # 1402 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22032 virtual const char_type*
22033 do_tolower(char_type* __lo, const char_type* __hi) const;
22034 # 1422 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22036 do_widen(char) const;
22037 # 1444 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22038 virtual const char*
22039 do_widen(const char* __lo, const char* __hi, char_type* __dest) const;
22040 # 1467 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22042 do_narrow(char_type, char __dfault) const;
22043 # 1493 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22044 virtual const char_type*
22045 do_narrow(const char_type* __lo, const char_type* __hi,
22046 char __dfault, char* __dest) const;
22050 _M_initialize_ctype();
22054 const ctype<wchar_t>&
22055 use_facet<ctype<wchar_t> >(const locale& __loc);
22059 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/ctype_inline.h" 1 3
22060 # 37 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/ctype_inline.h" 3
22063 is(mask __m, char __c) const
22064 { return _M_table[static_cast<unsigned char>(__c)] & __m; }
22068 is(const char* __low, const char* __high, mask* __vec) const
22070 while (__low < __high)
22071 *__vec++ = _M_table[static_cast<unsigned char>(*__low++)];
22077 scan_is(mask __m, const char* __low, const char* __high) const
22079 while (__low < __high
22080 && !(_M_table[static_cast<unsigned char>(*__low)] & __m))
22087 scan_not(mask __m, const char* __low, const char* __high) const
22089 while (__low < __high
22090 && (_M_table[static_cast<unsigned char>(*__low)] & __m) != 0)
22094 # 1509 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 2 3
22097 template<typename _CharT>
22098 class ctype_byname : public ctype<_CharT>
22101 typedef _CharT char_type;
22104 ctype_byname(const char* __s, size_t __refs = 0);
22108 ~ctype_byname() { };
22113 ctype_byname<char>::ctype_byname(const char*, size_t refs);
22116 ctype_byname<wchar_t>::ctype_byname(const char*, size_t refs);
22119 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/codecvt.h" 1 3
22120 # 45 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/codecvt.h" 3
22122 # 46 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/codecvt.h" 3
22136 # 69 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/codecvt.h" 3
22137 template<typename _InternT, typename _ExternT, typename _StateT>
22138 class __codecvt_abstract_base
22139 : public locale::facet, public codecvt_base
22143 typedef codecvt_base::result result;
22144 typedef _InternT intern_type;
22145 typedef _ExternT extern_type;
22146 typedef _StateT state_type;
22147 # 117 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/codecvt.h" 3
22149 out(state_type& __state, const intern_type* __from,
22150 const intern_type* __from_end, const intern_type*& __from_next,
22151 extern_type* __to, extern_type* __to_end,
22152 extern_type*& __to_next) const
22154 return this->do_out(__state, __from, __from_end, __from_next,
22155 __to, __to_end, __to_next);
22157 # 156 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/codecvt.h" 3
22159 unshift(state_type& __state, extern_type* __to, extern_type* __to_end,
22160 extern_type*& __to_next) const
22161 { return this->do_unshift(__state, __to,__to_end,__to_next); }
22162 # 197 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/codecvt.h" 3
22164 in(state_type& __state, const extern_type* __from,
22165 const extern_type* __from_end, const extern_type*& __from_next,
22166 intern_type* __to, intern_type* __to_end,
22167 intern_type*& __to_next) const
22169 return this->do_in(__state, __from, __from_end, __from_next,
22170 __to, __to_end, __to_next);
22174 encoding() const throw()
22175 { return this->do_encoding(); }
22178 always_noconv() const throw()
22179 { return this->do_always_noconv(); }
22182 length(state_type& __state, const extern_type* __from,
22183 const extern_type* __end, size_t __max) const
22184 { return this->do_length(__state, __from, __end, __max); }
22187 max_length() const throw()
22188 { return this->do_max_length(); }
22192 __codecvt_abstract_base(size_t __refs = 0) : locale::facet(__refs) { }
22195 ~__codecvt_abstract_base() { }
22196 # 238 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/codecvt.h" 3
22198 do_out(state_type& __state, const intern_type* __from,
22199 const intern_type* __from_end, const intern_type*& __from_next,
22200 extern_type* __to, extern_type* __to_end,
22201 extern_type*& __to_next) const = 0;
22204 do_unshift(state_type& __state, extern_type* __to,
22205 extern_type* __to_end, extern_type*& __to_next) const = 0;
22208 do_in(state_type& __state, const extern_type* __from,
22209 const extern_type* __from_end, const extern_type*& __from_next,
22210 intern_type* __to, intern_type* __to_end,
22211 intern_type*& __to_next) const = 0;
22214 do_encoding() const throw() = 0;
22217 do_always_noconv() const throw() = 0;
22220 do_length(state_type&, const extern_type* __from,
22221 const extern_type* __end, size_t __max) const = 0;
22224 do_max_length() const throw() = 0;
22229 template<typename _InternT, typename _ExternT, typename _StateT>
22231 : public __codecvt_abstract_base<_InternT, _ExternT, _StateT>
22235 typedef codecvt_base::result result;
22236 typedef _InternT intern_type;
22237 typedef _ExternT extern_type;
22238 typedef _StateT state_type;
22241 __c_locale _M_c_locale_codecvt;
22244 static locale::id id;
22247 codecvt(size_t __refs = 0)
22248 : __codecvt_abstract_base<_InternT, _ExternT, _StateT> (__refs) { }
22251 codecvt(__c_locale __cloc, size_t __refs = 0);
22258 do_out(state_type& __state, const intern_type* __from,
22259 const intern_type* __from_end, const intern_type*& __from_next,
22260 extern_type* __to, extern_type* __to_end,
22261 extern_type*& __to_next) const;
22264 do_unshift(state_type& __state, extern_type* __to,
22265 extern_type* __to_end, extern_type*& __to_next) const;
22268 do_in(state_type& __state, const extern_type* __from,
22269 const extern_type* __from_end, const extern_type*& __from_next,
22270 intern_type* __to, intern_type* __to_end,
22271 intern_type*& __to_next) const;
22274 do_encoding() const throw();
22277 do_always_noconv() const throw();
22280 do_length(state_type&, const extern_type* __from,
22281 const extern_type* __end, size_t __max) const;
22284 do_max_length() const throw();
22287 template<typename _InternT, typename _ExternT, typename _StateT>
22288 locale::id codecvt<_InternT, _ExternT, _StateT>::id;
22292 class codecvt<char, char, mbstate_t>
22293 : public __codecvt_abstract_base<char, char, mbstate_t>
22297 typedef char intern_type;
22298 typedef char extern_type;
22299 typedef mbstate_t state_type;
22302 __c_locale _M_c_locale_codecvt;
22305 static locale::id id;
22308 codecvt(size_t __refs = 0);
22311 codecvt(__c_locale __cloc, size_t __refs = 0);
22318 do_out(state_type& __state, const intern_type* __from,
22319 const intern_type* __from_end, const intern_type*& __from_next,
22320 extern_type* __to, extern_type* __to_end,
22321 extern_type*& __to_next) const;
22324 do_unshift(state_type& __state, extern_type* __to,
22325 extern_type* __to_end, extern_type*& __to_next) const;
22328 do_in(state_type& __state, const extern_type* __from,
22329 const extern_type* __from_end, const extern_type*& __from_next,
22330 intern_type* __to, intern_type* __to_end,
22331 intern_type*& __to_next) const;
22334 do_encoding() const throw();
22337 do_always_noconv() const throw();
22340 do_length(state_type&, const extern_type* __from,
22341 const extern_type* __end, size_t __max) const;
22344 do_max_length() const throw();
22350 class codecvt<wchar_t, char, mbstate_t>
22351 : public __codecvt_abstract_base<wchar_t, char, mbstate_t>
22355 typedef wchar_t intern_type;
22356 typedef char extern_type;
22357 typedef mbstate_t state_type;
22360 __c_locale _M_c_locale_codecvt;
22363 static locale::id id;
22366 codecvt(size_t __refs = 0);
22369 codecvt(__c_locale __cloc, size_t __refs = 0);
22376 do_out(state_type& __state, const intern_type* __from,
22377 const intern_type* __from_end, const intern_type*& __from_next,
22378 extern_type* __to, extern_type* __to_end,
22379 extern_type*& __to_next) const;
22382 do_unshift(state_type& __state,
22383 extern_type* __to, extern_type* __to_end,
22384 extern_type*& __to_next) const;
22387 do_in(state_type& __state,
22388 const extern_type* __from, const extern_type* __from_end,
22389 const extern_type*& __from_next,
22390 intern_type* __to, intern_type* __to_end,
22391 intern_type*& __to_next) const;
22394 int do_encoding() const throw();
22397 bool do_always_noconv() const throw();
22400 int do_length(state_type&, const extern_type* __from,
22401 const extern_type* __end, size_t __max) const;
22404 do_max_length() const throw();
22409 template<typename _InternT, typename _ExternT, typename _StateT>
22410 class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT>
22414 codecvt_byname(const char* __s, size_t __refs = 0)
22415 : codecvt<_InternT, _ExternT, _StateT>(__refs)
22417 if (std::strcmp(__s, "C") != 0 && std::strcmp(__s, "POSIX") != 0)
22419 this->_S_destroy_c_locale(this->_M_c_locale_codecvt);
22420 this->_S_create_c_locale(this->_M_c_locale_codecvt, __s);
22426 ~codecvt_byname() { }
22428 # 1534 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 2 3
22443 _S_odigits_end = _S_odigits + 16,
22444 _S_oudigits = _S_odigits_end,
22445 _S_oudigits_end = _S_oudigits + 16,
22446 _S_oe = _S_odigits + 14,
22447 _S_oE = _S_oudigits + 14,
22448 _S_oend = _S_oudigits_end
22456 static const char* _S_atoms_out;
22460 static const char* _S_atoms_in;
22469 _S_ie = _S_izero + 14,
22470 _S_iE = _S_izero + 20,
22477 _S_format_float(const ios_base& __io, char* __fptr, char __mod);
22480 template<typename _CharT>
22481 struct __numpunct_cache : public locale::facet
22483 const char* _M_grouping;
22484 size_t _M_grouping_size;
22485 bool _M_use_grouping;
22486 const _CharT* _M_truename;
22487 size_t _M_truename_size;
22488 const _CharT* _M_falsename;
22489 size_t _M_falsename_size;
22490 _CharT _M_decimal_point;
22491 _CharT _M_thousands_sep;
22497 _CharT _M_atoms_out[__num_base::_S_oend];
22503 _CharT _M_atoms_in[__num_base::_S_iend];
22507 __numpunct_cache(size_t __refs = 0) : facet(__refs),
22508 _M_grouping(__null), _M_grouping_size(0), _M_use_grouping(false),
22509 _M_truename(__null), _M_truename_size(0), _M_falsename(__null),
22510 _M_falsename_size(0), _M_decimal_point(_CharT()),
22511 _M_thousands_sep(_CharT()), _M_allocated(false)
22514 ~__numpunct_cache();
22517 _M_cache(const locale& __loc);
22521 operator=(const __numpunct_cache&);
22524 __numpunct_cache(const __numpunct_cache&);
22527 template<typename _CharT>
22528 __numpunct_cache<_CharT>::~__numpunct_cache()
22532 delete [] _M_grouping;
22533 delete [] _M_truename;
22534 delete [] _M_falsename;
22537 # 1656 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22538 template<typename _CharT>
22539 class numpunct : public locale::facet
22545 typedef _CharT char_type;
22546 typedef basic_string<_CharT> string_type;
22548 typedef __numpunct_cache<_CharT> __cache_type;
22551 __cache_type* _M_data;
22555 static locale::id id;
22563 numpunct(size_t __refs = 0) : facet(__refs), _M_data(__null)
22564 { _M_initialize_numpunct(); }
22565 # 1693 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22567 numpunct(__cache_type* __cache, size_t __refs = 0)
22568 : facet(__refs), _M_data(__cache)
22569 { _M_initialize_numpunct(); }
22570 # 1707 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22572 numpunct(__c_locale __cloc, size_t __refs = 0)
22573 : facet(__refs), _M_data(__null)
22574 { _M_initialize_numpunct(__cloc); }
22575 # 1721 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22577 decimal_point() const
22578 { return this->do_decimal_point(); }
22579 # 1734 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22581 thousands_sep() const
22582 { return this->do_thousands_sep(); }
22583 # 1765 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22586 { return this->do_grouping(); }
22587 # 1778 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22590 { return this->do_truename(); }
22591 # 1791 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22594 { return this->do_falsename(); }
22600 # 1808 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22602 do_decimal_point() const
22603 { return _M_data->_M_decimal_point; }
22604 # 1820 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22606 do_thousands_sep() const
22607 { return _M_data->_M_thousands_sep; }
22608 # 1833 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22610 do_grouping() const
22611 { return _M_data->_M_grouping; }
22612 # 1846 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22613 virtual string_type
22614 do_truename() const
22615 { return _M_data->_M_truename; }
22616 # 1859 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22617 virtual string_type
22618 do_falsename() const
22619 { return _M_data->_M_falsename; }
22623 _M_initialize_numpunct(__c_locale __cloc = __null);
22626 template<typename _CharT>
22627 locale::id numpunct<_CharT>::id;
22630 numpunct<char>::~numpunct();
22634 numpunct<char>::_M_initialize_numpunct(__c_locale __cloc);
22638 numpunct<wchar_t>::~numpunct();
22642 numpunct<wchar_t>::_M_initialize_numpunct(__c_locale __cloc);
22646 template<typename _CharT>
22647 class numpunct_byname : public numpunct<_CharT>
22650 typedef _CharT char_type;
22651 typedef basic_string<_CharT> string_type;
22654 numpunct_byname(const char* __s, size_t __refs = 0)
22655 : numpunct<_CharT>(__refs)
22657 if (std::strcmp(__s, "C") != 0 && std::strcmp(__s, "POSIX") != 0)
22660 this->_S_create_c_locale(__tmp, __s);
22661 this->_M_initialize_numpunct(__tmp);
22662 this->_S_destroy_c_locale(__tmp);
22668 ~numpunct_byname() { }
22670 # 1925 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22671 template<typename _CharT, typename _InIter>
22672 class num_get : public locale::facet
22678 typedef _CharT char_type;
22679 typedef _InIter iter_type;
22683 static locale::id id;
22684 # 1946 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22686 num_get(size_t __refs = 0) : facet(__refs) { }
22687 # 1972 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22689 get(iter_type __in, iter_type __end, ios_base& __io,
22690 ios_base::iostate& __err, bool& __v) const
22691 { return this->do_get(__in, __end, __io, __err, __v); }
22692 # 2008 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22694 get(iter_type __in, iter_type __end, ios_base& __io,
22695 ios_base::iostate& __err, long& __v) const
22696 { return this->do_get(__in, __end, __io, __err, __v); }
22699 get(iter_type __in, iter_type __end, ios_base& __io,
22700 ios_base::iostate& __err, unsigned short& __v) const
22701 { return this->do_get(__in, __end, __io, __err, __v); }
22704 get(iter_type __in, iter_type __end, ios_base& __io,
22705 ios_base::iostate& __err, unsigned int& __v) const
22706 { return this->do_get(__in, __end, __io, __err, __v); }
22709 get(iter_type __in, iter_type __end, ios_base& __io,
22710 ios_base::iostate& __err, unsigned long& __v) const
22711 { return this->do_get(__in, __end, __io, __err, __v); }
22715 get(iter_type __in, iter_type __end, ios_base& __io,
22716 ios_base::iostate& __err, long long& __v) const
22717 { return this->do_get(__in, __end, __io, __err, __v); }
22720 get(iter_type __in, iter_type __end, ios_base& __io,
22721 ios_base::iostate& __err, unsigned long long& __v) const
22722 { return this->do_get(__in, __end, __io, __err, __v); }
22723 # 2067 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22725 get(iter_type __in, iter_type __end, ios_base& __io,
22726 ios_base::iostate& __err, float& __v) const
22727 { return this->do_get(__in, __end, __io, __err, __v); }
22730 get(iter_type __in, iter_type __end, ios_base& __io,
22731 ios_base::iostate& __err, double& __v) const
22732 { return this->do_get(__in, __end, __io, __err, __v); }
22735 get(iter_type __in, iter_type __end, ios_base& __io,
22736 ios_base::iostate& __err, long double& __v) const
22737 { return this->do_get(__in, __end, __io, __err, __v); }
22738 # 2109 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22740 get(iter_type __in, iter_type __end, ios_base& __io,
22741 ios_base::iostate& __err, void*& __v) const
22742 { return this->do_get(__in, __end, __io, __err, __v); }
22746 virtual ~num_get() { }
22749 _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&,
22750 string& __xtrc) const;
22752 template<typename _ValueT>
22754 _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&,
22755 _ValueT& __v) const;
22756 # 2142 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22758 do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const;
22762 do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, long&) const;
22765 do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,
22766 unsigned short&) const;
22769 do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,
22770 unsigned int&) const;
22773 do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,
22774 unsigned long&) const;
22778 do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,
22782 do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,
22783 unsigned long long&) const;
22787 do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,
22791 do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,
22795 do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,
22796 long double&) const;
22799 do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,
22804 template<typename _CharT, typename _InIter>
22805 locale::id num_get<_CharT, _InIter>::id;
22806 # 2204 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22807 template<typename _CharT, typename _OutIter>
22808 class num_put : public locale::facet
22814 typedef _CharT char_type;
22815 typedef _OutIter iter_type;
22819 static locale::id id;
22820 # 2225 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22822 num_put(size_t __refs = 0) : facet(__refs) { }
22823 # 2243 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22825 put(iter_type __s, ios_base& __f, char_type __fill, bool __v) const
22826 { return this->do_put(__s, __f, __fill, __v); }
22827 # 2285 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22829 put(iter_type __s, ios_base& __f, char_type __fill, long __v) const
22830 { return this->do_put(__s, __f, __fill, __v); }
22833 put(iter_type __s, ios_base& __f, char_type __fill,
22834 unsigned long __v) const
22835 { return this->do_put(__s, __f, __fill, __v); }
22839 put(iter_type __s, ios_base& __f, char_type __fill, long long __v) const
22840 { return this->do_put(__s, __f, __fill, __v); }
22843 put(iter_type __s, ios_base& __f, char_type __fill,
22844 unsigned long long __v) const
22845 { return this->do_put(__s, __f, __fill, __v); }
22846 # 2348 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22848 put(iter_type __s, ios_base& __f, char_type __fill, double __v) const
22849 { return this->do_put(__s, __f, __fill, __v); }
22852 put(iter_type __s, ios_base& __f, char_type __fill,
22853 long double __v) const
22854 { return this->do_put(__s, __f, __fill, __v); }
22855 # 2373 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22857 put(iter_type __s, ios_base& __f, char_type __fill,
22858 const void* __v) const
22859 { return this->do_put(__s, __f, __fill, __v); }
22862 template<typename _ValueT>
22864 _M_insert_float(iter_type, ios_base& __io, char_type __fill,
22865 char __mod, _ValueT __v) const;
22868 _M_group_float(const char* __grouping, size_t __grouping_size,
22869 char_type __sep, const char_type* __p, char_type* __new,
22870 char_type* __cs, int& __len) const;
22872 template<typename _ValueT>
22874 _M_insert_int(iter_type, ios_base& __io, char_type __fill,
22875 _ValueT __v) const;
22878 _M_group_int(const char* __grouping, size_t __grouping_size,
22879 char_type __sep, ios_base& __io, char_type* __new,
22880 char_type* __cs, int& __len) const;
22883 _M_pad(char_type __fill, streamsize __w, ios_base& __io,
22884 char_type* __new, const char_type* __cs, int& __len) const;
22889 # 2421 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22891 do_put(iter_type, ios_base&, char_type __fill, bool __v) const;
22894 do_put(iter_type, ios_base&, char_type __fill, long __v) const;
22897 do_put(iter_type, ios_base&, char_type __fill, unsigned long) const;
22901 do_put(iter_type, ios_base&, char_type __fill, long long __v) const;
22904 do_put(iter_type, ios_base&, char_type __fill, unsigned long long) const;
22908 do_put(iter_type, ios_base&, char_type __fill, double __v) const;
22911 do_put(iter_type, ios_base&, char_type __fill, long double __v) const;
22914 do_put(iter_type, ios_base&, char_type __fill, const void* __v) const;
22918 template <typename _CharT, typename _OutIter>
22919 locale::id num_put<_CharT, _OutIter>::id;
22920 # 2465 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22921 template<typename _CharT>
22922 class collate : public locale::facet
22928 typedef _CharT char_type;
22929 typedef basic_string<_CharT> string_type;
22935 __c_locale _M_c_locale_collate;
22939 static locale::id id;
22940 # 2492 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22942 collate(size_t __refs = 0)
22943 : facet(__refs), _M_c_locale_collate(_S_get_c_locale())
22945 # 2506 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22947 collate(__c_locale __cloc, size_t __refs = 0)
22948 : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc))
22950 # 2523 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22952 compare(const _CharT* __lo1, const _CharT* __hi1,
22953 const _CharT* __lo2, const _CharT* __hi2) const
22954 { return this->do_compare(__lo1, __hi1, __lo2, __hi2); }
22955 # 2542 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22957 transform(const _CharT* __lo, const _CharT* __hi) const
22958 { return this->do_transform(__lo, __hi); }
22959 # 2556 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22961 hash(const _CharT* __lo, const _CharT* __hi) const
22962 { return this->do_hash(__lo, __hi); }
22966 _M_compare(const _CharT*, const _CharT*) const;
22969 _M_transform(_CharT*, const _CharT*, size_t) const;
22975 { _S_destroy_c_locale(_M_c_locale_collate); }
22976 # 2585 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22978 do_compare(const _CharT* __lo1, const _CharT* __hi1,
22979 const _CharT* __lo2, const _CharT* __hi2) const;
22980 # 2601 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22981 virtual string_type
22982 do_transform(const _CharT* __lo, const _CharT* __hi) const;
22983 # 2614 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
22985 do_hash(const _CharT* __lo, const _CharT* __hi) const;
22988 template<typename _CharT>
22989 locale::id collate<_CharT>::id;
22994 collate<char>::_M_compare(const char*, const char*) const;
22998 collate<char>::_M_transform(char*, const char*, size_t) const;
23003 collate<wchar_t>::_M_compare(const wchar_t*, const wchar_t*) const;
23007 collate<wchar_t>::_M_transform(wchar_t*, const wchar_t*, size_t) const;
23011 template<typename _CharT>
23012 class collate_byname : public collate<_CharT>
23017 typedef _CharT char_type;
23018 typedef basic_string<_CharT> string_type;
23022 collate_byname(const char* __s, size_t __refs = 0)
23023 : collate<_CharT>(__refs)
23025 if (std::strcmp(__s, "C") != 0 && std::strcmp(__s, "POSIX") != 0)
23027 this->_S_destroy_c_locale(this->_M_c_locale_collate);
23028 this->_S_create_c_locale(this->_M_c_locale_collate, __s);
23034 ~collate_byname() { }
23036 # 2674 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23040 enum dateorder { no_order, dmy, mdy, ymd, ydm };
23043 template<typename _CharT>
23044 struct __timepunct_cache : public locale::facet
23047 static const _CharT* _S_timezones[14];
23049 const _CharT* _M_date_format;
23050 const _CharT* _M_date_era_format;
23051 const _CharT* _M_time_format;
23052 const _CharT* _M_time_era_format;
23053 const _CharT* _M_date_time_format;
23054 const _CharT* _M_date_time_era_format;
23055 const _CharT* _M_am;
23056 const _CharT* _M_pm;
23057 const _CharT* _M_am_pm_format;
23060 const _CharT* _M_day1;
23061 const _CharT* _M_day2;
23062 const _CharT* _M_day3;
23063 const _CharT* _M_day4;
23064 const _CharT* _M_day5;
23065 const _CharT* _M_day6;
23066 const _CharT* _M_day7;
23069 const _CharT* _M_aday1;
23070 const _CharT* _M_aday2;
23071 const _CharT* _M_aday3;
23072 const _CharT* _M_aday4;
23073 const _CharT* _M_aday5;
23074 const _CharT* _M_aday6;
23075 const _CharT* _M_aday7;
23078 const _CharT* _M_month01;
23079 const _CharT* _M_month02;
23080 const _CharT* _M_month03;
23081 const _CharT* _M_month04;
23082 const _CharT* _M_month05;
23083 const _CharT* _M_month06;
23084 const _CharT* _M_month07;
23085 const _CharT* _M_month08;
23086 const _CharT* _M_month09;
23087 const _CharT* _M_month10;
23088 const _CharT* _M_month11;
23089 const _CharT* _M_month12;
23092 const _CharT* _M_amonth01;
23093 const _CharT* _M_amonth02;
23094 const _CharT* _M_amonth03;
23095 const _CharT* _M_amonth04;
23096 const _CharT* _M_amonth05;
23097 const _CharT* _M_amonth06;
23098 const _CharT* _M_amonth07;
23099 const _CharT* _M_amonth08;
23100 const _CharT* _M_amonth09;
23101 const _CharT* _M_amonth10;
23102 const _CharT* _M_amonth11;
23103 const _CharT* _M_amonth12;
23107 __timepunct_cache(size_t __refs = 0) : facet(__refs),
23108 _M_date_format(__null), _M_date_era_format(__null), _M_time_format(__null),
23109 _M_time_era_format(__null), _M_date_time_format(__null),
23110 _M_date_time_era_format(__null), _M_am(__null), _M_pm(__null),
23111 _M_am_pm_format(__null), _M_day1(__null), _M_day2(__null), _M_day3(__null),
23112 _M_day4(__null), _M_day5(__null), _M_day6(__null), _M_day7(__null),
23113 _M_aday1(__null), _M_aday2(__null), _M_aday3(__null), _M_aday4(__null),
23114 _M_aday5(__null), _M_aday6(__null), _M_aday7(__null), _M_month01(__null),
23115 _M_month02(__null), _M_month03(__null), _M_month04(__null), _M_month05(__null),
23116 _M_month06(__null), _M_month07(__null), _M_month08(__null), _M_month09(__null),
23117 _M_month10(__null), _M_month11(__null), _M_month12(__null), _M_amonth01(__null),
23118 _M_amonth02(__null), _M_amonth03(__null), _M_amonth04(__null),
23119 _M_amonth05(__null), _M_amonth06(__null), _M_amonth07(__null),
23120 _M_amonth08(__null), _M_amonth09(__null), _M_amonth10(__null),
23121 _M_amonth11(__null), _M_amonth12(__null), _M_allocated(false)
23124 ~__timepunct_cache();
23127 _M_cache(const locale& __loc);
23131 operator=(const __timepunct_cache&);
23134 __timepunct_cache(const __timepunct_cache&);
23137 template<typename _CharT>
23138 __timepunct_cache<_CharT>::~__timepunct_cache()
23149 __timepunct_cache<char>::_S_timezones[14];
23154 __timepunct_cache<wchar_t>::_S_timezones[14];
23158 template<typename _CharT>
23159 const _CharT* __timepunct_cache<_CharT>::_S_timezones[14];
23161 template<typename _CharT>
23162 class __timepunct : public locale::facet
23166 typedef _CharT __char_type;
23167 typedef basic_string<_CharT> __string_type;
23168 typedef __timepunct_cache<_CharT> __cache_type;
23171 __cache_type* _M_data;
23172 __c_locale _M_c_locale_timepunct;
23173 const char* _M_name_timepunct;
23177 static locale::id id;
23180 __timepunct(size_t __refs = 0);
23183 __timepunct(__cache_type* __cache, size_t __refs = 0);
23184 # 2832 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23186 __timepunct(__c_locale __cloc, const char* __s, size_t __refs = 0);
23191 _M_put(_CharT* __s, size_t __maxlen, const _CharT* __format,
23192 const tm* __tm) const;
23195 _M_date_formats(const _CharT** __date) const
23198 __date[0] = _M_data->_M_date_format;
23199 __date[1] = _M_data->_M_date_era_format;
23203 _M_time_formats(const _CharT** __time) const
23206 __time[0] = _M_data->_M_time_format;
23207 __time[1] = _M_data->_M_time_era_format;
23211 _M_date_time_formats(const _CharT** __dt) const
23214 __dt[0] = _M_data->_M_date_time_format;
23215 __dt[1] = _M_data->_M_date_time_era_format;
23219 _M_am_pm_format(const _CharT* __ampm) const
23220 { __ampm = _M_data->_M_am_pm_format; }
23223 _M_am_pm(const _CharT** __ampm) const
23225 __ampm[0] = _M_data->_M_am;
23226 __ampm[1] = _M_data->_M_pm;
23230 _M_days(const _CharT** __days) const
23232 __days[0] = _M_data->_M_day1;
23233 __days[1] = _M_data->_M_day2;
23234 __days[2] = _M_data->_M_day3;
23235 __days[3] = _M_data->_M_day4;
23236 __days[4] = _M_data->_M_day5;
23237 __days[5] = _M_data->_M_day6;
23238 __days[6] = _M_data->_M_day7;
23242 _M_days_abbreviated(const _CharT** __days) const
23244 __days[0] = _M_data->_M_aday1;
23245 __days[1] = _M_data->_M_aday2;
23246 __days[2] = _M_data->_M_aday3;
23247 __days[3] = _M_data->_M_aday4;
23248 __days[4] = _M_data->_M_aday5;
23249 __days[5] = _M_data->_M_aday6;
23250 __days[6] = _M_data->_M_aday7;
23254 _M_months(const _CharT** __months) const
23256 __months[0] = _M_data->_M_month01;
23257 __months[1] = _M_data->_M_month02;
23258 __months[2] = _M_data->_M_month03;
23259 __months[3] = _M_data->_M_month04;
23260 __months[4] = _M_data->_M_month05;
23261 __months[5] = _M_data->_M_month06;
23262 __months[6] = _M_data->_M_month07;
23263 __months[7] = _M_data->_M_month08;
23264 __months[8] = _M_data->_M_month09;
23265 __months[9] = _M_data->_M_month10;
23266 __months[10] = _M_data->_M_month11;
23267 __months[11] = _M_data->_M_month12;
23271 _M_months_abbreviated(const _CharT** __months) const
23273 __months[0] = _M_data->_M_amonth01;
23274 __months[1] = _M_data->_M_amonth02;
23275 __months[2] = _M_data->_M_amonth03;
23276 __months[3] = _M_data->_M_amonth04;
23277 __months[4] = _M_data->_M_amonth05;
23278 __months[5] = _M_data->_M_amonth06;
23279 __months[6] = _M_data->_M_amonth07;
23280 __months[7] = _M_data->_M_amonth08;
23281 __months[8] = _M_data->_M_amonth09;
23282 __months[9] = _M_data->_M_amonth10;
23283 __months[10] = _M_data->_M_amonth11;
23284 __months[11] = _M_data->_M_amonth12;
23293 _M_initialize_timepunct(__c_locale __cloc = __null);
23296 template<typename _CharT>
23297 locale::id __timepunct<_CharT>::id;
23302 __timepunct<char>::_M_initialize_timepunct(__c_locale __cloc);
23306 __timepunct<char>::_M_put(char*, size_t, const char*, const tm*) const;
23311 __timepunct<wchar_t>::_M_initialize_timepunct(__c_locale __cloc);
23315 __timepunct<wchar_t>::_M_put(wchar_t*, size_t, const wchar_t*,
23320 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/time_members.h" 1 3
23321 # 37 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/time_members.h" 3
23322 template<typename _CharT>
23323 __timepunct<_CharT>::__timepunct(size_t __refs)
23324 : facet(__refs), _M_data(__null), _M_c_locale_timepunct(__null),
23325 _M_name_timepunct(_S_get_c_name())
23326 { _M_initialize_timepunct(); }
23328 template<typename _CharT>
23329 __timepunct<_CharT>::__timepunct(__cache_type* __cache, size_t __refs)
23330 : facet(__refs), _M_data(__cache), _M_c_locale_timepunct(__null),
23331 _M_name_timepunct(_S_get_c_name())
23332 { _M_initialize_timepunct(); }
23334 template<typename _CharT>
23335 __timepunct<_CharT>::__timepunct(__c_locale __cloc, const char* __s,
23337 : facet(__refs), _M_data(__null), _M_c_locale_timepunct(__null),
23338 _M_name_timepunct(__null)
23340 const size_t __len = std::strlen(__s) + 1;
23341 char* __tmp = new char[__len];
23342 std::memcpy(__tmp, __s, __len);
23343 _M_name_timepunct = __tmp;
23346 { _M_initialize_timepunct(__cloc); }
23349 delete [] _M_name_timepunct;
23354 template<typename _CharT>
23355 __timepunct<_CharT>::~__timepunct()
23357 if (_M_name_timepunct != _S_get_c_name())
23358 delete [] _M_name_timepunct;
23360 _S_destroy_c_locale(_M_c_locale_timepunct);
23362 # 2968 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 2 3
23363 # 2981 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23364 template<typename _CharT, typename _InIter>
23365 class time_get : public locale::facet, public time_base
23371 typedef _CharT char_type;
23372 typedef _InIter iter_type;
23374 typedef basic_string<_CharT> __string_type;
23377 static locale::id id;
23378 # 3003 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23380 time_get(size_t __refs = 0)
23381 : facet (__refs) { }
23382 # 3020 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23385 { return this->do_date_order(); }
23386 # 3044 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23388 get_time(iter_type __beg, iter_type __end, ios_base& __io,
23389 ios_base::iostate& __err, tm* __tm) const
23390 { return this->do_get_time(__beg, __end, __io, __err, __tm); }
23391 # 3069 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23393 get_date(iter_type __beg, iter_type __end, ios_base& __io,
23394 ios_base::iostate& __err, tm* __tm) const
23395 { return this->do_get_date(__beg, __end, __io, __err, __tm); }
23396 # 3097 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23398 get_weekday(iter_type __beg, iter_type __end, ios_base& __io,
23399 ios_base::iostate& __err, tm* __tm) const
23400 { return this->do_get_weekday(__beg, __end, __io, __err, __tm); }
23401 # 3126 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23403 get_monthname(iter_type __beg, iter_type __end, ios_base& __io,
23404 ios_base::iostate& __err, tm* __tm) const
23405 { return this->do_get_monthname(__beg, __end, __io, __err, __tm); }
23406 # 3152 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23408 get_year(iter_type __beg, iter_type __end, ios_base& __io,
23409 ios_base::iostate& __err, tm* __tm) const
23410 { return this->do_get_year(__beg, __end, __io, __err, __tm); }
23416 # 3172 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23418 do_date_order() const;
23419 # 3190 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23421 do_get_time(iter_type __beg, iter_type __end, ios_base& __io,
23422 ios_base::iostate& __err, tm* __tm) const;
23423 # 3209 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23425 do_get_date(iter_type __beg, iter_type __end, ios_base& __io,
23426 ios_base::iostate& __err, tm* __tm) const;
23427 # 3228 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23429 do_get_weekday(iter_type __beg, iter_type __end, ios_base&,
23430 ios_base::iostate& __err, tm* __tm) const;
23431 # 3247 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23433 do_get_monthname(iter_type __beg, iter_type __end, ios_base&,
23434 ios_base::iostate& __err, tm* __tm) const;
23435 # 3266 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23437 do_get_year(iter_type __beg, iter_type __end, ios_base& __io,
23438 ios_base::iostate& __err, tm* __tm) const;
23442 _M_extract_num(iter_type __beg, iter_type __end, int& __member,
23443 int __min, int __max, size_t __len,
23444 ios_base& __io, ios_base::iostate& __err) const;
23449 _M_extract_name(iter_type __beg, iter_type __end, int& __member,
23450 const _CharT** __names, size_t __indexlen,
23451 ios_base& __io, ios_base::iostate& __err) const;
23455 _M_extract_via_format(iter_type __beg, iter_type __end, ios_base& __io,
23456 ios_base::iostate& __err, tm* __tm,
23457 const _CharT* __format) const;
23460 template<typename _CharT, typename _InIter>
23461 locale::id time_get<_CharT, _InIter>::id;
23464 template<typename _CharT, typename _InIter>
23465 class time_get_byname : public time_get<_CharT, _InIter>
23469 typedef _CharT char_type;
23470 typedef _InIter iter_type;
23473 time_get_byname(const char*, size_t __refs = 0)
23474 : time_get<_CharT, _InIter>(__refs) { }
23478 ~time_get_byname() { }
23480 # 3322 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23481 template<typename _CharT, typename _OutIter>
23482 class time_put : public locale::facet
23488 typedef _CharT char_type;
23489 typedef _OutIter iter_type;
23493 static locale::id id;
23494 # 3343 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23496 time_put(size_t __refs = 0)
23497 : facet(__refs) { }
23498 # 3362 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23500 put(iter_type __s, ios_base& __io, char_type __fill, const tm* __tm,
23501 const _CharT* __beg, const _CharT* __end) const;
23502 # 3382 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23504 put(iter_type __s, ios_base& __io, char_type __fill,
23505 const tm* __tm, char __format, char __mod = 0) const
23506 { return this->do_put(__s, __io, __fill, __tm, __format, __mod); }
23513 # 3409 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23515 do_put(iter_type __s, ios_base& __io, char_type __fill, const tm* __tm,
23516 char __format, char __mod) const;
23519 template<typename _CharT, typename _OutIter>
23520 locale::id time_put<_CharT, _OutIter>::id;
23523 template<typename _CharT, typename _OutIter>
23524 class time_put_byname : public time_put<_CharT, _OutIter>
23528 typedef _CharT char_type;
23529 typedef _OutIter iter_type;
23532 time_put_byname(const char*, size_t __refs = 0)
23533 : time_put<_CharT, _OutIter>(__refs)
23538 ~time_put_byname() { }
23540 # 3447 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23544 enum part { none, space, symbol, sign, value };
23545 struct pattern { char field[4]; };
23547 static const pattern _S_default_pattern;
23558 static const char* _S_atoms;
23563 _S_construct_pattern(char __precedes, char __space, char __posn);
23566 template<typename _CharT, bool _Intl>
23567 struct __moneypunct_cache : public locale::facet
23569 const char* _M_grouping;
23570 size_t _M_grouping_size;
23571 bool _M_use_grouping;
23572 _CharT _M_decimal_point;
23573 _CharT _M_thousands_sep;
23574 const _CharT* _M_curr_symbol;
23575 size_t _M_curr_symbol_size;
23576 const _CharT* _M_positive_sign;
23577 size_t _M_positive_sign_size;
23578 const _CharT* _M_negative_sign;
23579 size_t _M_negative_sign_size;
23580 int _M_frac_digits;
23581 money_base::pattern _M_pos_format;
23582 money_base::pattern _M_neg_format;
23587 _CharT _M_atoms[money_base::_S_end];
23591 __moneypunct_cache(size_t __refs = 0) : facet(__refs),
23592 _M_grouping(__null), _M_grouping_size(0), _M_use_grouping(false),
23593 _M_decimal_point(_CharT()), _M_thousands_sep(_CharT()),
23594 _M_curr_symbol(__null), _M_curr_symbol_size(0),
23595 _M_positive_sign(__null), _M_positive_sign_size(0),
23596 _M_negative_sign(__null), _M_negative_sign_size(0),
23598 _M_pos_format(money_base::pattern()),
23599 _M_neg_format(money_base::pattern()), _M_allocated(false)
23602 ~__moneypunct_cache();
23605 _M_cache(const locale& __loc);
23608 __moneypunct_cache&
23609 operator=(const __moneypunct_cache&);
23612 __moneypunct_cache(const __moneypunct_cache&);
23615 template<typename _CharT, bool _Intl>
23616 __moneypunct_cache<_CharT, _Intl>::~__moneypunct_cache()
23620 delete [] _M_grouping;
23621 delete [] _M_curr_symbol;
23622 delete [] _M_positive_sign;
23623 delete [] _M_negative_sign;
23633 template<typename _CharT, bool _Intl>
23634 class moneypunct : public locale::facet, public money_base
23640 typedef _CharT char_type;
23641 typedef basic_string<_CharT> string_type;
23643 typedef __moneypunct_cache<_CharT, _Intl> __cache_type;
23646 __cache_type* _M_data;
23651 static const bool intl = _Intl;
23653 static locale::id id;
23654 # 3568 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23656 moneypunct(size_t __refs = 0) : facet(__refs), _M_data(__null)
23657 { _M_initialize_moneypunct(); }
23658 # 3580 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23660 moneypunct(__cache_type* __cache, size_t __refs = 0)
23661 : facet(__refs), _M_data(__cache)
23662 { _M_initialize_moneypunct(); }
23663 # 3595 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23665 moneypunct(__c_locale __cloc, const char* __s, size_t __refs = 0)
23666 : facet(__refs), _M_data(__null)
23667 { _M_initialize_moneypunct(__cloc, __s); }
23668 # 3609 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23670 decimal_point() const
23671 { return this->do_decimal_point(); }
23672 # 3622 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23674 thousands_sep() const
23675 { return this->do_thousands_sep(); }
23676 # 3651 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23679 { return this->do_grouping(); }
23680 # 3664 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23682 curr_symbol() const
23683 { return this->do_curr_symbol(); }
23684 # 3681 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23686 positive_sign() const
23687 { return this->do_positive_sign(); }
23688 # 3698 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23690 negative_sign() const
23691 { return this->do_negative_sign(); }
23692 # 3714 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23694 frac_digits() const
23695 { return this->do_frac_digits(); }
23696 # 3749 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23699 { return this->do_pos_format(); }
23703 { return this->do_neg_format(); }
23710 # 3771 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23712 do_decimal_point() const
23713 { return _M_data->_M_decimal_point; }
23714 # 3783 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23716 do_thousands_sep() const
23717 { return _M_data->_M_thousands_sep; }
23718 # 3796 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23720 do_grouping() const
23721 { return _M_data->_M_grouping; }
23722 # 3809 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23723 virtual string_type
23724 do_curr_symbol() const
23725 { return _M_data->_M_curr_symbol; }
23726 # 3822 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23727 virtual string_type
23728 do_positive_sign() const
23729 { return _M_data->_M_positive_sign; }
23730 # 3835 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23731 virtual string_type
23732 do_negative_sign() const
23733 { return _M_data->_M_negative_sign; }
23734 # 3849 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23736 do_frac_digits() const
23737 { return _M_data->_M_frac_digits; }
23738 # 3863 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23740 do_pos_format() const
23741 { return _M_data->_M_pos_format; }
23742 # 3877 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23744 do_neg_format() const
23745 { return _M_data->_M_neg_format; }
23749 _M_initialize_moneypunct(__c_locale __cloc = __null,
23750 const char* __name = __null);
23753 template<typename _CharT, bool _Intl>
23754 locale::id moneypunct<_CharT, _Intl>::id;
23756 template<typename _CharT, bool _Intl>
23757 const bool moneypunct<_CharT, _Intl>::intl;
23760 moneypunct<char, true>::~moneypunct();
23763 moneypunct<char, false>::~moneypunct();
23767 moneypunct<char, true>::_M_initialize_moneypunct(__c_locale, const char*);
23771 moneypunct<char, false>::_M_initialize_moneypunct(__c_locale, const char*);
23775 moneypunct<wchar_t, true>::~moneypunct();
23778 moneypunct<wchar_t, false>::~moneypunct();
23782 moneypunct<wchar_t, true>::_M_initialize_moneypunct(__c_locale,
23787 moneypunct<wchar_t, false>::_M_initialize_moneypunct(__c_locale,
23792 template<typename _CharT, bool _Intl>
23793 class moneypunct_byname : public moneypunct<_CharT, _Intl>
23796 typedef _CharT char_type;
23797 typedef basic_string<_CharT> string_type;
23799 static const bool intl = _Intl;
23802 moneypunct_byname(const char* __s, size_t __refs = 0)
23803 : moneypunct<_CharT, _Intl>(__refs)
23805 if (std::strcmp(__s, "C") != 0 && std::strcmp(__s, "POSIX") != 0)
23808 this->_S_create_c_locale(__tmp, __s);
23809 this->_M_initialize_moneypunct(__tmp);
23810 this->_S_destroy_c_locale(__tmp);
23816 ~moneypunct_byname() { }
23819 template<typename _CharT, bool _Intl>
23820 const bool moneypunct_byname<_CharT, _Intl>::intl;
23821 # 3968 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23822 template<typename _CharT, typename _InIter>
23823 class money_get : public locale::facet
23829 typedef _CharT char_type;
23830 typedef _InIter iter_type;
23831 typedef basic_string<_CharT> string_type;
23835 static locale::id id;
23836 # 3990 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23838 money_get(size_t __refs = 0) : facet(__refs) { }
23839 # 4020 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23841 get(iter_type __s, iter_type __end, bool __intl, ios_base& __io,
23842 ios_base::iostate& __err, long double& __units) const
23843 { return this->do_get(__s, __end, __intl, __io, __err, __units); }
23844 # 4050 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23846 get(iter_type __s, iter_type __end, bool __intl, ios_base& __io,
23847 ios_base::iostate& __err, string_type& __digits) const
23848 { return this->do_get(__s, __end, __intl, __io, __err, __digits); }
23854 # 4067 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23856 do_get(iter_type __s, iter_type __end, bool __intl, ios_base& __io,
23857 ios_base::iostate& __err, long double& __units) const;
23858 # 4078 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23860 do_get(iter_type __s, iter_type __end, bool __intl, ios_base& __io,
23861 ios_base::iostate& __err, string_type& __digits) const;
23863 template<bool _Intl>
23865 _M_extract(iter_type __s, iter_type __end, ios_base& __io,
23866 ios_base::iostate& __err, string& __digits) const;
23869 template<typename _CharT, typename _InIter>
23870 locale::id money_get<_CharT, _InIter>::id;
23871 # 4103 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23872 template<typename _CharT, typename _OutIter>
23873 class money_put : public locale::facet
23878 typedef _CharT char_type;
23879 typedef _OutIter iter_type;
23880 typedef basic_string<_CharT> string_type;
23884 static locale::id id;
23885 # 4124 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23887 money_put(size_t __refs = 0) : facet(__refs) { }
23888 # 4144 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23890 put(iter_type __s, bool __intl, ios_base& __io,
23891 char_type __fill, long double __units) const
23892 { return this->do_put(__s, __intl, __io, __fill, __units); }
23893 # 4166 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23895 put(iter_type __s, bool __intl, ios_base& __io,
23896 char_type __fill, const string_type& __digits) const
23897 { return this->do_put(__s, __intl, __io, __fill, __digits); }
23903 # 4194 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23905 do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill,
23906 long double __units) const;
23907 # 4216 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23909 do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill,
23910 const string_type& __digits) const;
23912 template<bool _Intl>
23914 _M_insert(iter_type __s, ios_base& __io, char_type __fill,
23915 const string_type& __digits) const;
23918 template<typename _CharT, typename _OutIter>
23919 locale::id money_put<_CharT, _OutIter>::id;
23924 struct messages_base
23926 typedef int catalog;
23928 # 4257 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23929 template<typename _CharT>
23930 class messages : public locale::facet, public messages_base
23936 typedef _CharT char_type;
23937 typedef basic_string<_CharT> string_type;
23943 __c_locale _M_c_locale_messages;
23944 const char* _M_name_messages;
23948 static locale::id id;
23949 # 4285 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23951 messages(size_t __refs = 0);
23952 # 4299 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23954 messages(__c_locale __cloc, const char* __s, size_t __refs = 0);
23955 # 4312 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23957 open(const basic_string<char>& __s, const locale& __loc) const
23958 { return this->do_open(__s, __loc); }
23959 # 4330 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23961 open(const basic_string<char>&, const locale&, const char*) const;
23962 # 4348 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23964 get(catalog __c, int __set, int __msgid, const string_type& __s) const
23965 { return this->do_get(__c, __set, __msgid, __s); }
23966 # 4359 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23968 close(catalog __c) const
23969 { return this->do_close(__c); }
23975 # 4379 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23977 do_open(const basic_string<char>&, const locale&) const;
23978 # 4398 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
23979 virtual string_type
23980 do_get(catalog, int, int, const string_type& __dfault) const;
23988 do_close(catalog) const;
23992 _M_convert_to_char(const string_type& __msg) const
23995 return reinterpret_cast<char*>(const_cast<_CharT*>(__msg.c_str()));
24000 _M_convert_from_char(char*) const
24002 # 4455 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
24003 return string_type();
24007 template<typename _CharT>
24008 locale::id messages<_CharT>::id;
24013 messages<char>::do_get(catalog, int, int, const string&) const;
24018 messages<wchar_t>::do_get(catalog, int, int, const wstring&) const;
24022 template<typename _CharT>
24023 class messages_byname : public messages<_CharT>
24026 typedef _CharT char_type;
24027 typedef basic_string<_CharT> string_type;
24030 messages_byname(const char* __s, size_t __refs = 0);
24039 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/messages_members.h" 1 3
24040 # 37 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/powerpc-unknown-linux-gnu/bits/messages_members.h" 3
24041 template<typename _CharT>
24042 messages<_CharT>::messages(size_t __refs)
24043 : facet(__refs), _M_c_locale_messages(_S_get_c_locale()),
24044 _M_name_messages(_S_get_c_name())
24047 template<typename _CharT>
24048 messages<_CharT>::messages(__c_locale __cloc, const char* __s,
24050 : facet(__refs), _M_c_locale_messages(__null), _M_name_messages(__null)
24052 const size_t __len = std::strlen(__s) + 1;
24053 char* __tmp = new char[__len];
24054 std::memcpy(__tmp, __s, __len);
24055 _M_name_messages = __tmp;
24058 _M_c_locale_messages = _S_clone_c_locale(__cloc);
24061 template<typename _CharT>
24062 typename messages<_CharT>::catalog
24063 messages<_CharT>::open(const basic_string<char>& __s, const locale& __loc,
24064 const char* __dir) const
24066 bindtextdomain(__s.c_str(), __dir);
24067 return this->do_open(__s, __loc);
24071 template<typename _CharT>
24072 messages<_CharT>::~messages()
24074 if (_M_name_messages != _S_get_c_name())
24075 delete [] _M_name_messages;
24076 _S_destroy_c_locale(_M_c_locale_messages);
24079 template<typename _CharT>
24080 typename messages<_CharT>::catalog
24081 messages<_CharT>::do_open(const basic_string<char>& __s,
24082 const locale&) const
24086 textdomain(__s.c_str());
24090 template<typename _CharT>
24092 messages<_CharT>::do_close(catalog) const
24096 template<typename _CharT>
24097 messages_byname<_CharT>::messages_byname(const char* __s, size_t __refs)
24098 : messages<_CharT>(__refs)
24100 if (this->_M_name_messages != locale::facet::_S_get_c_name())
24101 delete [] this->_M_name_messages;
24102 char* __tmp = new char[std::strlen(__s) + 1];
24103 std::strcpy(__tmp, __s);
24104 this->_M_name_messages = __tmp;
24106 if (std::strcmp(__s, "C") != 0 && std::strcmp(__s, "POSIX") != 0)
24108 this->_S_destroy_c_locale(this->_M_c_locale_messages);
24109 this->_S_create_c_locale(this->_M_c_locale_messages, __s);
24112 # 4492 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 2 3
24113 # 4500 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.h" 3
24114 template<typename _CharT>
24116 isspace(_CharT __c, const locale& __loc)
24117 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::space, __c); }
24120 template<typename _CharT>
24122 isprint(_CharT __c, const locale& __loc)
24123 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::print, __c); }
24126 template<typename _CharT>
24128 iscntrl(_CharT __c, const locale& __loc)
24129 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, __c); }
24132 template<typename _CharT>
24134 isupper(_CharT __c, const locale& __loc)
24135 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::upper, __c); }
24138 template<typename _CharT>
24140 islower(_CharT __c, const locale& __loc)
24141 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::lower, __c); }
24144 template<typename _CharT>
24146 isalpha(_CharT __c, const locale& __loc)
24147 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::alpha, __c); }
24150 template<typename _CharT>
24152 isdigit(_CharT __c, const locale& __loc)
24153 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::digit, __c); }
24156 template<typename _CharT>
24158 ispunct(_CharT __c, const locale& __loc)
24159 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::punct, __c); }
24162 template<typename _CharT>
24164 isxdigit(_CharT __c, const locale& __loc)
24165 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::xdigit, __c); }
24168 template<typename _CharT>
24170 isalnum(_CharT __c, const locale& __loc)
24171 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::alnum, __c); }
24174 template<typename _CharT>
24176 isgraph(_CharT __c, const locale& __loc)
24177 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::graph, __c); }
24180 template<typename _CharT>
24182 toupper(_CharT __c, const locale& __loc)
24183 { return use_facet<ctype<_CharT> >(__loc).toupper(__c); }
24186 template<typename _CharT>
24188 tolower(_CharT __c, const locale& __loc)
24189 { return use_facet<ctype<_CharT> >(__loc).tolower(__c); }
24191 # 45 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 2 3
24202 template<typename _CharT, typename _Traits>
24203 class basic_ios : public ios_base
24212 typedef _CharT char_type;
24213 typedef typename _Traits::int_type int_type;
24214 typedef typename _Traits::pos_type pos_type;
24215 typedef typename _Traits::off_type off_type;
24216 typedef _Traits traits_type;
24217 # 78 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
24218 typedef ctype<_CharT> __ctype_type;
24219 typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> >
24221 typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> >
24227 basic_ostream<_CharT, _Traits>* _M_tie;
24228 mutable char_type _M_fill;
24229 mutable bool _M_fill_init;
24230 basic_streambuf<_CharT, _Traits>* _M_streambuf;
24233 const __ctype_type* _M_ctype;
24235 const __num_put_type* _M_num_put;
24237 const __num_get_type* _M_num_get;
24247 operator void*() const
24248 { return this->fail() ? 0 : const_cast<basic_ios*>(this); }
24252 { return this->fail(); }
24253 # 122 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
24256 { return _M_streambuf_state; }
24257 # 133 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
24259 clear(iostate __state = goodbit);
24268 setstate(iostate __state)
24269 { this->clear(this->rdstate() | __state); }
24275 _M_setstate(iostate __state)
24279 _M_streambuf_state |= __state;
24280 if (this->exceptions() & __state)
24292 { return this->rdstate() == 0; }
24302 { return (this->rdstate() & eofbit) != 0; }
24303 # 186 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
24306 { return (this->rdstate() & (badbit | failbit)) != 0; }
24316 { return (this->rdstate() & badbit) != 0; }
24317 # 207 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
24320 { return _M_exception; }
24321 # 242 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
24323 exceptions(iostate __except)
24325 _M_exception = __except;
24326 this->clear(_M_streambuf_state);
24336 basic_ios(basic_streambuf<_CharT, _Traits>* __sb)
24337 : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0),
24338 _M_ctype(0), _M_num_put(0), _M_num_get(0)
24339 { this->init(__sb); }
24349 # 280 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
24350 basic_ostream<_CharT, _Traits>*
24353 # 292 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
24354 basic_ostream<_CharT, _Traits>*
24355 tie(basic_ostream<_CharT, _Traits>* __tiestr)
24357 basic_ostream<_CharT, _Traits>* __old = _M_tie;
24368 basic_streambuf<_CharT, _Traits>*
24370 { return _M_streambuf; }
24371 # 332 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
24372 basic_streambuf<_CharT, _Traits>*
24373 rdbuf(basic_streambuf<_CharT, _Traits>* __sb);
24374 # 346 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
24376 copyfmt(const basic_ios& __rhs);
24389 _M_fill = this->widen(' ');
24390 _M_fill_init = true;
24394 # 375 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
24396 fill(char_type __ch)
24398 char_type __old = this->fill();
24402 # 395 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
24404 imbue(const locale& __loc);
24405 # 415 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
24407 narrow(char_type __c, char __dfault) const;
24408 # 433 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 3
24410 widen(char __c) const;
24421 : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false),
24422 _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0)
24432 init(basic_streambuf<_CharT, _Traits>* __sb);
24435 _M_cache_locale(const locale& __loc);
24440 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.tcc" 1 3
24441 # 38 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.tcc" 3
24443 # 39 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.tcc" 3
24447 template<typename _CharT, typename _Traits>
24449 basic_ios<_CharT, _Traits>::clear(iostate __state)
24452 _M_streambuf_state = __state;
24454 _M_streambuf_state = __state | badbit;
24455 if (this->exceptions() & this->rdstate())
24456 __throw_ios_failure(("basic_ios::clear"));
24459 template<typename _CharT, typename _Traits>
24460 basic_streambuf<_CharT, _Traits>*
24461 basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb)
24463 basic_streambuf<_CharT, _Traits>* __old = _M_streambuf;
24464 _M_streambuf = __sb;
24469 template<typename _CharT, typename _Traits>
24470 basic_ios<_CharT, _Traits>&
24471 basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs)
24475 if (this != &__rhs)
24481 _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ?
24482 _M_local_word : new _Words[__rhs._M_word_size];
24485 _Callback_list* __cb = __rhs._M_callbacks;
24487 __cb->_M_add_reference();
24488 _M_call_callbacks(erase_event);
24489 if (_M_word != _M_local_word)
24494 _M_dispose_callbacks();
24497 _M_callbacks = __cb;
24498 for (int __i = 0; __i < __rhs._M_word_size; ++__i)
24499 __words[__i] = __rhs._M_word[__i];
24501 _M_word_size = __rhs._M_word_size;
24503 this->flags(__rhs.flags());
24504 this->width(__rhs.width());
24505 this->precision(__rhs.precision());
24506 this->tie(__rhs.tie());
24507 this->fill(__rhs.fill());
24508 _M_ios_locale = __rhs.getloc();
24509 _M_cache_locale(_M_ios_locale);
24511 _M_call_callbacks(copyfmt_event);
24514 this->exceptions(__rhs.exceptions());
24519 template<typename _CharT, typename _Traits>
24521 basic_ios<_CharT, _Traits>::narrow(char_type __c, char __dfault) const
24522 { return __check_facet(_M_ctype).narrow(__c, __dfault); }
24524 template<typename _CharT, typename _Traits>
24526 basic_ios<_CharT, _Traits>::widen(char __c) const
24527 { return __check_facet(_M_ctype).widen(__c); }
24530 template<typename _CharT, typename _Traits>
24532 basic_ios<_CharT, _Traits>::imbue(const locale& __loc)
24534 locale __old(this->getloc());
24535 ios_base::imbue(__loc);
24536 _M_cache_locale(__loc);
24537 if (this->rdbuf() != 0)
24538 this->rdbuf()->pubimbue(__loc);
24542 template<typename _CharT, typename _Traits>
24544 basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb)
24547 ios_base::_M_init();
24550 _M_cache_locale(_M_ios_locale);
24551 # 159 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.tcc" 3
24552 _M_fill = _CharT();
24553 _M_fill_init = false;
24556 _M_exception = goodbit;
24557 _M_streambuf = __sb;
24558 _M_streambuf_state = __sb ? goodbit : badbit;
24561 template<typename _CharT, typename _Traits>
24563 basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc)
24565 if (__builtin_expect(has_facet<__ctype_type>(__loc), true))
24566 _M_ctype = &use_facet<__ctype_type>(__loc);
24570 if (__builtin_expect(has_facet<__num_put_type>(__loc), true))
24571 _M_num_put = &use_facet<__num_put_type>(__loc);
24575 if (__builtin_expect(has_facet<__num_get_type>(__loc), true))
24576 _M_num_get = &use_facet<__num_get_type>(__loc);
24585 extern template class basic_ios<char>;
24588 extern template class basic_ios<wchar_t>;
24592 # 465 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h" 2 3
24593 # 53 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ios" 2 3
24595 #pragma GCC visibility pop
24596 # 46 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 2 3
24600 # 57 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24601 template<typename _CharT, typename _Traits>
24602 class basic_ostream : virtual public basic_ios<_CharT, _Traits>
24606 typedef _CharT char_type;
24607 typedef typename _Traits::int_type int_type;
24608 typedef typename _Traits::pos_type pos_type;
24609 typedef typename _Traits::off_type off_type;
24610 typedef _Traits traits_type;
24613 typedef basic_streambuf<_CharT, _Traits> __streambuf_type;
24614 typedef basic_ios<_CharT, _Traits> __ios_type;
24615 typedef basic_ostream<_CharT, _Traits> __ostream_type;
24616 typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> >
24618 typedef ctype<_CharT> __ctype_type;
24620 template<typename _CharT2, typename _Traits2>
24621 friend basic_ostream<_CharT2, _Traits2>&
24622 operator<<(basic_ostream<_CharT2, _Traits2>&, _CharT2);
24624 template<typename _Traits2>
24625 friend basic_ostream<char, _Traits2>&
24626 operator<<(basic_ostream<char, _Traits2>&, char);
24628 template<typename _CharT2, typename _Traits2>
24629 friend basic_ostream<_CharT2, _Traits2>&
24630 operator<<(basic_ostream<_CharT2, _Traits2>&, const _CharT2*);
24632 template<typename _Traits2>
24633 friend basic_ostream<char, _Traits2>&
24634 operator<<(basic_ostream<char, _Traits2>&, const char*);
24636 template<typename _CharT2, typename _Traits2>
24637 friend basic_ostream<_CharT2, _Traits2>&
24638 operator<<(basic_ostream<_CharT2, _Traits2>&, const char*);
24639 # 104 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24641 basic_ostream(__streambuf_type* __sb)
24642 { this->init(__sb); }
24650 ~basic_ostream() { }
24654 friend class sentry;
24655 # 130 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24656 inline __ostream_type&
24657 operator<<(__ostream_type& (*__pf)(__ostream_type&));
24659 inline __ostream_type&
24660 operator<<(__ios_type& (*__pf)(__ios_type&));
24662 inline __ostream_type&
24663 operator<<(ios_base& (*__pf) (ios_base&));
24664 # 167 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24666 operator<<(long __n);
24669 operator<<(unsigned long __n);
24672 operator<<(bool __n);
24675 operator<<(short __n);
24678 operator<<(unsigned short __n);
24681 operator<<(int __n);
24684 operator<<(unsigned int __n);
24688 operator<<(long long __n);
24691 operator<<(unsigned long long __n);
24695 operator<<(double __f);
24698 operator<<(float __f);
24701 operator<<(long double __f);
24704 operator<<(const void* __p);
24705 # 229 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24707 operator<<(__streambuf_type* __sb);
24708 # 262 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24710 put(char_type __c);
24714 _M_write(const char_type* __s, streamsize __n)
24716 streamsize __put = this->rdbuf()->sputn(__s, __n);
24718 this->setstate(ios_base::badbit);
24720 # 290 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24722 write(const char_type* __s, streamsize __n);
24723 # 303 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24726 # 314 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24729 # 325 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24732 # 337 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24734 seekp(off_type, ios_base::seekdir);
24738 basic_ostream() { }
24740 # 355 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24741 template <typename _CharT, typename _Traits>
24742 class basic_ostream<_CharT, _Traits>::sentry
24746 basic_ostream<_CharT,_Traits>& _M_os;
24749 # 374 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24751 sentry(basic_ostream<_CharT,_Traits>& __os);
24752 # 384 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24756 if (_M_os.flags() & ios_base::unitbuf && !uncaught_exception())
24759 if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1)
24760 _M_os.setstate(ios_base::badbit);
24763 # 402 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24764 operator bool() const
24767 # 423 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24768 template<typename _CharT, typename _Traits>
24769 basic_ostream<_CharT, _Traits>&
24770 operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c);
24772 template<typename _CharT, typename _Traits>
24773 basic_ostream<_CharT, _Traits>&
24774 operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
24775 { return (__out << __out.widen(__c)); }
24778 template <class _Traits>
24779 basic_ostream<char, _Traits>&
24780 operator<<(basic_ostream<char, _Traits>& __out, char __c);
24783 template<class _Traits>
24784 basic_ostream<char, _Traits>&
24785 operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
24786 { return (__out << static_cast<char>(__c)); }
24788 template<class _Traits>
24789 basic_ostream<char, _Traits>&
24790 operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
24791 { return (__out << static_cast<char>(__c)); }
24792 # 463 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24793 template<typename _CharT, typename _Traits>
24794 basic_ostream<_CharT, _Traits>&
24795 operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s);
24797 template<typename _CharT, typename _Traits>
24798 basic_ostream<_CharT, _Traits> &
24799 operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s);
24802 template<class _Traits>
24803 basic_ostream<char, _Traits>&
24804 operator<<(basic_ostream<char, _Traits>& __out, const char* __s);
24807 template<class _Traits>
24808 basic_ostream<char, _Traits>&
24809 operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
24810 { return (__out << reinterpret_cast<const char*>(__s)); }
24812 template<class _Traits>
24813 basic_ostream<char, _Traits> &
24814 operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
24815 { return (__out << reinterpret_cast<const char*>(__s)); }
24816 # 497 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 3
24817 template<typename _CharT, typename _Traits>
24818 basic_ostream<_CharT, _Traits>&
24819 endl(basic_ostream<_CharT, _Traits>& __os)
24820 { return flush(__os.put(__os.widen('\n'))); }
24828 template<typename _CharT, typename _Traits>
24829 basic_ostream<_CharT, _Traits>&
24830 ends(basic_ostream<_CharT, _Traits>& __os)
24831 { return __os.put(_CharT()); }
24838 template<typename _CharT, typename _Traits>
24839 basic_ostream<_CharT, _Traits>&
24840 flush(basic_ostream<_CharT, _Traits>& __os)
24841 { return __os.flush(); }
24846 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ostream.tcc" 1 3
24847 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ostream.tcc" 3
24849 # 44 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ostream.tcc" 3
24851 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/locale" 1 3
24852 # 42 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/locale" 3
24854 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/locale" 3
24855 #pragma GCC visibility push(default)
24860 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.tcc" 1 3
24861 # 39 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.tcc" 3
24863 # 40 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.tcc" 3
24866 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/typeinfo" 1 3
24867 # 40 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/typeinfo" 3
24868 #pragma GCC visibility push(default)
24872 namespace __cxxabiv1
24874 class __class_type_info;
24876 # 59 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/typeinfo" 3
24892 virtual ~type_info();
24896 type_info& operator=(const type_info&);
24897 type_info(const type_info&);
24900 const char *__name;
24903 explicit type_info(const char *__n): __name(__n) { }
24909 const char* name() const
24911 # 105 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/typeinfo" 3
24912 bool before(const type_info& __arg) const
24913 { return __name < __arg.__name; }
24914 bool operator==(const type_info& __arg) const
24915 { return __name == __arg.__name; }
24917 bool operator!=(const type_info& __arg) const
24918 { return !operator==(__arg); }
24923 virtual bool __is_pointer_p() const;
24925 virtual bool __is_function_p() const;
24933 virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj,
24934 unsigned __outer) const;
24937 virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target,
24938 void **__obj_ptr) const;
24946 class bad_cast : public exception
24949 bad_cast() throw() { }
24952 virtual ~bad_cast() throw();
24956 class bad_typeid : public exception
24959 bad_typeid () throw() { }
24962 virtual ~bad_typeid() throw();
24966 #pragma GCC visibility pop
24969 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.tcc" 2 3
24974 template<typename _Facet>
24976 locale::combine(const locale& __other) const
24978 _Impl* __tmp = new _Impl(*_M_impl, 1);
24981 __tmp->_M_replace_facet(__other._M_impl, &_Facet::id);
24985 __tmp->_M_remove_reference();
24988 return locale(__tmp);
24991 template<typename _CharT, typename _Traits, typename _Alloc>
24993 locale::operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1,
24994 const basic_string<_CharT, _Traits, _Alloc>& __s2) const
24996 typedef std::collate<_CharT> __collate_type;
24997 const __collate_type& __collate = use_facet<__collate_type>(*this);
24998 return (__collate.compare(__s1.data(), __s1.data() + __s1.length(),
24999 __s2.data(), __s2.data() + __s2.length()) < 0);
25001 # 86 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.tcc" 3
25002 template<typename _Facet>
25004 has_facet(const locale& __loc) throw()
25006 const size_t __i = _Facet::id._M_id();
25007 const locale::facet** __facets = __loc._M_impl->_M_facets;
25008 return (__i < __loc._M_impl->_M_facets_size && __facets[__i]);
25010 # 108 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.tcc" 3
25011 template<typename _Facet>
25012 inline const _Facet&
25013 use_facet(const locale& __loc)
25015 const size_t __i = _Facet::id._M_id();
25016 const locale::facet** __facets = __loc._M_impl->_M_facets;
25017 if (!(__i < __loc._M_impl->_M_facets_size && __facets[__i]))
25018 __throw_bad_cast();
25019 return static_cast<const _Facet&>(*__facets[__i]);
25024 template<typename _Facet>
25028 operator() (const locale& __loc) const;
25032 template<typename _CharT>
25033 struct __use_cache<__numpunct_cache<_CharT> >
25035 const __numpunct_cache<_CharT>*
25036 operator() (const locale& __loc) const
25038 const size_t __i = numpunct<_CharT>::id._M_id();
25039 const locale::facet** __caches = __loc._M_impl->_M_caches;
25040 if (!__caches[__i])
25042 __numpunct_cache<_CharT>* __tmp = __null;
25045 __tmp = new __numpunct_cache<_CharT>;
25046 __tmp->_M_cache(__loc);
25053 __loc._M_impl->_M_install_cache(__tmp, __i);
25055 return static_cast<const __numpunct_cache<_CharT>*>(__caches[__i]);
25059 template<typename _CharT, bool _Intl>
25060 struct __use_cache<__moneypunct_cache<_CharT, _Intl> >
25062 const __moneypunct_cache<_CharT, _Intl>*
25063 operator() (const locale& __loc) const
25065 const size_t __i = moneypunct<_CharT, _Intl>::id._M_id();
25066 const locale::facet** __caches = __loc._M_impl->_M_caches;
25067 if (!__caches[__i])
25069 __moneypunct_cache<_CharT, _Intl>* __tmp = __null;
25072 __tmp = new __moneypunct_cache<_CharT, _Intl>;
25073 __tmp->_M_cache(__loc);
25080 __loc._M_impl->_M_install_cache(__tmp, __i);
25082 return static_cast<
25083 const __moneypunct_cache<_CharT, _Intl>*>(__caches[__i]);
25087 template<typename _CharT>
25089 __numpunct_cache<_CharT>::_M_cache(const locale& __loc)
25091 _M_allocated = true;
25093 const numpunct<_CharT>& __np = use_facet<numpunct<_CharT> >(__loc);
25095 _M_grouping_size = __np.grouping().size();
25096 char* __grouping = new char[_M_grouping_size];
25097 __np.grouping().copy(__grouping, _M_grouping_size);
25098 _M_grouping = __grouping;
25099 _M_use_grouping = (_M_grouping_size
25100 && static_cast<signed char>(__np.grouping()[0]) > 0);
25102 _M_truename_size = __np.truename().size();
25103 _CharT* __truename = new _CharT[_M_truename_size];
25104 __np.truename().copy(__truename, _M_truename_size);
25105 _M_truename = __truename;
25107 _M_falsename_size = __np.falsename().size();
25108 _CharT* __falsename = new _CharT[_M_falsename_size];
25109 __np.falsename().copy(__falsename, _M_falsename_size);
25110 _M_falsename = __falsename;
25112 _M_decimal_point = __np.decimal_point();
25113 _M_thousands_sep = __np.thousands_sep();
25115 const ctype<_CharT>& __ct = use_facet<ctype<_CharT> >(__loc);
25116 __ct.widen(__num_base::_S_atoms_out,
25117 __num_base::_S_atoms_out + __num_base::_S_oend, _M_atoms_out);
25118 __ct.widen(__num_base::_S_atoms_in,
25119 __num_base::_S_atoms_in + __num_base::_S_iend, _M_atoms_in);
25122 template<typename _CharT, bool _Intl>
25124 __moneypunct_cache<_CharT, _Intl>::_M_cache(const locale& __loc)
25126 _M_allocated = true;
25128 const moneypunct<_CharT, _Intl>& __mp =
25129 use_facet<moneypunct<_CharT, _Intl> >(__loc);
25131 _M_grouping_size = __mp.grouping().size();
25132 char* __grouping = new char[_M_grouping_size];
25133 __mp.grouping().copy(__grouping, _M_grouping_size);
25134 _M_grouping = __grouping;
25135 _M_use_grouping = (_M_grouping_size
25136 && static_cast<signed char>(__mp.grouping()[0]) > 0);
25138 _M_decimal_point = __mp.decimal_point();
25139 _M_thousands_sep = __mp.thousands_sep();
25140 _M_frac_digits = __mp.frac_digits();
25142 _M_curr_symbol_size = __mp.curr_symbol().size();
25143 _CharT* __curr_symbol = new _CharT[_M_curr_symbol_size];
25144 __mp.curr_symbol().copy(__curr_symbol, _M_curr_symbol_size);
25145 _M_curr_symbol = __curr_symbol;
25147 _M_positive_sign_size = __mp.positive_sign().size();
25148 _CharT* __positive_sign = new _CharT[_M_positive_sign_size];
25149 __mp.positive_sign().copy(__positive_sign, _M_positive_sign_size);
25150 _M_positive_sign = __positive_sign;
25152 _M_negative_sign_size = __mp.negative_sign().size();
25153 _CharT* __negative_sign = new _CharT[_M_negative_sign_size];
25154 __mp.negative_sign().copy(__negative_sign, _M_negative_sign_size);
25155 _M_negative_sign = __negative_sign;
25157 _M_pos_format = __mp.pos_format();
25158 _M_neg_format = __mp.neg_format();
25160 const ctype<_CharT>& __ct = use_facet<ctype<_CharT> >(__loc);
25161 __ct.widen(money_base::_S_atoms,
25162 money_base::_S_atoms + money_base::_S_end, _M_atoms);
25164 # 271 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.tcc" 3
25166 __verify_grouping(const char* __grouping, size_t __grouping_size,
25167 const string& __grouping_tmp);
25169 template<typename _CharT, typename _InIter>
25171 num_get<_CharT, _InIter>::
25172 _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io,
25173 ios_base::iostate& __err, string& __xtrc) const
25175 typedef char_traits<_CharT> __traits_type;
25176 typedef __numpunct_cache<_CharT> __cache_type;
25177 __use_cache<__cache_type> __uc;
25178 const locale& __loc = __io._M_getloc();
25179 const __cache_type* __lc = __uc(__loc);
25180 const _CharT* __lit = __lc->_M_atoms_in;
25181 char_type __c = char_type();
25184 bool __testeof = __beg == __end;
25190 const bool __plus = __c == __lit[__num_base::_S_iplus];
25191 if ((__plus || __c == __lit[__num_base::_S_iminus])
25192 && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep)
25193 && !(__c == __lc->_M_decimal_point))
25195 __xtrc += __plus ? '+' : '-';
25196 if (++__beg != __end)
25204 bool __found_mantissa = false;
25208 if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep
25209 || __c == __lc->_M_decimal_point)
25211 else if (__c == __lit[__num_base::_S_izero])
25213 if (!__found_mantissa)
25216 __found_mantissa = true;
25220 if (++__beg != __end)
25230 bool __found_dec = false;
25231 bool __found_sci = false;
25232 string __found_grouping;
25233 if (__lc->_M_use_grouping)
25234 __found_grouping.reserve(32);
25235 const char_type* __q;
25236 const char_type* __lit_zero = __lit + __num_base::_S_izero;
25241 if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep)
25243 if (!__found_dec && !__found_sci)
25249 __found_grouping += static_cast<char>(__sep_pos);
25263 else if (__c == __lc->_M_decimal_point)
25265 if (!__found_dec && !__found_sci)
25270 if (__found_grouping.size())
25271 __found_grouping += static_cast<char>(__sep_pos);
25273 __found_dec = true;
25278 else if ((__q = __traits_type::find(__lit_zero, 10, __c)))
25280 __xtrc += __num_base::_S_atoms_in[__q - __lit];
25281 __found_mantissa = true;
25284 else if ((__c == __lit[__num_base::_S_ie]
25285 || __c == __lit[__num_base::_S_iE])
25286 && !__found_sci && __found_mantissa)
25289 if (__found_grouping.size() && !__found_dec)
25290 __found_grouping += static_cast<char>(__sep_pos);
25292 __found_sci = true;
25295 if (++__beg != __end)
25298 const bool __plus = __c == __lit[__num_base::_S_iplus];
25299 if ((__plus || __c == __lit[__num_base::_S_iminus])
25300 && !(__lc->_M_use_grouping
25301 && __c == __lc->_M_thousands_sep)
25302 && !(__c == __lc->_M_decimal_point))
25303 __xtrc += __plus ? '+' : '-';
25317 if (++__beg != __end)
25325 if (__found_grouping.size())
25328 if (!__found_dec && !__found_sci)
25329 __found_grouping += static_cast<char>(__sep_pos);
25331 if (!std::__verify_grouping(__lc->_M_grouping,
25332 __lc->_M_grouping_size,
25334 __err |= ios_base::failbit;
25339 __err |= ios_base::eofbit;
25343 template<typename _ValueT>
25344 struct __to_unsigned_type
25345 { typedef _ValueT __type; };
25348 struct __to_unsigned_type<long>
25349 { typedef unsigned long __type; };
25353 struct __to_unsigned_type<long long>
25354 { typedef unsigned long long __type; };
25357 template<typename _CharT, typename _InIter>
25358 template<typename _ValueT>
25360 num_get<_CharT, _InIter>::
25361 _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io,
25362 ios_base::iostate& __err, _ValueT& __v) const
25364 typedef char_traits<_CharT> __traits_type;
25365 typedef typename __to_unsigned_type<_ValueT>::__type __unsigned_type;
25366 typedef __numpunct_cache<_CharT> __cache_type;
25367 __use_cache<__cache_type> __uc;
25368 const locale& __loc = __io._M_getloc();
25369 const __cache_type* __lc = __uc(__loc);
25370 const _CharT* __lit = __lc->_M_atoms_in;
25371 char_type __c = char_type();
25374 const ios_base::fmtflags __basefield = __io.flags()
25375 & ios_base::basefield;
25376 const bool __oct = __basefield == ios_base::oct;
25377 int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10);
25380 bool __testeof = __beg == __end;
25383 bool __negative = false;
25387 if (numeric_limits<_ValueT>::is_signed)
25388 __negative = __c == __lit[__num_base::_S_iminus];
25389 if ((__negative || __c == __lit[__num_base::_S_iplus])
25390 && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep)
25391 && !(__c == __lc->_M_decimal_point))
25393 if (++__beg != __end)
25402 bool __found_zero = false;
25406 if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep
25407 || __c == __lc->_M_decimal_point)
25409 else if (__c == __lit[__num_base::_S_izero]
25410 && (!__found_zero || __base == 10))
25412 __found_zero = true;
25414 if (__basefield == 0)
25419 else if (__found_zero
25420 && (__c == __lit[__num_base::_S_ix]
25421 || __c == __lit[__num_base::_S_iX]))
25423 if (__basefield == 0)
25427 __found_zero = false;
25436 if (++__beg != __end)
25448 const size_t __len = (__base == 16 ? __num_base::_S_iend
25449 - __num_base::_S_izero : __base);
25452 string __found_grouping;
25453 if (__lc->_M_use_grouping)
25454 __found_grouping.reserve(32);
25455 bool __testfail = false;
25456 const __unsigned_type __max = __negative ?
25457 -numeric_limits<_ValueT>::min() : numeric_limits<_ValueT>::max();
25458 const __unsigned_type __smax = __max / __base;
25459 __unsigned_type __result = 0;
25460 const char_type* __q;
25461 const char_type* __lit_zero = __lit + __num_base::_S_izero;
25466 if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep)
25472 __found_grouping += static_cast<char>(__sep_pos);
25481 else if (__c == __lc->_M_decimal_point)
25483 else if ((__q = __traits_type::find(__lit_zero, __len, __c)))
25485 int __digit = __q - __lit_zero;
25488 if (__result > __smax)
25492 __result *= __base;
25493 __testfail |= __result > __max - __digit;
25494 __result += __digit;
25502 if (++__beg != __end)
25510 if (__found_grouping.size())
25513 __found_grouping += static_cast<char>(__sep_pos);
25515 if (!std::__verify_grouping(__lc->_M_grouping,
25516 __lc->_M_grouping_size,
25518 __err |= ios_base::failbit;
25521 if (!__testfail && (__sep_pos || __found_zero
25522 || __found_grouping.size()))
25523 __v = __negative ? -__result : __result;
25525 __err |= ios_base::failbit;
25528 __err |= ios_base::eofbit;
25534 template<typename _CharT, typename _InIter>
25536 num_get<_CharT, _InIter>::
25537 do_get(iter_type __beg, iter_type __end, ios_base& __io,
25538 ios_base::iostate& __err, bool& __v) const
25540 if (!(__io.flags() & ios_base::boolalpha))
25546 __beg = _M_extract_int(__beg, __end, __io, __err, __l);
25547 if (__l == 0 || __l == 1)
25550 __err |= ios_base::failbit;
25555 typedef __numpunct_cache<_CharT> __cache_type;
25556 __use_cache<__cache_type> __uc;
25557 const locale& __loc = __io._M_getloc();
25558 const __cache_type* __lc = __uc(__loc);
25560 bool __testf = true;
25561 bool __testt = true;
25563 bool __testeof = __beg == __end;
25564 for (__n = 0; !__testeof; ++__n)
25566 const char_type __c = *__beg;
25569 if (__n < __lc->_M_falsename_size)
25570 __testf = __c == __lc->_M_falsename[__n];
25575 if (__n < __lc->_M_truename_size)
25576 __testt = __c == __lc->_M_truename[__n];
25580 if (!__testf && !__testt)
25583 if (++__beg == __end)
25586 if (__testf && __n == __lc->_M_falsename_size)
25588 else if (__testt && __n == __lc->_M_truename_size)
25591 __err |= ios_base::failbit;
25594 __err |= ios_base::eofbit;
25599 template<typename _CharT, typename _InIter>
25601 num_get<_CharT, _InIter>::
25602 do_get(iter_type __beg, iter_type __end, ios_base& __io,
25603 ios_base::iostate& __err, long& __v) const
25604 { return _M_extract_int(__beg, __end, __io, __err, __v); }
25606 template<typename _CharT, typename _InIter>
25608 num_get<_CharT, _InIter>::
25609 do_get(iter_type __beg, iter_type __end, ios_base& __io,
25610 ios_base::iostate& __err, unsigned short& __v) const
25611 { return _M_extract_int(__beg, __end, __io, __err, __v); }
25613 template<typename _CharT, typename _InIter>
25615 num_get<_CharT, _InIter>::
25616 do_get(iter_type __beg, iter_type __end, ios_base& __io,
25617 ios_base::iostate& __err, unsigned int& __v) const
25618 { return _M_extract_int(__beg, __end, __io, __err, __v); }
25620 template<typename _CharT, typename _InIter>
25622 num_get<_CharT, _InIter>::
25623 do_get(iter_type __beg, iter_type __end, ios_base& __io,
25624 ios_base::iostate& __err, unsigned long& __v) const
25625 { return _M_extract_int(__beg, __end, __io, __err, __v); }
25628 template<typename _CharT, typename _InIter>
25630 num_get<_CharT, _InIter>::
25631 do_get(iter_type __beg, iter_type __end, ios_base& __io,
25632 ios_base::iostate& __err, long long& __v) const
25633 { return _M_extract_int(__beg, __end, __io, __err, __v); }
25635 template<typename _CharT, typename _InIter>
25637 num_get<_CharT, _InIter>::
25638 do_get(iter_type __beg, iter_type __end, ios_base& __io,
25639 ios_base::iostate& __err, unsigned long long& __v) const
25640 { return _M_extract_int(__beg, __end, __io, __err, __v); }
25643 template<typename _CharT, typename _InIter>
25645 num_get<_CharT, _InIter>::
25646 do_get(iter_type __beg, iter_type __end, ios_base& __io,
25647 ios_base::iostate& __err, float& __v) const
25650 __xtrc.reserve(32);
25651 __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc);
25652 std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale());
25656 template<typename _CharT, typename _InIter>
25658 num_get<_CharT, _InIter>::
25659 do_get(iter_type __beg, iter_type __end, ios_base& __io,
25660 ios_base::iostate& __err, double& __v) const
25663 __xtrc.reserve(32);
25664 __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc);
25665 std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale());
25669 template<typename _CharT, typename _InIter>
25671 num_get<_CharT, _InIter>::
25672 do_get(iter_type __beg, iter_type __end, ios_base& __io,
25673 ios_base::iostate& __err, long double& __v) const
25676 __xtrc.reserve(32);
25677 __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc);
25678 std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale());
25682 template<typename _CharT, typename _InIter>
25684 num_get<_CharT, _InIter>::
25685 do_get(iter_type __beg, iter_type __end, ios_base& __io,
25686 ios_base::iostate& __err, void*& __v) const
25689 typedef ios_base::fmtflags fmtflags;
25690 const fmtflags __fmt = __io.flags();
25691 __io.flags(__fmt & ~ios_base::basefield | ios_base::hex);
25693 unsigned long __ul;
25694 __beg = _M_extract_int(__beg, __end, __io, __err, __ul);
25699 if (!(__err & ios_base::failbit))
25700 __v = reinterpret_cast<void*>(__ul);
25706 template<typename _CharT, typename _OutIter>
25708 num_put<_CharT, _OutIter>::
25709 _M_pad(_CharT __fill, streamsize __w, ios_base& __io,
25710 _CharT* __new, const _CharT* __cs, int& __len) const
25714 __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, __cs,
25716 __len = static_cast<int>(__w);
25722 template<typename _CharT>
25724 __int_to_char(_CharT* __bufend, long __v, const _CharT* __lit,
25725 ios_base::fmtflags __flags)
25727 unsigned long __ul = __v;
25728 const ios_base::fmtflags __basefield = __flags & ios_base::basefield;
25729 if (__builtin_expect(__basefield != ios_base::oct
25730 && __basefield != ios_base::hex, true))
25731 __ul = __v < 0 ? -__v : __ul;
25732 return __int_to_char(__bufend, __ul, __lit, __flags, false);
25735 template<typename _CharT>
25737 __int_to_char(_CharT* __bufend, unsigned long __v, const _CharT* __lit,
25738 ios_base::fmtflags __flags)
25739 { return __int_to_char(__bufend, __v, __lit, __flags, false); }
25742 template<typename _CharT>
25744 __int_to_char(_CharT* __bufend, long long __v, const _CharT* __lit,
25745 ios_base::fmtflags __flags)
25747 unsigned long long __ull = __v;
25748 const ios_base::fmtflags __basefield = __flags & ios_base::basefield;
25749 if (__builtin_expect(__basefield != ios_base::oct
25750 && __basefield != ios_base::hex, true))
25751 __ull = __v < 0 ? -__v : __ull;
25752 return __int_to_char(__bufend, __ull, __lit, __flags, false);
25755 template<typename _CharT>
25757 __int_to_char(_CharT* __bufend, unsigned long long __v,
25758 const _CharT* __lit, ios_base::fmtflags __flags)
25759 { return __int_to_char(__bufend, __v, __lit, __flags, false); }
25763 template<typename _CharT, typename _ValueT>
25765 __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit,
25766 ios_base::fmtflags __flags, bool)
25768 const ios_base::fmtflags __basefield = __flags & ios_base::basefield;
25769 _CharT* __buf = __bufend;
25771 if (__builtin_expect(__basefield != ios_base::oct
25772 && __basefield != ios_base::hex, true))
25777 *--__buf = __lit[(__v % 10) + __num_base::_S_odigits];
25782 else if (__basefield == ios_base::oct)
25787 *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits];
25795 const bool __uppercase = __flags & ios_base::uppercase;
25796 const int __case_offset = __uppercase ? __num_base::_S_oudigits
25797 : __num_base::_S_odigits;
25800 *--__buf = __lit[(__v & 0xf) + __case_offset];
25805 return __bufend - __buf;
25808 template<typename _CharT, typename _OutIter>
25810 num_put<_CharT, _OutIter>::
25811 _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep,
25812 ios_base&, _CharT* __new, _CharT* __cs, int& __len) const
25814 _CharT* __p = std::__add_grouping(__new, __sep, __grouping,
25815 __grouping_size, __cs, __cs + __len);
25816 __len = __p - __new;
25819 template<typename _CharT, typename _OutIter>
25820 template<typename _ValueT>
25822 num_put<_CharT, _OutIter>::
25823 _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill,
25826 typedef __numpunct_cache<_CharT> __cache_type;
25827 __use_cache<__cache_type> __uc;
25828 const locale& __loc = __io._M_getloc();
25829 const __cache_type* __lc = __uc(__loc);
25830 const _CharT* __lit = __lc->_M_atoms_out;
25831 const ios_base::fmtflags __flags = __io.flags();
25834 const int __ilen = 5 * sizeof(_ValueT);
25835 _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
25840 int __len = __int_to_char(__cs + __ilen, __v, __lit, __flags);
25841 __cs += __ilen - __len;
25844 if (__lc->_M_use_grouping)
25848 _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
25851 _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size,
25852 __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len);
25857 const ios_base::fmtflags __basefield = __flags & ios_base::basefield;
25858 if (__builtin_expect(__basefield != ios_base::oct
25859 && __basefield != ios_base::hex, true))
25864 if (__flags & ios_base::showpos
25865 && numeric_limits<_ValueT>::is_signed)
25866 *--__cs = __lit[__num_base::_S_oplus], ++__len;
25869 *--__cs = __lit[__num_base::_S_ominus], ++__len;
25871 else if (__flags & ios_base::showbase && __v)
25873 if (__basefield == ios_base::oct)
25874 *--__cs = __lit[__num_base::_S_odigits], ++__len;
25878 const bool __uppercase = __flags & ios_base::uppercase;
25879 *--__cs = __lit[__num_base::_S_ox + __uppercase];
25881 *--__cs = __lit[__num_base::_S_odigits];
25887 const streamsize __w = __io.width();
25888 if (__w > static_cast<streamsize>(__len))
25890 _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
25892 _M_pad(__fill, __w, __io, __cs3, __cs, __len);
25899 return std::__write(__s, __cs, __len);
25902 template<typename _CharT, typename _OutIter>
25904 num_put<_CharT, _OutIter>::
25905 _M_group_float(const char* __grouping, size_t __grouping_size,
25906 _CharT __sep, const _CharT* __p, _CharT* __new,
25907 _CharT* __cs, int& __len) const
25912 const int __declen = __p ? __p - __cs : __len;
25913 _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping,
25915 __cs, __cs + __declen);
25918 int __newlen = __p2 - __new;
25921 char_traits<_CharT>::copy(__p2, __p, __len - __declen);
25922 __newlen += __len - __declen;
25926 # 1043 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.tcc" 3
25927 template<typename _CharT, typename _OutIter>
25928 template<typename _ValueT>
25930 num_put<_CharT, _OutIter>::
25931 _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod,
25934 typedef __numpunct_cache<_CharT> __cache_type;
25935 __use_cache<__cache_type> __uc;
25936 const locale& __loc = __io._M_getloc();
25937 const __cache_type* __lc = __uc(__loc);
25940 streamsize __prec = __io.precision();
25941 if (__prec < static_cast<streamsize>(0))
25942 __prec = static_cast<streamsize>(6);
25944 const int __max_digits = numeric_limits<_ValueT>::digits10;
25954 int __cs_size = __max_digits * 3;
25955 char* __cs = static_cast<char*>(__builtin_alloca(__cs_size));
25957 __num_base::_S_format_float(__io, __fbuf, __mod);
25958 __len = std::__convert_from_v(__cs, __cs_size, __fbuf, __v,
25959 _S_get_c_locale(), __prec);
25962 if (__len >= __cs_size)
25964 __cs_size = __len + 1;
25965 __cs = static_cast<char*>(__builtin_alloca(__cs_size));
25966 __len = std::__convert_from_v(__cs, __cs_size, __fbuf, __v,
25967 _S_get_c_locale(), __prec);
25969 # 1107 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.tcc" 3
25970 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
25972 _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
25974 __ctype.widen(__cs, __cs + __len, __ws);
25977 const _CharT __cdec = __ctype.widen('.');
25978 const _CharT __dec = __lc->_M_decimal_point;
25979 const _CharT* __p = char_traits<_CharT>::find(__ws, __len, __cdec);
25981 __ws[__p - __ws] = __dec;
25986 if (__lc->_M_use_grouping
25987 && (__p || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9'
25988 && __cs[1] >= '0' && __cs[2] >= '0')))
25992 _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
25995 streamsize __off = 0;
25996 if (__cs[0] == '-' || __cs[0] == '+')
25999 __ws2[0] = __ws[0];
26003 _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size,
26004 __lc->_M_thousands_sep, __p, __ws2 + __off,
26005 __ws + __off, __len);
26012 const streamsize __w = __io.width();
26013 if (__w > static_cast<streamsize>(__len))
26015 _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
26017 _M_pad(__fill, __w, __io, __ws3, __ws, __len);
26024 return std::__write(__s, __ws, __len);
26027 template<typename _CharT, typename _OutIter>
26029 num_put<_CharT, _OutIter>::
26030 do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const
26032 const ios_base::fmtflags __flags = __io.flags();
26033 if ((__flags & ios_base::boolalpha) == 0)
26035 const long __l = __v;
26036 __s = _M_insert_int(__s, __io, __fill, __l);
26040 typedef __numpunct_cache<_CharT> __cache_type;
26041 __use_cache<__cache_type> __uc;
26042 const locale& __loc = __io._M_getloc();
26043 const __cache_type* __lc = __uc(__loc);
26045 const _CharT* __name = __v ? __lc->_M_truename
26046 : __lc->_M_falsename;
26047 int __len = __v ? __lc->_M_truename_size
26048 : __lc->_M_falsename_size;
26050 const streamsize __w = __io.width();
26051 if (__w > static_cast<streamsize>(__len))
26054 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
26056 _M_pad(__fill, __w, __io, __cs, __name, __len);
26060 __s = std::__write(__s, __name, __len);
26065 template<typename _CharT, typename _OutIter>
26067 num_put<_CharT, _OutIter>::
26068 do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const
26069 { return _M_insert_int(__s, __io, __fill, __v); }
26071 template<typename _CharT, typename _OutIter>
26073 num_put<_CharT, _OutIter>::
26074 do_put(iter_type __s, ios_base& __io, char_type __fill,
26075 unsigned long __v) const
26076 { return _M_insert_int(__s, __io, __fill, __v); }
26079 template<typename _CharT, typename _OutIter>
26081 num_put<_CharT, _OutIter>::
26082 do_put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const
26083 { return _M_insert_int(__s, __io, __fill, __v); }
26085 template<typename _CharT, typename _OutIter>
26087 num_put<_CharT, _OutIter>::
26088 do_put(iter_type __s, ios_base& __io, char_type __fill,
26089 unsigned long long __v) const
26090 { return _M_insert_int(__s, __io, __fill, __v); }
26093 template<typename _CharT, typename _OutIter>
26095 num_put<_CharT, _OutIter>::
26096 do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const
26097 { return _M_insert_float(__s, __io, __fill, char(), __v); }
26099 template<typename _CharT, typename _OutIter>
26101 num_put<_CharT, _OutIter>::
26102 do_put(iter_type __s, ios_base& __io, char_type __fill,
26103 long double __v) const
26104 { return _M_insert_float(__s, __io, __fill, 'L', __v); }
26106 template<typename _CharT, typename _OutIter>
26108 num_put<_CharT, _OutIter>::
26109 do_put(iter_type __s, ios_base& __io, char_type __fill,
26110 const void* __v) const
26112 const ios_base::fmtflags __flags = __io.flags();
26113 const ios_base::fmtflags __fmt = ~(ios_base::basefield
26114 | ios_base::uppercase
26115 | ios_base::internal);
26116 __io.flags(__flags & __fmt | (ios_base::hex | ios_base::showbase));
26118 __s = _M_insert_int(__s, __io, __fill,
26119 reinterpret_cast<unsigned long>(__v));
26120 __io.flags(__flags);
26124 template<typename _CharT, typename _InIter>
26125 template<bool _Intl>
26127 money_get<_CharT, _InIter>::
26128 _M_extract(iter_type __beg, iter_type __end, ios_base& __io,
26129 ios_base::iostate& __err, string& __units) const
26131 typedef char_traits<_CharT> __traits_type;
26132 typedef typename string_type::size_type size_type;
26133 typedef money_base::part part;
26134 typedef __moneypunct_cache<_CharT, _Intl> __cache_type;
26136 const locale& __loc = __io._M_getloc();
26137 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
26139 __use_cache<__cache_type> __uc;
26140 const __cache_type* __lc = __uc(__loc);
26141 const char_type* __lit = __lc->_M_atoms;
26144 bool __negative = false;
26146 size_type __sign_size = 0;
26148 const bool __mandatory_sign = (__lc->_M_positive_sign_size
26149 && __lc->_M_negative_sign_size);
26151 string __grouping_tmp;
26152 if (__lc->_M_use_grouping)
26153 __grouping_tmp.reserve(32);
26155 int __last_pos = 0;
26159 bool __testvalid = true;
26161 bool __testdecfound = false;
26167 const char_type* __lit_zero = __lit + money_base::_S_zero;
26168 const money_base::pattern __p = __lc->_M_neg_format;
26169 for (int __i = 0; __i < 4 && __testvalid; ++__i)
26171 const part __which = static_cast<part>(__p.field[__i]);
26174 case money_base::symbol:
26179 if (__io.flags() & ios_base::showbase || __sign_size > 1
26181 || (__i == 1 && (__mandatory_sign
26182 || (static_cast<part>(__p.field[0])
26183 == money_base::sign)
26184 || (static_cast<part>(__p.field[2])
26185 == money_base::space)))
26186 || (__i == 2 && ((static_cast<part>(__p.field[3])
26187 == money_base::value)
26188 || __mandatory_sign
26189 && (static_cast<part>(__p.field[3])
26190 == money_base::sign))))
26192 const size_type __len = __lc->_M_curr_symbol_size;
26194 for (; __beg != __end && __j < __len
26195 && *__beg == __lc->_M_curr_symbol[__j];
26198 && (__j || __io.flags() & ios_base::showbase))
26199 __testvalid = false;
26202 case money_base::sign:
26204 if (__lc->_M_positive_sign_size && __beg != __end
26205 && *__beg == __lc->_M_positive_sign[0])
26207 __sign_size = __lc->_M_positive_sign_size;
26210 else if (__lc->_M_negative_sign_size && __beg != __end
26211 && *__beg == __lc->_M_negative_sign[0])
26214 __sign_size = __lc->_M_negative_sign_size;
26217 else if (__lc->_M_positive_sign_size
26218 && !__lc->_M_negative_sign_size)
26222 else if (__mandatory_sign)
26223 __testvalid = false;
26225 case money_base::value:
26228 for (; __beg != __end; ++__beg)
26230 const char_type __c = *__beg;
26231 const char_type* __q = __traits_type::find(__lit_zero,
26235 __res += money_base::_S_atoms[__q - __lit];
26238 else if (__c == __lc->_M_decimal_point
26239 && !__testdecfound)
26243 __testdecfound = true;
26245 else if (__lc->_M_use_grouping
26246 && __c == __lc->_M_thousands_sep
26247 && !__testdecfound)
26252 __grouping_tmp += static_cast<char>(__n);
26257 __testvalid = false;
26265 __testvalid = false;
26267 case money_base::space:
26269 if (__beg != __end && __ctype.is(ctype_base::space, *__beg))
26272 __testvalid = false;
26273 case money_base::none:
26276 for (; __beg != __end
26277 && __ctype.is(ctype_base::space, *__beg); ++__beg);
26283 if (__sign_size > 1 && __testvalid)
26285 const char_type* __sign = __negative ? __lc->_M_negative_sign
26286 : __lc->_M_positive_sign;
26288 for (; __beg != __end && __i < __sign_size
26289 && *__beg == __sign[__i]; ++__beg, ++__i);
26291 if (__i != __sign_size)
26292 __testvalid = false;
26298 if (__res.size() > 1)
26300 const size_type __first = __res.find_first_not_of('0');
26301 const bool __only_zeros = __first == string::npos;
26303 __res.erase(0, __only_zeros ? __res.size() - 1 : __first);
26307 if (__negative && __res[0] != '0')
26308 __res.insert(__res.begin(), '-');
26311 if (__grouping_tmp.size())
26314 __grouping_tmp += static_cast<char>(__testdecfound ? __last_pos
26316 if (!std::__verify_grouping(__lc->_M_grouping,
26317 __lc->_M_grouping_size,
26319 __err |= ios_base::failbit;
26323 if (__testdecfound && __lc->_M_frac_digits > 0
26324 && __n != __lc->_M_frac_digits)
26325 __testvalid = false;
26330 __err |= ios_base::failbit;
26332 __units.swap(__res);
26335 if (__beg == __end)
26336 __err |= ios_base::eofbit;
26340 template<typename _CharT, typename _InIter>
26342 money_get<_CharT, _InIter>::
26343 do_get(iter_type __beg, iter_type __end, bool __intl, ios_base& __io,
26344 ios_base::iostate& __err, long double& __units) const
26348 __beg = _M_extract<true>(__beg, __end, __io, __err, __str);
26350 __beg = _M_extract<false>(__beg, __end, __io, __err, __str);
26351 std::__convert_to_v(__str.c_str(), __units, __err, _S_get_c_locale());
26355 template<typename _CharT, typename _InIter>
26357 money_get<_CharT, _InIter>::
26358 do_get(iter_type __beg, iter_type __end, bool __intl, ios_base& __io,
26359 ios_base::iostate& __err, string_type& __units) const
26361 typedef typename string::size_type size_type;
26363 const locale& __loc = __io._M_getloc();
26364 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
26367 const iter_type __ret = __intl ? _M_extract<true>(__beg, __end, __io,
26369 : _M_extract<false>(__beg, __end, __io,
26371 const size_type __len = __str.size();
26374 _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
26376 __ctype.widen(__str.data(), __str.data() + __len, __ws);
26377 __units.assign(__ws, __len);
26383 template<typename _CharT, typename _OutIter>
26384 template<bool _Intl>
26386 money_put<_CharT, _OutIter>::
26387 _M_insert(iter_type __s, ios_base& __io, char_type __fill,
26388 const string_type& __digits) const
26390 typedef typename string_type::size_type size_type;
26391 typedef money_base::part part;
26392 typedef __moneypunct_cache<_CharT, _Intl> __cache_type;
26394 const locale& __loc = __io._M_getloc();
26395 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
26397 __use_cache<__cache_type> __uc;
26398 const __cache_type* __lc = __uc(__loc);
26399 const char_type* __lit = __lc->_M_atoms;
26403 const char_type* __beg = __digits.data();
26405 money_base::pattern __p;
26406 const char_type* __sign;
26407 size_type __sign_size;
26408 if (!(*__beg == __lit[money_base::_S_minus]))
26410 __p = __lc->_M_pos_format;
26411 __sign = __lc->_M_positive_sign;
26412 __sign_size = __lc->_M_positive_sign_size;
26416 __p = __lc->_M_neg_format;
26417 __sign = __lc->_M_negative_sign;
26418 __sign_size = __lc->_M_negative_sign_size;
26419 if (__digits.size())
26424 size_type __len = __ctype.scan_not(ctype_base::digit, __beg,
26425 __beg + __digits.size()) - __beg;
26431 string_type __value;
26432 __value.reserve(2 * __len);
26436 int __paddec = __len - __lc->_M_frac_digits;
26439 if (__lc->_M_frac_digits < 0)
26441 if (__lc->_M_grouping_size)
26444 static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
26447 std::__add_grouping(__ws, __lc->_M_thousands_sep,
26449 __lc->_M_grouping_size,
26450 __beg, __beg + __paddec);
26451 __value.assign(__ws, __ws_end - __ws);
26454 __value.assign(__beg, __paddec);
26458 if (__lc->_M_frac_digits > 0)
26460 __value += __lc->_M_decimal_point;
26462 __value.append(__beg + __paddec, __lc->_M_frac_digits);
26466 __value.append(-__paddec, __lit[money_base::_S_zero]);
26467 __value.append(__beg, __len);
26472 const ios_base::fmtflags __f = __io.flags()
26473 & ios_base::adjustfield;
26474 __len = __value.size() + __sign_size;
26475 __len += ((__io.flags() & ios_base::showbase)
26476 ? __lc->_M_curr_symbol_size : 0);
26479 __res.reserve(2 * __len);
26481 const size_type __width = static_cast<size_type>(__io.width());
26482 const bool __testipad = (__f == ios_base::internal
26483 && __len < __width);
26485 for (int __i = 0; __i < 4; ++__i)
26487 const part __which = static_cast<part>(__p.field[__i]);
26490 case money_base::symbol:
26491 if (__io.flags() & ios_base::showbase)
26492 __res.append(__lc->_M_curr_symbol,
26493 __lc->_M_curr_symbol_size);
26495 case money_base::sign:
26500 __res += __sign[0];
26502 case money_base::value:
26505 case money_base::space:
26510 __res.append(__width - __len, __fill);
26514 case money_base::none:
26516 __res.append(__width - __len, __fill);
26522 if (__sign_size > 1)
26523 __res.append(__sign + 1, __sign_size - 1);
26526 __len = __res.size();
26527 if (__width > __len)
26529 if (__f == ios_base::left)
26531 __res.append(__width - __len, __fill);
26534 __res.insert(0, __width - __len, __fill);
26539 __s = std::__write(__s, __res.data(), __len);
26545 template<typename _CharT, typename _OutIter>
26547 money_put<_CharT, _OutIter>::
26548 do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill,
26549 long double __units) const
26551 const locale __loc = __io.getloc();
26552 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
26555 int __cs_size = 64;
26556 char* __cs = static_cast<char*>(__builtin_alloca(__cs_size));
26559 int __len = std::__convert_from_v(__cs, __cs_size, "%.*Lf", __units,
26560 _S_get_c_locale(), 0);
26562 if (__len >= __cs_size)
26564 __cs_size = __len + 1;
26565 __cs = static_cast<char*>(__builtin_alloca(__cs_size));
26566 __len = std::__convert_from_v(__cs, __cs_size, "%.*Lf", __units,
26567 _S_get_c_locale(), 0);
26576 _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
26578 __ctype.widen(__cs, __cs + __len, __ws);
26579 const string_type __digits(__ws, __len);
26580 return __intl ? _M_insert<true>(__s, __io, __fill, __digits)
26581 : _M_insert<false>(__s, __io, __fill, __digits);
26584 template<typename _CharT, typename _OutIter>
26586 money_put<_CharT, _OutIter>::
26587 do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill,
26588 const string_type& __digits) const
26589 { return __intl ? _M_insert<true>(__s, __io, __fill, __digits)
26590 : _M_insert<false>(__s, __io, __fill, __digits); }
26596 template<typename _CharT, typename _InIter>
26597 time_base::dateorder
26598 time_get<_CharT, _InIter>::do_date_order() const
26599 { return time_base::no_order; }
26603 template<typename _CharT, typename _InIter>
26605 time_get<_CharT, _InIter>::
26606 _M_extract_via_format(iter_type __beg, iter_type __end, ios_base& __io,
26607 ios_base::iostate& __err, tm* __tm,
26608 const _CharT* __format) const
26610 const locale& __loc = __io._M_getloc();
26611 const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc);
26612 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
26613 const size_t __len = char_traits<_CharT>::length(__format);
26615 for (size_t __i = 0; __beg != __end && __i < __len && !__err; ++__i)
26617 if (__ctype.narrow(__format[__i], 0) == '%')
26620 char __c = __ctype.narrow(__format[++__i], 0);
26622 if (__c == 'E' || __c == 'O')
26623 __c = __ctype.narrow(__format[++__i], 0);
26630 const char_type* __days1[7];
26631 __tp._M_days_abbreviated(__days1);
26632 __beg = _M_extract_name(__beg, __end, __tm->tm_wday, __days1,
26637 const char_type* __days2[7];
26638 __tp._M_days(__days2);
26639 __beg = _M_extract_name(__beg, __end, __tm->tm_wday, __days2,
26645 const char_type* __months1[12];
26646 __tp._M_months_abbreviated(__months1);
26647 __beg = _M_extract_name(__beg, __end, __tm->tm_mon,
26648 __months1, 12, __io, __err);
26652 const char_type* __months2[12];
26653 __tp._M_months(__months2);
26654 __beg = _M_extract_name(__beg, __end, __tm->tm_mon,
26655 __months2, 12, __io, __err);
26659 const char_type* __dt[2];
26660 __tp._M_date_time_formats(__dt);
26661 __beg = _M_extract_via_format(__beg, __end, __io, __err,
26666 __beg = _M_extract_num(__beg, __end, __tm->tm_mday, 1, 31, 2,
26672 if (__ctype.is(ctype_base::space, *__beg))
26673 __beg = _M_extract_num(++__beg, __end, __tm->tm_mday, 1, 9,
26676 __beg = _M_extract_num(__beg, __end, __tm->tm_mday, 10, 31,
26682 __ctype.widen(__cs, __cs + 9, __wcs);
26683 __beg = _M_extract_via_format(__beg, __end, __io, __err,
26688 __beg = _M_extract_num(__beg, __end, __tm->tm_hour, 0, 23, 2,
26693 __beg = _M_extract_num(__beg, __end, __tm->tm_hour, 1, 12, 2,
26698 __beg = _M_extract_num(__beg, __end, __mem, 1, 12, 2,
26701 __tm->tm_mon = __mem - 1;
26705 __beg = _M_extract_num(__beg, __end, __tm->tm_min, 0, 59, 2,
26709 if (__ctype.narrow(*__beg, 0) == '\n')
26712 __err |= ios_base::failbit;
26717 __ctype.widen(__cs, __cs + 6, __wcs);
26718 __beg = _M_extract_via_format(__beg, __end, __io, __err,
26725 __beg = _M_extract_num(__beg, __end, __tm->tm_sec, 0, 60, 2,
26732 if (__ctype.narrow(*__beg, 0) == '\t')
26735 __err |= ios_base::failbit;
26740 __ctype.widen(__cs, __cs + 9, __wcs);
26741 __beg = _M_extract_via_format(__beg, __end, __io, __err,
26746 const char_type* __dates[2];
26747 __tp._M_date_formats(__dates);
26748 __beg = _M_extract_via_format(__beg, __end, __io, __err,
26753 const char_type* __times[2];
26754 __tp._M_time_formats(__times);
26755 __beg = _M_extract_via_format(__beg, __end, __io, __err,
26761 __beg = _M_extract_num(__beg, __end, __tm->tm_year, 0, 99, 2,
26766 __beg = _M_extract_num(__beg, __end, __mem, 0, 9999, 4,
26769 __tm->tm_year = __mem - 1900;
26773 if (__ctype.is(ctype_base::upper, *__beg))
26776 __beg = _M_extract_name(__beg, __end, __tmp,
26777 __timepunct_cache<_CharT>::_S_timezones,
26781 if (__beg != __end && !__err && __tmp == 0
26782 && (*__beg == __ctype.widen('-')
26783 || *__beg == __ctype.widen('+')))
26785 __beg = _M_extract_num(__beg, __end, __tmp, 0, 23, 2,
26787 __beg = _M_extract_num(__beg, __end, __tmp, 0, 59, 2,
26792 __err |= ios_base::failbit;
26796 __err |= ios_base::failbit;
26802 if (__format[__i] == *__beg)
26805 __err |= ios_base::failbit;
26811 template<typename _CharT, typename _InIter>
26813 time_get<_CharT, _InIter>::
26814 _M_extract_num(iter_type __beg, iter_type __end, int& __member,
26815 int __min, int __max, size_t __len,
26816 ios_base& __io, ios_base::iostate& __err) const
26818 const locale& __loc = __io._M_getloc();
26819 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
26822 int __mult = __len == 2 ? 10 : (__len == 4 ? 1000 : 1);
26827 for (; __beg != __end && __i < __len; ++__beg, ++__i)
26829 const char __c = __ctype.narrow(*__beg, '*');
26830 if (__c >= '0' && __c <= '9')
26832 __value = __value * 10 + (__c - '0');
26833 const int __valuec = __value * __mult;
26834 if (__valuec > __max || __valuec + __mult < __min)
26842 __member = __value;
26844 __err |= ios_base::failbit;
26850 template<typename _CharT, typename _InIter>
26852 time_get<_CharT, _InIter>::
26853 _M_extract_name(iter_type __beg, iter_type __end, int& __member,
26854 const _CharT** __names, size_t __indexlen,
26855 ios_base& __io, ios_base::iostate& __err) const
26857 typedef char_traits<_CharT> __traits_type;
26858 const locale& __loc = __io._M_getloc();
26859 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
26861 int* __matches = static_cast<int*>(__builtin_alloca(sizeof(int)
26863 size_t __nmatches = 0;
26865 bool __testvalid = true;
26866 const char_type* __name;
26872 if (__beg != __end)
26874 const char_type __c = *__beg;
26875 for (size_t __i1 = 0; __i1 < __indexlen; ++__i1)
26876 if (__c == __names[__i1][0]
26877 || __c == __ctype.toupper(__names[__i1][0]))
26878 __matches[__nmatches++] = __i1;
26881 while (__nmatches > 1)
26884 size_t __minlen = __traits_type::length(__names[__matches[0]]);
26885 for (size_t __i2 = 1; __i2 < __nmatches; ++__i2)
26886 __minlen = std::min(__minlen,
26887 __traits_type::length(__names[__matches[__i2]]));
26889 if (__pos < __minlen && __beg != __end)
26890 for (size_t __i3 = 0; __i3 < __nmatches;)
26892 __name = __names[__matches[__i3]];
26893 if (!(__name[__pos] == *__beg))
26894 __matches[__i3] = __matches[--__nmatches];
26902 if (__nmatches == 1)
26906 __name = __names[__matches[0]];
26907 const size_t __len = __traits_type::length(__name);
26908 while (__pos < __len && __beg != __end && __name[__pos] == *__beg)
26911 if (__len == __pos)
26912 __member = __matches[0];
26914 __testvalid = false;
26917 __testvalid = false;
26919 __err |= ios_base::failbit;
26923 template<typename _CharT, typename _InIter>
26925 time_get<_CharT, _InIter>::
26926 do_get_time(iter_type __beg, iter_type __end, ios_base& __io,
26927 ios_base::iostate& __err, tm* __tm) const
26929 const locale& __loc = __io._M_getloc();
26930 const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc);
26931 const char_type* __times[2];
26932 __tp._M_time_formats(__times);
26933 __beg = _M_extract_via_format(__beg, __end, __io, __err,
26935 if (__beg == __end)
26936 __err |= ios_base::eofbit;
26940 template<typename _CharT, typename _InIter>
26942 time_get<_CharT, _InIter>::
26943 do_get_date(iter_type __beg, iter_type __end, ios_base& __io,
26944 ios_base::iostate& __err, tm* __tm) const
26946 const locale& __loc = __io._M_getloc();
26947 const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc);
26948 const char_type* __dates[2];
26949 __tp._M_date_formats(__dates);
26950 __beg = _M_extract_via_format(__beg, __end, __io, __err,
26952 if (__beg == __end)
26953 __err |= ios_base::eofbit;
26957 template<typename _CharT, typename _InIter>
26959 time_get<_CharT, _InIter>::
26960 do_get_weekday(iter_type __beg, iter_type __end, ios_base& __io,
26961 ios_base::iostate& __err, tm* __tm) const
26963 typedef char_traits<_CharT> __traits_type;
26964 const locale& __loc = __io._M_getloc();
26965 const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc);
26966 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
26967 const char_type* __days[7];
26968 __tp._M_days_abbreviated(__days);
26970 __beg = _M_extract_name(__beg, __end, __tmpwday, __days, 7, __io, __err);
26978 if (!__err && __beg != __end)
26980 size_t __pos = __traits_type::length(__days[__tmpwday]);
26981 __tp._M_days(__days);
26982 const char_type* __name = __days[__tmpwday];
26983 if (__name[__pos] == *__beg)
26986 const size_t __len = __traits_type::length(__name);
26987 while (__pos < __len && __beg != __end
26988 && __name[__pos] == *__beg)
26990 if (__len != __pos)
26991 __err |= ios_base::failbit;
26995 __tm->tm_wday = __tmpwday;
26997 if (__beg == __end)
26998 __err |= ios_base::eofbit;
27002 template<typename _CharT, typename _InIter>
27004 time_get<_CharT, _InIter>::
27005 do_get_monthname(iter_type __beg, iter_type __end,
27006 ios_base& __io, ios_base::iostate& __err, tm* __tm) const
27008 typedef char_traits<_CharT> __traits_type;
27009 const locale& __loc = __io._M_getloc();
27010 const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc);
27011 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
27012 const char_type* __months[12];
27013 __tp._M_months_abbreviated(__months);
27015 __beg = _M_extract_name(__beg, __end, __tmpmon, __months, 12,
27024 if (!__err && __beg != __end)
27026 size_t __pos = __traits_type::length(__months[__tmpmon]);
27027 __tp._M_months(__months);
27028 const char_type* __name = __months[__tmpmon];
27029 if (__name[__pos] == *__beg)
27032 const size_t __len = __traits_type::length(__name);
27033 while (__pos < __len && __beg != __end
27034 && __name[__pos] == *__beg)
27036 if (__len != __pos)
27037 __err |= ios_base::failbit;
27041 __tm->tm_mon = __tmpmon;
27043 if (__beg == __end)
27044 __err |= ios_base::eofbit;
27048 template<typename _CharT, typename _InIter>
27050 time_get<_CharT, _InIter>::
27051 do_get_year(iter_type __beg, iter_type __end, ios_base& __io,
27052 ios_base::iostate& __err, tm* __tm) const
27054 const locale& __loc = __io._M_getloc();
27055 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
27059 for (; __beg != __end && __i < 4; ++__beg, ++__i)
27061 const char __c = __ctype.narrow(*__beg, '*');
27062 if (__c >= '0' && __c <= '9')
27063 __value = __value * 10 + (__c - '0');
27067 if (__i == 2 || __i == 4)
27068 __tm->tm_year = __i == 2 ? __value : __value - 1900;
27070 __err |= ios_base::failbit;
27071 if (__beg == __end)
27072 __err |= ios_base::eofbit;
27076 template<typename _CharT, typename _OutIter>
27078 time_put<_CharT, _OutIter>::
27079 put(iter_type __s, ios_base& __io, char_type __fill, const tm* __tm,
27080 const _CharT* __beg, const _CharT* __end) const
27082 const locale& __loc = __io._M_getloc();
27083 ctype<_CharT> const& __ctype = use_facet<ctype<_CharT> >(__loc);
27084 for (; __beg != __end; ++__beg)
27085 if (__ctype.narrow(*__beg, 0) != '%')
27090 else if (++__beg != __end)
27094 const char __c = __ctype.narrow(*__beg, 0);
27095 if (__c != 'E' && __c != 'O')
27097 else if (++__beg != __end)
27100 __format = __ctype.narrow(*__beg, 0);
27104 __s = this->do_put(__s, __io, __fill, __tm, __format, __mod);
27111 template<typename _CharT, typename _OutIter>
27113 time_put<_CharT, _OutIter>::
27114 do_put(iter_type __s, ios_base& __io, char_type, const tm* __tm,
27115 char __format, char __mod) const
27117 const locale& __loc = __io._M_getloc();
27118 ctype<_CharT> const& __ctype = use_facet<ctype<_CharT> >(__loc);
27119 __timepunct<_CharT> const& __tp = use_facet<__timepunct<_CharT> >(__loc);
27123 const size_t __maxlen = 128;
27125 static_cast<char_type*>(__builtin_alloca(sizeof(char_type) * __maxlen));
27132 char_type __fmt[4];
27133 __fmt[0] = __ctype.widen('%');
27136 __fmt[1] = __format;
27137 __fmt[2] = char_type();
27142 __fmt[2] = __format;
27143 __fmt[3] = char_type();
27146 __tp._M_put(__res, __maxlen, __fmt, __tm);
27149 return std::__write(__s, __res, char_traits<char_type>::length(__res));
27153 template<typename _CharT>
27155 collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const
27159 template<typename _CharT>
27161 collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const
27164 template<typename _CharT>
27167 do_compare(const _CharT* __lo1, const _CharT* __hi1,
27168 const _CharT* __lo2, const _CharT* __hi2) const
27172 const string_type __one(__lo1, __hi1);
27173 const string_type __two(__lo2, __hi2);
27175 const _CharT* __p = __one.c_str();
27176 const _CharT* __pend = __one.data() + __one.length();
27177 const _CharT* __q = __two.c_str();
27178 const _CharT* __qend = __two.data() + __two.length();
27185 const int __res = _M_compare(__p, __q);
27189 __p += char_traits<_CharT>::length(__p);
27190 __q += char_traits<_CharT>::length(__q);
27191 if (__p == __pend && __q == __qend)
27193 else if (__p == __pend)
27195 else if (__q == __qend)
27203 template<typename _CharT>
27204 typename collate<_CharT>::string_type
27206 do_transform(const _CharT* __lo, const _CharT* __hi) const
27209 string_type __str(__lo, __hi);
27211 const _CharT* __p = __str.c_str();
27212 const _CharT* __pend = __str.data() + __str.length();
27214 size_t __len = (__hi - __lo) * 2;
27225 static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __len));
27226 size_t __res = _M_transform(__c, __p, __len);
27229 if (__res >= __len)
27232 __c = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
27234 __res = _M_transform(__c, __p, __len);
27237 __ret.append(__c, __res);
27238 __p += char_traits<_CharT>::length(__p);
27243 __ret.push_back(_CharT());
27247 template<typename _CharT>
27250 do_hash(const _CharT* __lo, const _CharT* __hi) const
27252 unsigned long __val = 0;
27253 for (; __lo < __hi; ++__lo)
27254 __val = *__lo + ((__val << 7) |
27255 (__val >> (numeric_limits<unsigned long>::digits - 7)));
27256 return static_cast<long>(__val);
27258 # 2407 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/locale_facets.tcc" 3
27259 template<typename _CharT, typename _Traits>
27261 __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill,
27262 _CharT* __news, const _CharT* __olds,
27263 const streamsize __newlen,
27264 const streamsize __oldlen, const bool __num)
27266 const size_t __plen = static_cast<size_t>(__newlen - __oldlen);
27267 const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield;
27270 if (__adjust == ios_base::left)
27272 _Traits::copy(__news, const_cast<_CharT*>(__olds), __oldlen);
27273 _Traits::assign(__news + __oldlen, __plen, __fill);
27278 if (__adjust == ios_base::internal && __num)
27283 const locale& __loc = __io._M_getloc();
27284 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
27286 const bool __testsign = (__ctype.widen('-') == __olds[0]
27287 || __ctype.widen('+') == __olds[0]);
27288 const bool __testhex = (__ctype.widen('0') == __olds[0]
27290 && (__ctype.widen('x') == __olds[1]
27291 || __ctype.widen('X') == __olds[1]));
27294 __news[0] = __olds[0];
27295 __news[1] = __olds[1];
27299 else if (__testsign)
27301 __news[0] = __olds[0];
27307 _Traits::assign(__news, __plen, __fill);
27308 _Traits::copy(__news + __plen, const_cast<_CharT*>(__olds + __mod),
27313 __verify_grouping(const char* __grouping, size_t __grouping_size,
27314 const string& __grouping_tmp)
27316 const size_t __n = __grouping_tmp.size() - 1;
27317 const size_t __min = std::min(__n, size_t(__grouping_size - 1));
27319 bool __test = true;
27324 for (size_t __j = 0; __j < __min && __test; --__i, ++__j)
27325 __test = __grouping_tmp[__i] == __grouping[__j];
27326 for (; __i && __test; --__i)
27327 __test = __grouping_tmp[__i] == __grouping[__min];
27331 if (static_cast<signed char>(__grouping[__min]) > 0)
27332 __test &= __grouping_tmp[0] <= __grouping[__min];
27336 template<typename _CharT>
27338 __add_grouping(_CharT* __s, _CharT __sep,
27339 const char* __gbeg, size_t __gsize,
27340 const _CharT* __first, const _CharT* __last)
27342 if (__last - __first > *__gbeg
27343 && static_cast<signed char>(*__gbeg) > 0)
27345 const bool __bump = __gsize != 1;
27346 __s = std::__add_grouping(__s, __sep, __gbeg + __bump,
27347 __gsize - __bump, __first,
27349 __first = __last - *__gbeg;
27353 *__s++ = *__first++;
27354 while (__first != __last);
27362 extern template class moneypunct<char, false>;
27363 extern template class moneypunct<char, true>;
27364 extern template class moneypunct_byname<char, false>;
27365 extern template class moneypunct_byname<char, true>;
27366 extern template class money_get<char>;
27367 extern template class money_put<char>;
27368 extern template class numpunct<char>;
27369 extern template class numpunct_byname<char>;
27370 extern template class num_get<char>;
27371 extern template class num_put<char>;
27372 extern template class __timepunct<char>;
27373 extern template class time_put<char>;
27374 extern template class time_put_byname<char>;
27375 extern template class time_get<char>;
27376 extern template class time_get_byname<char>;
27377 extern template class messages<char>;
27378 extern template class messages_byname<char>;
27379 extern template class ctype_byname<char>;
27380 extern template class codecvt_byname<char, char, mbstate_t>;
27381 extern template class collate<char>;
27382 extern template class collate_byname<char>;
27385 const codecvt<char, char, mbstate_t>&
27386 use_facet<codecvt<char, char, mbstate_t> >(const locale&);
27389 const collate<char>&
27390 use_facet<collate<char> >(const locale&);
27393 const numpunct<char>&
27394 use_facet<numpunct<char> >(const locale&);
27397 const num_put<char>&
27398 use_facet<num_put<char> >(const locale&);
27401 const num_get<char>&
27402 use_facet<num_get<char> >(const locale&);
27405 const moneypunct<char, true>&
27406 use_facet<moneypunct<char, true> >(const locale&);
27409 const moneypunct<char, false>&
27410 use_facet<moneypunct<char, false> >(const locale&);
27413 const money_put<char>&
27414 use_facet<money_put<char> >(const locale&);
27417 const money_get<char>&
27418 use_facet<money_get<char> >(const locale&);
27421 const __timepunct<char>&
27422 use_facet<__timepunct<char> >(const locale&);
27425 const time_put<char>&
27426 use_facet<time_put<char> >(const locale&);
27429 const time_get<char>&
27430 use_facet<time_get<char> >(const locale&);
27433 const messages<char>&
27434 use_facet<messages<char> >(const locale&);
27438 has_facet<ctype<char> >(const locale&);
27442 has_facet<codecvt<char, char, mbstate_t> >(const locale&);
27446 has_facet<collate<char> >(const locale&);
27450 has_facet<numpunct<char> >(const locale&);
27454 has_facet<num_put<char> >(const locale&);
27458 has_facet<num_get<char> >(const locale&);
27462 has_facet<moneypunct<char> >(const locale&);
27466 has_facet<money_put<char> >(const locale&);
27470 has_facet<money_get<char> >(const locale&);
27474 has_facet<__timepunct<char> >(const locale&);
27478 has_facet<time_put<char> >(const locale&);
27482 has_facet<time_get<char> >(const locale&);
27486 has_facet<messages<char> >(const locale&);
27489 extern template class moneypunct<wchar_t, false>;
27490 extern template class moneypunct<wchar_t, true>;
27491 extern template class moneypunct_byname<wchar_t, false>;
27492 extern template class moneypunct_byname<wchar_t, true>;
27493 extern template class money_get<wchar_t>;
27494 extern template class money_put<wchar_t>;
27495 extern template class numpunct<wchar_t>;
27496 extern template class numpunct_byname<wchar_t>;
27497 extern template class num_get<wchar_t>;
27498 extern template class num_put<wchar_t>;
27499 extern template class __timepunct<wchar_t>;
27500 extern template class time_put<wchar_t>;
27501 extern template class time_put_byname<wchar_t>;
27502 extern template class time_get<wchar_t>;
27503 extern template class time_get_byname<wchar_t>;
27504 extern template class messages<wchar_t>;
27505 extern template class messages_byname<wchar_t>;
27506 extern template class ctype_byname<wchar_t>;
27507 extern template class codecvt_byname<wchar_t, char, mbstate_t>;
27508 extern template class collate<wchar_t>;
27509 extern template class collate_byname<wchar_t>;
27512 const codecvt<wchar_t, char, mbstate_t>&
27513 use_facet<codecvt<wchar_t, char, mbstate_t> >(locale const&);
27516 const collate<wchar_t>&
27517 use_facet<collate<wchar_t> >(const locale&);
27520 const numpunct<wchar_t>&
27521 use_facet<numpunct<wchar_t> >(const locale&);
27524 const num_put<wchar_t>&
27525 use_facet<num_put<wchar_t> >(const locale&);
27528 const num_get<wchar_t>&
27529 use_facet<num_get<wchar_t> >(const locale&);
27532 const moneypunct<wchar_t, true>&
27533 use_facet<moneypunct<wchar_t, true> >(const locale&);
27536 const moneypunct<wchar_t, false>&
27537 use_facet<moneypunct<wchar_t, false> >(const locale&);
27540 const money_put<wchar_t>&
27541 use_facet<money_put<wchar_t> >(const locale&);
27544 const money_get<wchar_t>&
27545 use_facet<money_get<wchar_t> >(const locale&);
27548 const __timepunct<wchar_t>&
27549 use_facet<__timepunct<wchar_t> >(const locale&);
27552 const time_put<wchar_t>&
27553 use_facet<time_put<wchar_t> >(const locale&);
27556 const time_get<wchar_t>&
27557 use_facet<time_get<wchar_t> >(const locale&);
27560 const messages<wchar_t>&
27561 use_facet<messages<wchar_t> >(const locale&);
27565 has_facet<ctype<wchar_t> >(const locale&);
27569 has_facet<codecvt<wchar_t, char, mbstate_t> >(const locale&);
27573 has_facet<collate<wchar_t> >(const locale&);
27577 has_facet<numpunct<wchar_t> >(const locale&);
27581 has_facet<num_put<wchar_t> >(const locale&);
27585 has_facet<num_get<wchar_t> >(const locale&);
27589 has_facet<moneypunct<wchar_t> >(const locale&);
27593 has_facet<money_put<wchar_t> >(const locale&);
27597 has_facet<money_get<wchar_t> >(const locale&);
27601 has_facet<__timepunct<wchar_t> >(const locale&);
27605 has_facet<time_put<wchar_t> >(const locale&);
27609 has_facet<time_get<wchar_t> >(const locale&);
27613 has_facet<messages<wchar_t> >(const locale&);
27617 # 49 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/locale" 2 3
27619 #pragma GCC visibility pop
27620 # 46 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/ostream.tcc" 2 3
27624 template<typename _CharT, typename _Traits>
27625 basic_ostream<_CharT, _Traits>::sentry::
27626 sentry(basic_ostream<_CharT, _Traits>& __os)
27627 : _M_ok(false), _M_os(__os)
27630 if (__os.tie() && __os.good())
27631 __os.tie()->flush();
27636 __os.setstate(ios_base::failbit);
27639 template<typename _CharT, typename _Traits>
27640 basic_ostream<_CharT, _Traits>&
27641 basic_ostream<_CharT, _Traits>::
27642 operator<<(__ostream_type& (*__pf)(__ostream_type&))
27647 return __pf(*this);
27650 template<typename _CharT, typename _Traits>
27651 basic_ostream<_CharT, _Traits>&
27652 basic_ostream<_CharT, _Traits>::
27653 operator<<(__ios_type& (*__pf)(__ios_type&))
27662 template<typename _CharT, typename _Traits>
27663 basic_ostream<_CharT, _Traits>&
27664 basic_ostream<_CharT, _Traits>::
27665 operator<<(ios_base& (*__pf)(ios_base&))
27674 template<typename _CharT, typename _Traits>
27675 basic_ostream<_CharT, _Traits>&
27676 basic_ostream<_CharT, _Traits>::
27677 operator<<(bool __n)
27679 sentry __cerb(*this);
27682 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
27685 const __num_put_type& __np = __check_facet(this->_M_num_put);
27686 if (__np.put(*this, *this, this->fill(), __n).failed())
27687 __err |= ios_base::badbit;
27690 { this->_M_setstate(ios_base::badbit); }
27692 this->setstate(__err);
27697 template<typename _CharT, typename _Traits>
27698 basic_ostream<_CharT, _Traits>&
27699 basic_ostream<_CharT, _Traits>::
27700 operator<<(short __n)
27702 sentry __cerb(*this);
27705 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
27711 const ios_base::fmtflags __fmt = (this->flags()
27712 & ios_base::basefield);
27713 if (__fmt == ios_base::oct || __fmt == ios_base::hex)
27714 __l = static_cast<long>(static_cast<unsigned short>(__n));
27716 __l = static_cast<long>(__n);
27717 const __num_put_type& __np = __check_facet(this->_M_num_put);
27718 if (__np.put(*this, *this, this->fill(), __l).failed())
27719 __err |= ios_base::badbit;
27722 { this->_M_setstate(ios_base::badbit); }
27724 this->setstate(__err);
27729 template<typename _CharT, typename _Traits>
27730 basic_ostream<_CharT, _Traits>&
27731 basic_ostream<_CharT, _Traits>::
27732 operator<<(unsigned short __n)
27734 sentry __cerb(*this);
27737 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
27742 const __num_put_type& __np = __check_facet(this->_M_num_put);
27743 if (__np.put(*this, *this, this->fill(),
27744 static_cast<unsigned long>(__n)).failed())
27745 __err |= ios_base::badbit;
27748 { this->_M_setstate(ios_base::badbit); }
27750 this->setstate(__err);
27755 template<typename _CharT, typename _Traits>
27756 basic_ostream<_CharT, _Traits>&
27757 basic_ostream<_CharT, _Traits>::
27758 operator<<(int __n)
27760 sentry __cerb(*this);
27763 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
27769 const ios_base::fmtflags __fmt = (this->flags()
27770 & ios_base::basefield);
27771 if (__fmt == ios_base::oct || __fmt == ios_base::hex)
27772 __l = static_cast<long>(static_cast<unsigned int>(__n));
27774 __l = static_cast<long>(__n);
27775 const __num_put_type& __np = __check_facet(this->_M_num_put);
27776 if (__np.put(*this, *this, this->fill(), __l).failed())
27777 __err |= ios_base::badbit;
27780 { this->_M_setstate(ios_base::badbit); }
27782 this->setstate(__err);
27787 template<typename _CharT, typename _Traits>
27788 basic_ostream<_CharT, _Traits>&
27789 basic_ostream<_CharT, _Traits>::
27790 operator<<(unsigned int __n)
27792 sentry __cerb(*this);
27795 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
27800 const __num_put_type& __np = __check_facet(this->_M_num_put);
27801 if (__np.put(*this, *this, this->fill(),
27802 static_cast<unsigned long>(__n)).failed())
27803 __err |= ios_base::badbit;
27806 { this->_M_setstate(ios_base::badbit); }
27808 this->setstate(__err);
27813 template<typename _CharT, typename _Traits>
27814 basic_ostream<_CharT, _Traits>&
27815 basic_ostream<_CharT, _Traits>::
27816 operator<<(long __n)
27818 sentry __cerb(*this);
27821 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
27824 const __num_put_type& __np = __check_facet(this->_M_num_put);
27825 if (__np.put(*this, *this, this->fill(), __n).failed())
27826 __err |= ios_base::badbit;
27829 { this->_M_setstate(ios_base::badbit); }
27831 this->setstate(__err);
27836 template<typename _CharT, typename _Traits>
27837 basic_ostream<_CharT, _Traits>&
27838 basic_ostream<_CharT, _Traits>::
27839 operator<<(unsigned long __n)
27841 sentry __cerb(*this);
27844 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
27847 const __num_put_type& __np = __check_facet(this->_M_num_put);
27848 if (__np.put(*this, *this, this->fill(), __n).failed())
27849 __err |= ios_base::badbit;
27852 { this->_M_setstate(ios_base::badbit); }
27854 this->setstate(__err);
27860 template<typename _CharT, typename _Traits>
27861 basic_ostream<_CharT, _Traits>&
27862 basic_ostream<_CharT, _Traits>::
27863 operator<<(long long __n)
27865 sentry __cerb(*this);
27868 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
27871 const __num_put_type& __np = __check_facet(this->_M_num_put);
27872 if (__np.put(*this, *this, this->fill(), __n).failed())
27873 __err |= ios_base::badbit;
27876 { this->_M_setstate(ios_base::badbit); }
27878 this->setstate(__err);
27883 template<typename _CharT, typename _Traits>
27884 basic_ostream<_CharT, _Traits>&
27885 basic_ostream<_CharT, _Traits>::
27886 operator<<(unsigned long long __n)
27888 sentry __cerb(*this);
27891 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
27894 const __num_put_type& __np = __check_facet(this->_M_num_put);
27895 if (__np.put(*this, *this, this->fill(), __n).failed())
27896 __err |= ios_base::badbit;
27899 { this->_M_setstate(ios_base::badbit); }
27901 this->setstate(__err);
27907 template<typename _CharT, typename _Traits>
27908 basic_ostream<_CharT, _Traits>&
27909 basic_ostream<_CharT, _Traits>::
27910 operator<<(float __n)
27912 sentry __cerb(*this);
27915 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
27920 const __num_put_type& __np = __check_facet(this->_M_num_put);
27921 if (__np.put(*this, *this, this->fill(),
27922 static_cast<double>(__n)).failed())
27923 __err |= ios_base::badbit;
27926 { this->_M_setstate(ios_base::badbit); }
27928 this->setstate(__err);
27933 template<typename _CharT, typename _Traits>
27934 basic_ostream<_CharT, _Traits>&
27935 basic_ostream<_CharT, _Traits>::
27936 operator<<(double __n)
27938 sentry __cerb(*this);
27941 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
27944 const __num_put_type& __np = __check_facet(this->_M_num_put);
27945 if (__np.put(*this, *this, this->fill(), __n).failed())
27946 __err |= ios_base::badbit;
27949 { this->_M_setstate(ios_base::badbit); }
27951 this->setstate(__err);
27956 template<typename _CharT, typename _Traits>
27957 basic_ostream<_CharT, _Traits>&
27958 basic_ostream<_CharT, _Traits>::
27959 operator<<(long double __n)
27961 sentry __cerb(*this);
27964 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
27967 const __num_put_type& __np = __check_facet(this->_M_num_put);
27968 if (__np.put(*this, *this, this->fill(), __n).failed())
27969 __err |= ios_base::badbit;
27972 { this->_M_setstate(ios_base::badbit); }
27974 this->setstate(__err);
27979 template<typename _CharT, typename _Traits>
27980 basic_ostream<_CharT, _Traits>&
27981 basic_ostream<_CharT, _Traits>::
27982 operator<<(const void* __n)
27984 sentry __cerb(*this);
27987 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
27990 const __num_put_type& __np = __check_facet(this->_M_num_put);
27991 if (__np.put(*this, *this, this->fill(), __n).failed())
27992 __err |= ios_base::badbit;
27995 { this->_M_setstate(ios_base::badbit); }
27997 this->setstate(__err);
28002 template<typename _CharT, typename _Traits>
28003 basic_ostream<_CharT, _Traits>&
28004 basic_ostream<_CharT, _Traits>::
28005 operator<<(__streambuf_type* __sbin)
28007 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
28008 sentry __cerb(*this);
28009 if (__cerb && __sbin)
28013 if (!__copy_streambufs(__sbin, this->rdbuf()))
28014 __err |= ios_base::failbit;
28017 { this->_M_setstate(ios_base::failbit); }
28020 __err |= ios_base::badbit;
28022 this->setstate(__err);
28026 template<typename _CharT, typename _Traits>
28027 basic_ostream<_CharT, _Traits>&
28028 basic_ostream<_CharT, _Traits>::
28037 sentry __cerb(*this);
28040 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
28043 const int_type __put = this->rdbuf()->sputc(__c);
28044 if (traits_type::eq_int_type(__put, traits_type::eof()))
28045 __err |= ios_base::badbit;
28048 { this->_M_setstate(ios_base::badbit); }
28050 this->setstate(__err);
28055 template<typename _CharT, typename _Traits>
28056 basic_ostream<_CharT, _Traits>&
28057 basic_ostream<_CharT, _Traits>::
28058 write(const _CharT* __s, streamsize __n)
28067 sentry __cerb(*this);
28071 { _M_write(__s, __n); }
28073 { this->_M_setstate(ios_base::badbit); }
28078 template<typename _CharT, typename _Traits>
28079 basic_ostream<_CharT, _Traits>&
28080 basic_ostream<_CharT, _Traits>::
28086 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
28089 if (this->rdbuf() && this->rdbuf()->pubsync() == -1)
28090 __err |= ios_base::badbit;
28093 { this->_M_setstate(ios_base::badbit); }
28095 this->setstate(__err);
28099 template<typename _CharT, typename _Traits>
28100 typename basic_ostream<_CharT, _Traits>::pos_type
28101 basic_ostream<_CharT, _Traits>::
28104 pos_type __ret = pos_type(-1);
28108 __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out);
28111 { this->_M_setstate(ios_base::badbit); }
28115 template<typename _CharT, typename _Traits>
28116 basic_ostream<_CharT, _Traits>&
28117 basic_ostream<_CharT, _Traits>::
28118 seekp(pos_type __pos)
28120 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
28127 const pos_type __p = this->rdbuf()->pubseekpos(__pos,
28131 if (__p == pos_type(off_type(-1)))
28132 __err |= ios_base::failbit;
28136 { this->_M_setstate(ios_base::badbit); }
28138 this->setstate(__err);
28142 template<typename _CharT, typename _Traits>
28143 basic_ostream<_CharT, _Traits>&
28144 basic_ostream<_CharT, _Traits>::
28145 seekp(off_type __off, ios_base::seekdir __dir)
28147 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
28154 const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir,
28158 if (__p == pos_type(off_type(-1)))
28159 __err |= ios_base::failbit;
28163 { this->_M_setstate(ios_base::badbit); }
28165 this->setstate(__err);
28170 template<typename _CharT, typename _Traits>
28171 basic_ostream<_CharT, _Traits>&
28172 operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
28174 typedef basic_ostream<_CharT, _Traits> __ostream_type;
28175 typename __ostream_type::sentry __cerb(__out);
28180 const streamsize __w = __out.width();
28181 streamsize __len = 1;
28182 _CharT* __cs = &__c;
28185 __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
28187 __pad<_CharT, _Traits>::_S_pad(__out, __out.fill(), __cs,
28188 &__c, __w, __len, false);
28191 __out._M_write(__cs, __len);
28195 { __out._M_setstate(ios_base::badbit); }
28201 template <class _Traits>
28202 basic_ostream<char, _Traits>&
28203 operator<<(basic_ostream<char, _Traits>& __out, char __c)
28205 typedef basic_ostream<char, _Traits> __ostream_type;
28206 typename __ostream_type::sentry __cerb(__out);
28211 const streamsize __w = __out.width();
28212 streamsize __len = 1;
28216 __cs = static_cast<char*>(__builtin_alloca(__w));
28217 __pad<char, _Traits>::_S_pad(__out, __out.fill(), __cs,
28218 &__c, __w, __len, false);
28221 __out._M_write(__cs, __len);
28225 { __out._M_setstate(ios_base::badbit); }
28230 template<typename _CharT, typename _Traits>
28231 basic_ostream<_CharT, _Traits>&
28232 operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
28234 typedef basic_ostream<_CharT, _Traits> __ostream_type;
28235 typename __ostream_type::sentry __cerb(__out);
28240 const streamsize __w = __out.width();
28241 streamsize __len = static_cast<streamsize>(_Traits::length(__s));
28244 _CharT* __cs = (static_cast<
28245 _CharT*>(__builtin_alloca(sizeof(_CharT)
28247 __pad<_CharT, _Traits>::_S_pad(__out, __out.fill(), __cs,
28248 __s, __w, __len, false);
28252 __out._M_write(__s, __len);
28256 { __out._M_setstate(ios_base::badbit); }
28259 __out.setstate(ios_base::badbit);
28263 template<typename _CharT, typename _Traits>
28264 basic_ostream<_CharT, _Traits>&
28265 operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
28267 typedef basic_ostream<_CharT, _Traits> __ostream_type;
28271 typedef char_traits<char> __traits_type;
28272 typename __ostream_type::sentry __cerb(__out);
28275 size_t __clen = __traits_type::length(__s);
28276 _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
28278 for (size_t __i = 0; __i < __clen; ++__i)
28279 __ws[__i] = __out.widen(__s[__i]);
28280 _CharT* __str = __ws;
28284 const streamsize __w = __out.width();
28285 streamsize __len = static_cast<streamsize>(__clen);
28288 _CharT* __cs = (static_cast<
28289 _CharT*>(__builtin_alloca(sizeof(_CharT)
28291 __pad<_CharT, _Traits>::_S_pad(__out, __out.fill(), __cs,
28292 __ws, __w, __len, false);
28296 __out._M_write(__str, __len);
28300 { __out._M_setstate(ios_base::badbit); }
28303 __out.setstate(ios_base::badbit);
28308 template<class _Traits>
28309 basic_ostream<char, _Traits>&
28310 operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
28312 typedef basic_ostream<char, _Traits> __ostream_type;
28313 typename __ostream_type::sentry __cerb(__out);
28318 const streamsize __w = __out.width();
28319 streamsize __len = static_cast<streamsize>(_Traits::length(__s));
28322 char* __cs = static_cast<char*>(__builtin_alloca(__w));
28323 __pad<char, _Traits>::_S_pad(__out, __out.fill(), __cs,
28324 __s, __w, __len, false);
28328 __out._M_write(__s, __len);
28332 { __out._M_setstate(ios_base::badbit); }
28335 __out.setstate(ios_base::badbit);
28340 template<typename _CharT, typename _Traits, typename _Alloc>
28341 basic_ostream<_CharT, _Traits>&
28342 operator<<(basic_ostream<_CharT, _Traits>& __out,
28343 const basic_string<_CharT, _Traits, _Alloc>& __str)
28345 typedef basic_ostream<_CharT, _Traits> __ostream_type;
28346 typename __ostream_type::sentry __cerb(__out);
28349 const streamsize __w = __out.width();
28350 streamsize __len = static_cast<streamsize>(__str.size());
28351 const _CharT* __s = __str.data();
28357 _CharT* __cs = (static_cast<
28358 _CharT*>(__builtin_alloca(sizeof(_CharT) * __w)));
28359 __pad<_CharT, _Traits>::_S_pad(__out, __out.fill(), __cs, __s,
28360 __w, __len, false);
28364 __out._M_write(__s, __len);
28374 extern template class basic_ostream<char>;
28375 extern template ostream& endl(ostream&);
28376 extern template ostream& ends(ostream&);
28377 extern template ostream& flush(ostream&);
28378 extern template ostream& operator<<(ostream&, char);
28379 extern template ostream& operator<<(ostream&, unsigned char);
28380 extern template ostream& operator<<(ostream&, signed char);
28381 extern template ostream& operator<<(ostream&, const char*);
28382 extern template ostream& operator<<(ostream&, const unsigned char*);
28383 extern template ostream& operator<<(ostream&, const signed char*);
28386 extern template class basic_ostream<wchar_t>;
28387 extern template wostream& endl(wostream&);
28388 extern template wostream& ends(wostream&);
28389 extern template wostream& flush(wostream&);
28390 extern template wostream& operator<<(wostream&, wchar_t);
28391 extern template wostream& operator<<(wostream&, char);
28392 extern template wostream& operator<<(wostream&, const wchar_t*);
28393 extern template wostream& operator<<(wostream&, const char*);
28397 # 527 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/ostream" 2 3
28400 #pragma GCC visibility pop
28401 # 47 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iostream" 2 3
28402 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 1 3
28403 # 42 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28405 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28406 #pragma GCC visibility push(default)
28413 # 58 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28414 template<typename _CharT, typename _Traits>
28415 class basic_istream : virtual public basic_ios<_CharT, _Traits>
28419 typedef _CharT char_type;
28420 typedef typename _Traits::int_type int_type;
28421 typedef typename _Traits::pos_type pos_type;
28422 typedef typename _Traits::off_type off_type;
28423 typedef _Traits traits_type;
28426 typedef basic_streambuf<_CharT, _Traits> __streambuf_type;
28427 typedef basic_ios<_CharT, _Traits> __ios_type;
28428 typedef basic_istream<_CharT, _Traits> __istream_type;
28429 typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> >
28431 typedef ctype<_CharT> __ctype_type;
28433 template<typename _CharT2, typename _Traits2>
28434 friend basic_istream<_CharT2, _Traits2>&
28435 operator>>(basic_istream<_CharT2, _Traits2>&, _CharT2&);
28437 template<typename _CharT2, typename _Traits2>
28438 friend basic_istream<_CharT2, _Traits2>&
28439 operator>>(basic_istream<_CharT2, _Traits2>&, _CharT2*);
28449 streamsize _M_gcount;
28452 # 104 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28454 basic_istream(__streambuf_type* __sb): _M_gcount(streamsize(0))
28455 { this->init(__sb); }
28464 { _M_gcount = streamsize(0); }
28468 friend class sentry;
28469 # 131 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28470 inline __istream_type&
28471 operator>>(__istream_type& (*__pf)(__istream_type&));
28473 inline __istream_type&
28474 operator>>(__ios_type& (*__pf)(__ios_type&));
28476 inline __istream_type&
28477 operator>>(ios_base& (*__pf)(ios_base&));
28478 # 169 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28480 operator>>(bool& __n);
28483 operator>>(short& __n);
28486 operator>>(unsigned short& __n);
28489 operator>>(int& __n);
28492 operator>>(unsigned int& __n);
28495 operator>>(long& __n);
28498 operator>>(unsigned long& __n);
28502 operator>>(long long& __n);
28505 operator>>(unsigned long long& __n);
28509 operator>>(float& __f);
28512 operator>>(double& __f);
28515 operator>>(long double& __f);
28518 operator>>(void*& __p);
28519 # 230 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28521 operator>>(__streambuf_type* __sb);
28522 # 240 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28525 { return _M_gcount; }
28526 # 272 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28529 # 286 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28531 get(char_type& __c);
28532 # 313 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28534 get(char_type* __s, streamsize __n, char_type __delim);
28535 # 324 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28536 inline __istream_type&
28537 get(char_type* __s, streamsize __n)
28538 { return this->get(__s, __n, this->widen('\n')); }
28539 # 347 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28541 get(__streambuf_type& __sb, char_type __delim);
28542 # 357 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28543 inline __istream_type&
28544 get(__streambuf_type& __sb)
28545 { return this->get(__sb, this->widen('\n')); }
28546 # 386 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28548 getline(char_type* __s, streamsize __n, char_type __delim);
28549 # 397 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28550 inline __istream_type&
28551 getline(char_type* __s, streamsize __n)
28552 { return this->getline(__s, __n, this->widen('\n')); }
28553 # 421 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28558 ignore(streamsize __n);
28561 ignore(streamsize __n, int_type __delim);
28562 # 438 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28565 # 456 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28567 read(char_type* __s, streamsize __n);
28568 # 475 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28570 readsome(char_type* __s, streamsize __n);
28571 # 491 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28573 putback(char_type __c);
28574 # 506 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28577 # 524 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28580 # 538 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28583 # 553 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28586 # 569 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28588 seekg(off_type, ios_base::seekdir);
28593 basic_istream(): _M_gcount(streamsize(0)) { }
28598 basic_istream<char>&
28599 basic_istream<char>::
28600 getline(char_type* __s, streamsize __n, char_type __delim);
28603 basic_istream<char>&
28604 basic_istream<char>::
28605 ignore(streamsize __n);
28608 basic_istream<char>&
28609 basic_istream<char>::
28610 ignore(streamsize __n, int_type __delim);
28614 basic_istream<wchar_t>&
28615 basic_istream<wchar_t>::
28616 getline(char_type* __s, streamsize __n, char_type __delim);
28619 basic_istream<wchar_t>&
28620 basic_istream<wchar_t>::
28621 ignore(streamsize __n);
28624 basic_istream<wchar_t>&
28625 basic_istream<wchar_t>::
28626 ignore(streamsize __n, int_type __delim);
28627 # 622 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28628 template<typename _CharT, typename _Traits>
28629 class basic_istream<_CharT, _Traits>::sentry
28633 typedef _Traits traits_type;
28634 typedef basic_streambuf<_CharT, _Traits> __streambuf_type;
28635 typedef basic_istream<_CharT, _Traits> __istream_type;
28636 typedef typename __istream_type::__ctype_type __ctype_type;
28637 typedef typename _Traits::int_type __int_type;
28638 # 654 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28640 sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false);
28641 # 664 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28642 operator bool() const { return _M_ok; }
28647 # 683 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28648 template<typename _CharT, typename _Traits>
28649 basic_istream<_CharT, _Traits>&
28650 operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c);
28652 template<class _Traits>
28653 basic_istream<char, _Traits>&
28654 operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
28655 { return (__in >> reinterpret_cast<char&>(__c)); }
28657 template<class _Traits>
28658 basic_istream<char, _Traits>&
28659 operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
28660 { return (__in >> reinterpret_cast<char&>(__c)); }
28661 # 724 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28662 template<typename _CharT, typename _Traits>
28663 basic_istream<_CharT, _Traits>&
28664 operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s);
28668 basic_istream<char>&
28669 operator>>(basic_istream<char>& __in, char* __s);
28671 template<class _Traits>
28672 basic_istream<char, _Traits>&
28673 operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
28674 { return (__in >> reinterpret_cast<char*>(__s)); }
28676 template<class _Traits>
28677 basic_istream<char, _Traits>&
28678 operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
28679 { return (__in >> reinterpret_cast<char*>(__s)); }
28680 # 751 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28681 template<typename _CharT, typename _Traits>
28682 class basic_iostream
28683 : public basic_istream<_CharT, _Traits>,
28684 public basic_ostream<_CharT, _Traits>
28690 typedef _CharT char_type;
28691 typedef typename _Traits::int_type int_type;
28692 typedef typename _Traits::pos_type pos_type;
28693 typedef typename _Traits::off_type off_type;
28694 typedef _Traits traits_type;
28697 typedef basic_istream<_CharT, _Traits> __istream_type;
28698 typedef basic_ostream<_CharT, _Traits> __ostream_type;
28707 basic_iostream(basic_streambuf<_CharT, _Traits>* __sb)
28708 : __istream_type(), __ostream_type()
28709 { this->init(__sb); }
28715 ~basic_iostream() { }
28719 basic_iostream() : __istream_type(), __ostream_type()
28722 # 814 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 3
28723 template<typename _CharT, typename _Traits>
28724 basic_istream<_CharT, _Traits>&
28725 ws(basic_istream<_CharT, _Traits>& __is);
28729 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/istream.tcc" 1 3
28730 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/istream.tcc" 3
28732 # 44 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/istream.tcc" 3
28739 template<typename _CharT, typename _Traits>
28740 basic_istream<_CharT, _Traits>::sentry::
28741 sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false)
28743 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
28747 __in.tie()->flush();
28748 if (!__noskip && (__in.flags() & ios_base::skipws))
28750 const __int_type __eof = traits_type::eof();
28751 __streambuf_type* __sb = __in.rdbuf();
28752 __int_type __c = __sb->sgetc();
28754 const __ctype_type& __ct = __check_facet(__in._M_ctype);
28755 while (!traits_type::eq_int_type(__c, __eof)
28756 && __ct.is(ctype_base::space,
28757 traits_type::to_char_type(__c)))
28758 __c = __sb->snextc();
28763 if (traits_type::eq_int_type(__c, __eof))
28764 __err |= ios_base::eofbit;
28768 if (__in.good() && __err == ios_base::goodbit)
28772 __err |= ios_base::failbit;
28773 __in.setstate(__err);
28777 template<typename _CharT, typename _Traits>
28778 basic_istream<_CharT, _Traits>&
28779 basic_istream<_CharT, _Traits>::
28780 operator>>(__istream_type& (*__pf)(__istream_type&))
28781 { return __pf(*this); }
28783 template<typename _CharT, typename _Traits>
28784 basic_istream<_CharT, _Traits>&
28785 basic_istream<_CharT, _Traits>::
28786 operator>>(__ios_type& (*__pf)(__ios_type&))
28792 template<typename _CharT, typename _Traits>
28793 basic_istream<_CharT, _Traits>&
28794 basic_istream<_CharT, _Traits>::
28795 operator>>(ios_base& (*__pf)(ios_base&))
28801 template<typename _CharT, typename _Traits>
28802 basic_istream<_CharT, _Traits>&
28803 basic_istream<_CharT, _Traits>::
28804 operator>>(bool& __n)
28806 sentry __cerb(*this, false);
28809 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
28812 const __num_get_type& __ng = __check_facet(this->_M_num_get);
28813 __ng.get(*this, 0, *this, __err, __n);
28816 { this->_M_setstate(ios_base::badbit); }
28818 this->setstate(__err);
28823 template<typename _CharT, typename _Traits>
28824 basic_istream<_CharT, _Traits>&
28825 basic_istream<_CharT, _Traits>::
28826 operator>>(short& __n)
28828 sentry __cerb(*this, false);
28831 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
28835 const __num_get_type& __ng = __check_facet(this->_M_num_get);
28836 __ng.get(*this, 0, *this, __err, __l);
28839 if (!(__err & ios_base::failbit)
28840 && (numeric_limits<short>::min() <= __l
28841 && __l <= numeric_limits<short>::max()))
28844 __err |= ios_base::failbit;
28847 { this->_M_setstate(ios_base::badbit); }
28849 this->setstate(__err);
28854 template<typename _CharT, typename _Traits>
28855 basic_istream<_CharT, _Traits>&
28856 basic_istream<_CharT, _Traits>::
28857 operator>>(unsigned short& __n)
28859 sentry __cerb(*this, false);
28862 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
28865 const __num_get_type& __ng = __check_facet(this->_M_num_get);
28866 __ng.get(*this, 0, *this, __err, __n);
28869 { this->_M_setstate(ios_base::badbit); }
28871 this->setstate(__err);
28876 template<typename _CharT, typename _Traits>
28877 basic_istream<_CharT, _Traits>&
28878 basic_istream<_CharT, _Traits>::
28879 operator>>(int& __n)
28881 sentry __cerb(*this, false);
28884 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
28888 const __num_get_type& __ng = __check_facet(this->_M_num_get);
28889 __ng.get(*this, 0, *this, __err, __l);
28892 if (!(__err & ios_base::failbit)
28893 && (numeric_limits<int>::min() <= __l
28894 && __l <= numeric_limits<int>::max()))
28897 __err |= ios_base::failbit;
28900 { this->_M_setstate(ios_base::badbit); }
28902 this->setstate(__err);
28907 template<typename _CharT, typename _Traits>
28908 basic_istream<_CharT, _Traits>&
28909 basic_istream<_CharT, _Traits>::
28910 operator>>(unsigned int& __n)
28912 sentry __cerb(*this, false);
28915 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
28918 const __num_get_type& __ng = __check_facet(this->_M_num_get);
28919 __ng.get(*this, 0, *this, __err, __n);
28922 { this->_M_setstate(ios_base::badbit); }
28924 this->setstate(__err);
28929 template<typename _CharT, typename _Traits>
28930 basic_istream<_CharT, _Traits>&
28931 basic_istream<_CharT, _Traits>::
28932 operator>>(long& __n)
28934 sentry __cerb(*this, false);
28937 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
28940 const __num_get_type& __ng = __check_facet(this->_M_num_get);
28941 __ng.get(*this, 0, *this, __err, __n);
28944 { this->_M_setstate(ios_base::badbit); }
28946 this->setstate(__err);
28951 template<typename _CharT, typename _Traits>
28952 basic_istream<_CharT, _Traits>&
28953 basic_istream<_CharT, _Traits>::
28954 operator>>(unsigned long& __n)
28956 sentry __cerb(*this, false);
28959 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
28962 const __num_get_type& __ng = __check_facet(this->_M_num_get);
28963 __ng.get(*this, 0, *this, __err, __n);
28966 { this->_M_setstate(ios_base::badbit); }
28968 this->setstate(__err);
28974 template<typename _CharT, typename _Traits>
28975 basic_istream<_CharT, _Traits>&
28976 basic_istream<_CharT, _Traits>::
28977 operator>>(long long& __n)
28979 sentry __cerb(*this, false);
28982 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
28985 const __num_get_type& __ng = __check_facet(this->_M_num_get);
28986 __ng.get(*this, 0, *this, __err, __n);
28989 { this->_M_setstate(ios_base::badbit); }
28991 this->setstate(__err);
28996 template<typename _CharT, typename _Traits>
28997 basic_istream<_CharT, _Traits>&
28998 basic_istream<_CharT, _Traits>::
28999 operator>>(unsigned long long& __n)
29001 sentry __cerb(*this, false);
29004 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29007 const __num_get_type& __ng = __check_facet(this->_M_num_get);
29008 __ng.get(*this, 0, *this, __err, __n);
29011 { this->_M_setstate(ios_base::badbit); }
29013 this->setstate(__err);
29019 template<typename _CharT, typename _Traits>
29020 basic_istream<_CharT, _Traits>&
29021 basic_istream<_CharT, _Traits>::
29022 operator>>(float& __n)
29024 sentry __cerb(*this, false);
29027 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29030 const __num_get_type& __ng = __check_facet(this->_M_num_get);
29031 __ng.get(*this, 0, *this, __err, __n);
29034 { this->_M_setstate(ios_base::badbit); }
29036 this->setstate(__err);
29041 template<typename _CharT, typename _Traits>
29042 basic_istream<_CharT, _Traits>&
29043 basic_istream<_CharT, _Traits>::
29044 operator>>(double& __n)
29046 sentry __cerb(*this, false);
29049 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29052 const __num_get_type& __ng = __check_facet(this->_M_num_get);
29053 __ng.get(*this, 0, *this, __err, __n);
29056 { this->_M_setstate(ios_base::badbit); }
29058 this->setstate(__err);
29063 template<typename _CharT, typename _Traits>
29064 basic_istream<_CharT, _Traits>&
29065 basic_istream<_CharT, _Traits>::
29066 operator>>(long double& __n)
29068 sentry __cerb(*this, false);
29071 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29074 const __num_get_type& __ng = __check_facet(this->_M_num_get);
29075 __ng.get(*this, 0, *this, __err, __n);
29078 { this->_M_setstate(ios_base::badbit); }
29080 this->setstate(__err);
29085 template<typename _CharT, typename _Traits>
29086 basic_istream<_CharT, _Traits>&
29087 basic_istream<_CharT, _Traits>::
29088 operator>>(void*& __n)
29090 sentry __cerb(*this, false);
29093 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29096 const __num_get_type& __ng = __check_facet(this->_M_num_get);
29097 __ng.get(*this, 0, *this, __err, __n);
29100 { this->_M_setstate(ios_base::badbit); }
29102 this->setstate(__err);
29107 template<typename _CharT, typename _Traits>
29108 basic_istream<_CharT, _Traits>&
29109 basic_istream<_CharT, _Traits>::
29110 operator>>(__streambuf_type* __sbout)
29112 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29113 sentry __cerb(*this, false);
29114 if (__cerb && __sbout)
29118 if (!__copy_streambufs(this->rdbuf(), __sbout))
29119 __err |= ios_base::failbit;
29122 { this->_M_setstate(ios_base::failbit); }
29125 __err |= ios_base::failbit;
29127 this->setstate(__err);
29131 template<typename _CharT, typename _Traits>
29132 typename basic_istream<_CharT, _Traits>::int_type
29133 basic_istream<_CharT, _Traits>::
29136 const int_type __eof = traits_type::eof();
29137 int_type __c = __eof;
29139 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29140 sentry __cerb(*this, true);
29145 __c = this->rdbuf()->sbumpc();
29147 if (!traits_type::eq_int_type(__c, __eof))
29150 __err |= ios_base::eofbit;
29153 { this->_M_setstate(ios_base::badbit); }
29156 __err |= ios_base::failbit;
29158 this->setstate(__err);
29162 template<typename _CharT, typename _Traits>
29163 basic_istream<_CharT, _Traits>&
29164 basic_istream<_CharT, _Traits>::
29165 get(char_type& __c)
29168 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29169 sentry __cerb(*this, true);
29174 const int_type __cb = this->rdbuf()->sbumpc();
29176 if (!traits_type::eq_int_type(__cb, traits_type::eof()))
29179 __c = traits_type::to_char_type(__cb);
29182 __err |= ios_base::eofbit;
29185 { this->_M_setstate(ios_base::badbit); }
29188 __err |= ios_base::failbit;
29190 this->setstate(__err);
29194 template<typename _CharT, typename _Traits>
29195 basic_istream<_CharT, _Traits>&
29196 basic_istream<_CharT, _Traits>::
29197 get(char_type* __s, streamsize __n, char_type __delim)
29200 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29201 sentry __cerb(*this, true);
29206 const int_type __idelim = traits_type::to_int_type(__delim);
29207 const int_type __eof = traits_type::eof();
29208 __streambuf_type* __sb = this->rdbuf();
29209 int_type __c = __sb->sgetc();
29211 while (_M_gcount + 1 < __n
29212 && !traits_type::eq_int_type(__c, __eof)
29213 && !traits_type::eq_int_type(__c, __idelim))
29215 *__s++ = traits_type::to_char_type(__c);
29217 __c = __sb->snextc();
29219 if (traits_type::eq_int_type(__c, __eof))
29220 __err |= ios_base::eofbit;
29223 { this->_M_setstate(ios_base::badbit); }
29228 *__s = char_type();
29230 __err |= ios_base::failbit;
29232 this->setstate(__err);
29236 template<typename _CharT, typename _Traits>
29237 basic_istream<_CharT, _Traits>&
29238 basic_istream<_CharT, _Traits>::
29239 get(__streambuf_type& __sb, char_type __delim)
29242 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29243 sentry __cerb(*this, true);
29248 const int_type __idelim = traits_type::to_int_type(__delim);
29249 const int_type __eof = traits_type::eof();
29250 __streambuf_type* __this_sb = this->rdbuf();
29251 int_type __c = __this_sb->sgetc();
29252 char_type __c2 = traits_type::to_char_type(__c);
29254 while (!traits_type::eq_int_type(__c, __eof)
29255 && !traits_type::eq_int_type(__c, __idelim)
29256 && !traits_type::eq_int_type(__sb.sputc(__c2), __eof))
29259 __c = __this_sb->snextc();
29260 __c2 = traits_type::to_char_type(__c);
29262 if (traits_type::eq_int_type(__c, __eof))
29263 __err |= ios_base::eofbit;
29266 { this->_M_setstate(ios_base::badbit); }
29269 __err |= ios_base::failbit;
29271 this->setstate(__err);
29275 template<typename _CharT, typename _Traits>
29276 basic_istream<_CharT, _Traits>&
29277 basic_istream<_CharT, _Traits>::
29278 getline(char_type* __s, streamsize __n, char_type __delim)
29281 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29282 sentry __cerb(*this, true);
29287 const int_type __idelim = traits_type::to_int_type(__delim);
29288 const int_type __eof = traits_type::eof();
29289 __streambuf_type* __sb = this->rdbuf();
29290 int_type __c = __sb->sgetc();
29292 while (_M_gcount + 1 < __n
29293 && !traits_type::eq_int_type(__c, __eof)
29294 && !traits_type::eq_int_type(__c, __idelim))
29296 *__s++ = traits_type::to_char_type(__c);
29297 __c = __sb->snextc();
29300 if (traits_type::eq_int_type(__c, __eof))
29301 __err |= ios_base::eofbit;
29304 if (traits_type::eq_int_type(__c, __idelim))
29310 __err |= ios_base::failbit;
29314 { this->_M_setstate(ios_base::badbit); }
29319 *__s = char_type();
29321 __err |= ios_base::failbit;
29323 this->setstate(__err);
29330 template<typename _CharT, typename _Traits>
29331 basic_istream<_CharT, _Traits>&
29332 basic_istream<_CharT, _Traits>::
29336 sentry __cerb(*this, true);
29339 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29342 const int_type __eof = traits_type::eof();
29343 __streambuf_type* __sb = this->rdbuf();
29345 if (traits_type::eq_int_type(__sb->sbumpc(), __eof))
29346 __err |= ios_base::eofbit;
29351 { this->_M_setstate(ios_base::badbit); }
29353 this->setstate(__err);
29358 template<typename _CharT, typename _Traits>
29359 basic_istream<_CharT, _Traits>&
29360 basic_istream<_CharT, _Traits>::
29361 ignore(streamsize __n)
29364 sentry __cerb(*this, true);
29365 if (__cerb && __n > 0)
29367 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29370 const int_type __eof = traits_type::eof();
29371 __streambuf_type* __sb = this->rdbuf();
29372 int_type __c = __sb->sgetc();
29373 # 692 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/bits/istream.tcc" 3
29374 bool __large_ignore = false;
29377 while (_M_gcount < __n
29378 && !traits_type::eq_int_type(__c, __eof))
29381 __c = __sb->snextc();
29383 if (__n == numeric_limits<streamsize>::max()
29384 && !traits_type::eq_int_type(__c, __eof))
29386 _M_gcount = numeric_limits<streamsize>::min();
29387 __large_ignore = true;
29393 if (__large_ignore)
29394 _M_gcount = numeric_limits<streamsize>::max();
29396 if (traits_type::eq_int_type(__c, __eof))
29397 __err |= ios_base::eofbit;
29400 { this->_M_setstate(ios_base::badbit); }
29402 this->setstate(__err);
29407 template<typename _CharT, typename _Traits>
29408 basic_istream<_CharT, _Traits>&
29409 basic_istream<_CharT, _Traits>::
29410 ignore(streamsize __n, int_type __delim)
29413 sentry __cerb(*this, true);
29414 if (__cerb && __n > 0)
29416 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29419 const int_type __eof = traits_type::eof();
29420 __streambuf_type* __sb = this->rdbuf();
29421 int_type __c = __sb->sgetc();
29424 bool __large_ignore = false;
29427 while (_M_gcount < __n
29428 && !traits_type::eq_int_type(__c, __eof)
29429 && !traits_type::eq_int_type(__c, __delim))
29432 __c = __sb->snextc();
29434 if (__n == numeric_limits<streamsize>::max()
29435 && !traits_type::eq_int_type(__c, __eof)
29436 && !traits_type::eq_int_type(__c, __delim))
29438 _M_gcount = numeric_limits<streamsize>::min();
29439 __large_ignore = true;
29445 if (__large_ignore)
29446 _M_gcount = numeric_limits<streamsize>::max();
29448 if (traits_type::eq_int_type(__c, __eof))
29449 __err |= ios_base::eofbit;
29450 else if (traits_type::eq_int_type(__c, __delim))
29452 if (_M_gcount < numeric_limits<streamsize>::max())
29458 { this->_M_setstate(ios_base::badbit); }
29460 this->setstate(__err);
29465 template<typename _CharT, typename _Traits>
29466 typename basic_istream<_CharT, _Traits>::int_type
29467 basic_istream<_CharT, _Traits>::
29470 int_type __c = traits_type::eof();
29472 sentry __cerb(*this, true);
29475 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29478 __c = this->rdbuf()->sgetc();
29479 if (traits_type::eq_int_type(__c, traits_type::eof()))
29480 __err |= ios_base::eofbit;
29483 { this->_M_setstate(ios_base::badbit); }
29485 this->setstate(__err);
29490 template<typename _CharT, typename _Traits>
29491 basic_istream<_CharT, _Traits>&
29492 basic_istream<_CharT, _Traits>::
29493 read(char_type* __s, streamsize __n)
29496 sentry __cerb(*this, true);
29499 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29502 _M_gcount = this->rdbuf()->sgetn(__s, __n);
29503 if (_M_gcount != __n)
29504 __err |= (ios_base::eofbit | ios_base::failbit);
29507 { this->_M_setstate(ios_base::badbit); }
29509 this->setstate(__err);
29514 template<typename _CharT, typename _Traits>
29516 basic_istream<_CharT, _Traits>::
29517 readsome(char_type* __s, streamsize __n)
29520 sentry __cerb(*this, true);
29523 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29527 const streamsize __num = this->rdbuf()->in_avail();
29529 _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n));
29530 else if (__num == -1)
29531 __err |= ios_base::eofbit;
29534 { this->_M_setstate(ios_base::badbit); }
29536 this->setstate(__err);
29541 template<typename _CharT, typename _Traits>
29542 basic_istream<_CharT, _Traits>&
29543 basic_istream<_CharT, _Traits>::
29544 putback(char_type __c)
29549 sentry __cerb(*this, true);
29552 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29555 const int_type __eof = traits_type::eof();
29556 __streambuf_type* __sb = this->rdbuf();
29558 || traits_type::eq_int_type(__sb->sputbackc(__c), __eof))
29559 __err |= ios_base::badbit;
29562 { this->_M_setstate(ios_base::badbit); }
29564 this->setstate(__err);
29569 template<typename _CharT, typename _Traits>
29570 basic_istream<_CharT, _Traits>&
29571 basic_istream<_CharT, _Traits>::
29577 sentry __cerb(*this, true);
29580 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29583 const int_type __eof = traits_type::eof();
29584 __streambuf_type* __sb = this->rdbuf();
29586 || traits_type::eq_int_type(__sb->sungetc(), __eof))
29587 __err |= ios_base::badbit;
29590 { this->_M_setstate(ios_base::badbit); }
29592 this->setstate(__err);
29597 template<typename _CharT, typename _Traits>
29599 basic_istream<_CharT, _Traits>::
29605 sentry __cerb(*this, true);
29608 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29611 __streambuf_type* __sb = this->rdbuf();
29614 if (__sb->pubsync() == -1)
29615 __err |= ios_base::badbit;
29621 { this->_M_setstate(ios_base::badbit); }
29623 this->setstate(__err);
29628 template<typename _CharT, typename _Traits>
29629 typename basic_istream<_CharT, _Traits>::pos_type
29630 basic_istream<_CharT, _Traits>::
29635 pos_type __ret = pos_type(-1);
29639 __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::in);
29642 { this->_M_setstate(ios_base::badbit); }
29646 template<typename _CharT, typename _Traits>
29647 basic_istream<_CharT, _Traits>&
29648 basic_istream<_CharT, _Traits>::
29649 seekg(pos_type __pos)
29653 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29659 const pos_type __p = this->rdbuf()->pubseekpos(__pos,
29663 if (__p == pos_type(off_type(-1)))
29664 __err |= ios_base::failbit;
29668 { this->_M_setstate(ios_base::badbit); }
29670 this->setstate(__err);
29674 template<typename _CharT, typename _Traits>
29675 basic_istream<_CharT, _Traits>&
29676 basic_istream<_CharT, _Traits>::
29677 seekg(off_type __off, ios_base::seekdir __dir)
29681 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29687 const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir,
29691 if (__p == pos_type(off_type(-1)))
29692 __err |= ios_base::failbit;
29696 { this->_M_setstate(ios_base::badbit); }
29698 this->setstate(__err);
29703 template<typename _CharT, typename _Traits>
29704 basic_istream<_CharT, _Traits>&
29705 operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
29707 typedef basic_istream<_CharT, _Traits> __istream_type;
29708 typedef typename __istream_type::int_type __int_type;
29710 typename __istream_type::sentry __cerb(__in, false);
29713 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29716 const __int_type __cb = __in.rdbuf()->sbumpc();
29717 if (!_Traits::eq_int_type(__cb, _Traits::eof()))
29718 __c = _Traits::to_char_type(__cb);
29720 __err |= (ios_base::eofbit | ios_base::failbit);
29723 { __in._M_setstate(ios_base::badbit); }
29725 __in.setstate(__err);
29730 template<typename _CharT, typename _Traits>
29731 basic_istream<_CharT, _Traits>&
29732 operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
29734 typedef basic_istream<_CharT, _Traits> __istream_type;
29735 typedef typename __istream_type::__streambuf_type __streambuf_type;
29736 typedef typename _Traits::int_type int_type;
29737 typedef _CharT char_type;
29738 typedef ctype<_CharT> __ctype_type;
29740 streamsize __extracted = 0;
29741 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29742 typename __istream_type::sentry __cerb(__in, false);
29748 streamsize __num = __in.width();
29750 __num = numeric_limits<streamsize>::max();
29752 const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc());
29754 const int_type __eof = _Traits::eof();
29755 __streambuf_type* __sb = __in.rdbuf();
29756 int_type __c = __sb->sgetc();
29758 while (__extracted < __num - 1
29759 && !_Traits::eq_int_type(__c, __eof)
29760 && !__ct.is(ctype_base::space,
29761 _Traits::to_char_type(__c)))
29763 *__s++ = _Traits::to_char_type(__c);
29765 __c = __sb->snextc();
29767 if (_Traits::eq_int_type(__c, __eof))
29768 __err |= ios_base::eofbit;
29772 *__s = char_type();
29776 { __in._M_setstate(ios_base::badbit); }
29779 __err |= ios_base::failbit;
29781 __in.setstate(__err);
29786 template<typename _CharT, typename _Traits>
29787 basic_istream<_CharT,_Traits>&
29788 ws(basic_istream<_CharT,_Traits>& __in)
29790 typedef basic_istream<_CharT, _Traits> __istream_type;
29791 typedef typename __istream_type::__streambuf_type __streambuf_type;
29792 typedef typename __istream_type::__ctype_type __ctype_type;
29793 typedef typename __istream_type::int_type __int_type;
29795 const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc());
29796 const __int_type __eof = _Traits::eof();
29797 __streambuf_type* __sb = __in.rdbuf();
29798 __int_type __c = __sb->sgetc();
29800 while (!_Traits::eq_int_type(__c, __eof)
29801 && __ct.is(ctype_base::space, _Traits::to_char_type(__c)))
29802 __c = __sb->snextc();
29804 if (_Traits::eq_int_type(__c, __eof))
29805 __in.setstate(ios_base::eofbit);
29810 template<typename _CharT, typename _Traits, typename _Alloc>
29811 basic_istream<_CharT, _Traits>&
29812 operator>>(basic_istream<_CharT, _Traits>& __in,
29813 basic_string<_CharT, _Traits, _Alloc>& __str)
29815 typedef basic_istream<_CharT, _Traits> __istream_type;
29816 typedef typename __istream_type::int_type __int_type;
29817 typedef typename __istream_type::__streambuf_type __streambuf_type;
29818 typedef typename __istream_type::__ctype_type __ctype_type;
29819 typedef basic_string<_CharT, _Traits, _Alloc> __string_type;
29820 typedef typename __string_type::size_type __size_type;
29822 __size_type __extracted = 0;
29823 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29824 typename __istream_type::sentry __cerb(__in, false);
29832 __size_type __len = 0;
29833 const streamsize __w = __in.width();
29834 const __size_type __n = __w > 0 ? static_cast<__size_type>(__w)
29835 : __str.max_size();
29836 const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc());
29837 const __int_type __eof = _Traits::eof();
29838 __streambuf_type* __sb = __in.rdbuf();
29839 __int_type __c = __sb->sgetc();
29841 while (__extracted < __n
29842 && !_Traits::eq_int_type(__c, __eof)
29843 && !__ct.is(ctype_base::space, _Traits::to_char_type(__c)))
29845 if (__len == sizeof(__buf) / sizeof(_CharT))
29847 __str.append(__buf, sizeof(__buf) / sizeof(_CharT));
29850 __buf[__len++] = _Traits::to_char_type(__c);
29852 __c = __sb->snextc();
29854 __str.append(__buf, __len);
29856 if (_Traits::eq_int_type(__c, __eof))
29857 __err |= ios_base::eofbit;
29865 __in._M_setstate(ios_base::badbit);
29870 __err |= ios_base::failbit;
29872 __in.setstate(__err);
29876 template<typename _CharT, typename _Traits, typename _Alloc>
29877 basic_istream<_CharT, _Traits>&
29878 getline(basic_istream<_CharT, _Traits>& __in,
29879 basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim)
29881 typedef basic_istream<_CharT, _Traits> __istream_type;
29882 typedef typename __istream_type::int_type __int_type;
29883 typedef typename __istream_type::__streambuf_type __streambuf_type;
29884 typedef typename __istream_type::__ctype_type __ctype_type;
29885 typedef basic_string<_CharT, _Traits, _Alloc> __string_type;
29886 typedef typename __string_type::size_type __size_type;
29888 __size_type __extracted = 0;
29889 const __size_type __n = __str.max_size();
29890 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
29891 typename __istream_type::sentry __cerb(__in, true);
29897 const __int_type __idelim = _Traits::to_int_type(__delim);
29898 const __int_type __eof = _Traits::eof();
29899 __streambuf_type* __sb = __in.rdbuf();
29900 __int_type __c = __sb->sgetc();
29902 while (__extracted < __n
29903 && !_Traits::eq_int_type(__c, __eof)
29904 && !_Traits::eq_int_type(__c, __idelim))
29906 __str += _Traits::to_char_type(__c);
29908 __c = __sb->snextc();
29911 if (_Traits::eq_int_type(__c, __eof))
29912 __err |= ios_base::eofbit;
29913 else if (_Traits::eq_int_type(__c, __idelim))
29919 __err |= ios_base::failbit;
29926 __in._M_setstate(ios_base::badbit);
29930 __err |= ios_base::failbit;
29932 __in.setstate(__err);
29936 template<class _CharT, class _Traits, class _Alloc>
29937 inline basic_istream<_CharT,_Traits>&
29938 getline(basic_istream<_CharT, _Traits>& __in,
29939 basic_string<_CharT,_Traits,_Alloc>& __str)
29940 { return getline(__in, __str, __in.widen('\n')); }
29946 extern template class basic_istream<char>;
29947 extern template istream& ws(istream&);
29948 extern template istream& operator>>(istream&, char&);
29949 extern template istream& operator>>(istream&, char*);
29950 extern template istream& operator>>(istream&, unsigned char&);
29951 extern template istream& operator>>(istream&, signed char&);
29952 extern template istream& operator>>(istream&, unsigned char*);
29953 extern template istream& operator>>(istream&, signed char*);
29955 extern template class basic_iostream<char>;
29958 extern template class basic_istream<wchar_t>;
29959 extern template wistream& ws(wistream&);
29960 extern template wistream& operator>>(wistream&, wchar_t&);
29961 extern template wistream& operator>>(wistream&, wchar_t*);
29963 extern template class basic_iostream<wchar_t>;
29967 # 821 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/istream" 2 3
29970 #pragma GCC visibility pop
29971 # 48 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iostream" 2 3
29975 # 64 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4/iostream" 3
29976 extern istream cin;
29977 extern ostream cout;
29978 extern ostream cerr;
29979 extern ostream clog;
29982 extern wistream wcin;
29983 extern wostream wcout;
29984 extern wostream wcerr;
29985 extern wostream wclog;
29990 static ios_base::Init __ioinit;
29993 #pragma GCC visibility pop
29994 # 4 "conftest.cc" 2
29998 void someoutput (void) { std::cout << 123; }
30000 int main (void) { return 0; }